How to connect and specify address dynamically in a Web Service Client at Runtime, not from a WSDL file
Issue
- The requirement is to connect to a Web service that is hosted at, let's for example say, "http://remotemachine/webservice/test/".
- The url above does not expose the wsdl so you can't browse the url(http://remotemachine/webservice/test/) and actually get the wsdl.
- The WSDL file is provided by the provider and the soap address is already specified in the same.
- You always need to write the client code to point to the address as specified in the wsdl or directly point to the wsdl location where the wsdl file is located.
- In order to access multiple such addresses i need to create a new file each time and point to the correct address.
- Is there any way in which i can dynamically determine the addresses and create a new file only once in the application ?
Environment
- JBoss Enterprise Application Platform
- 5.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.