Forum Discussion
Your reply "The WSDL in question does not have inline schemas or referencing any external schemas." is confusing because Wsdl either have inline or external schema.
One more thing is that not every one gets the mentioned exception. So only possibility here is to get the wsdl be reviewed from your team as it says InvalidDefinition.
Did you happen to see the wsdl correctly in the browser(after providing the credentials) or in soapui first? Just locate the issue at the right place.
If that is successful, then it can be further looked into your code.
Sorry about the confusion, I meant that the WSDL does not reference any external schemas.
I saw the WSDL correctly in the browser after providing the credentials. I then tried the SoapUI GUI and saw the WSDL correctly as well with providing the same credentials.
The problem only exists when accessing the WSDL from the code. When I saved the WSDL locally and ran the same code against the local WSDL it works fine.
- nmrao10 years agoChampion Level 3So, do I understand it correctly that problem is solved and you are ok now?
- plieu10 years agoOccasional ContributorHi Rao,
The problem I originally reported still exists and has not been resolved.
-Peter - nmrao10 years agoChampion Level 3You mention that "When I saved the WSDL locally and ran the same code against the local WSDL it works fine." - so can you not proceed with this approach? Otherwise, will you please attach the wsdl file and details required, if possible, to look into this further?
- plieu10 years agoOccasional Contributor
Hi Rao,
My intention is to be able to retrieve a remote WSDL (Basic Auth protected) programmatically.
From the SoapUI GUI, I'm able to enter the User/Password prompt value, so there must be a way via the SoapUI API to pass the same User/Password, but I haven't been able to find it.
Today I tried to modify the SoapUI code by setting the default Authenticator in the LoaderWorker.construct(), but it still does not work.
Due to sensitive information, may I contact you privately so that I can forward you the password-protected WSDL url?
- plieu10 years agoOccasional Contributor
Hi Rao,
FYI, I worked around the problem for now by creating my own class that extends the WsdlLoader and pass it to the WsdlImporter.importWsdl().
-Peter
- nmrao10 years agoChampion Level 3Glad to know. If you think that helps to others, do you consider sharing and that would be great.
Related Content
Recent Discussions
- 8 days agoemoya