Reputation: 167
So far we have discovered to access/consume the soap web service are as follows
For Generated client(No. 1) it works if the wsdl is discoverable from url. But it fails if the wsdl is not discoverable from url.
Now my question is, is it always recommended to consume the soap web service (where wsdl is not discoverable) using way No. 2 or No. 3? Or are there other flexible solutions?
Upvotes: 2
Views: 549
Reputation: 2468
If you are using SpringWS then you can work with wsdl which is not discoverable. Please check this below link for details :
InaccessibleWSDLException error from SOAP generated client in JAVA
The beauty of this approach is you don't have to prepare your request , instead you can use request and response object.
Upvotes: 3