This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've recently developed a Flex project using WebService to communicate with Java EE. There're two services hosted on the server: UserService and TestService. When I try to use Factory pattern to create the web service instance as followed:
When I tried to load the wsdl of UserService and call the method as followed, everything was just fine:
But when I tried to do the following:
I got the fault message indicated that UserService's WSDL doese not contain any service titled as "testSomething". Of course, there is no any service titled as "testSomething", I changed the WSDL to another one, but the webServiceLocator instnace still searched the old wsdl AND the new WSDL. Is there anyone knows how to solve this problem, i.e., use the same web service instance to invoke the different methods from different service providers without using any framework (e.g. Cairngorm), but with the plain old school trick? Thanks