tableau / rest-api-samples

Samples for the Tableau REST API
MIT License
388 stars 272 forks source link

exception on initialize doesn't print completely #50

Open mattdotgreenlake opened 4 years ago

mattdotgreenlake commented 4 years ago

see exception handling here https://github.com/tableau/rest-api-samples/blob/master/java/src/com/tableausoftware/documentation/api/rest/util/RestApiUtils.java#L129 we put exceptions into the variable 'ex', but on the next line where we send the exception string, we don't include the variable to print the specific exceptions that were caught.

hqren commented 4 years ago

After downloaded the git code. 1.download the right xsd xml according you tableau server. https://help.tableau.com/v2020.1/api/rest_api/en-us/REST/rest_api_ref.htm 2.replace classes under binging package. generate new complex type Java Classes use java xjc command. i think the root cause is that git complex type classes are not match the xsd. you may try it.