We are using spring-WS (WebserviceTemplate) in a client application to invoke a webservice. At this stage, all we have is the wsdl. To continue building the client, we would like to mock a few service calls.
At the end, we should able to change to the real end point instead of the mock endpoint.
Is there a way to configure the WebServiceTemplate to pick up mock implementation of a messagesender. If yes, could anyone please advise how to go about implementing a mock message sender and how to configure the mock impl in the webservicetempalte config.
Well, after some thought, it appears that we dont point the webservice template to a mock implementation, instead you will have to point the client of quot;webservice templatequot; to a mock implementation of webservice ( just a POJO). |