So far we have discovered to access/consume the soap web service are as follows
- Generate client from wsdl file(with additional xsd)
- Simple http post call with soap body (HttpUrlConnection)
- Using SAAJ (Creating soap body with child elements)
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?