Can we dynamically change the WSDL during runtime? We would like to create one Web service for multiple WSDLs.
There are a number of different ways that I can interpret your question, but I'll assume that you're asking whether a Web service client can switch between multiple Web services at runtime by dynamically binding to the appropriate WSDL file.
The answer is yes. SOAP and WSDL give you the ability to dynamically bind to a service. The means by which you do so may be limited by the tool you're using, though. In order to dynamically bind to a service, you cannot use a compiled stub. Instead you must use a dynamic proxy or a dynamic invocation interface (DII). If all the services expose the same interface (as defined by the
As an alternative, you can simply compile multiple stubs for all the services that you want to access. Of course, this approach doesn't permit dynamic discovery.
Dig Deeper on Service-oriented architecture (SOA)
Related Q&A from Anne Thomas Manes
Anne Thomas Manes explains the differences between open source clients and open source implementations. Continue Reading
Anne Thomas Manes discusses the best way to go about creating an enterprise data dictionary and why the systems works well. Continue Reading
Anne Thomas Manes explains the difference between 'hard' real time and 'live' real time systems. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.