I'm trying to create a client that will make an asynchronous call to a spring-ws. I have read that spring-ws work synchronous and asynchrounous.
I have looked at using a WebServiceMessageCallback within the client as follows:-
But every time I call the above code I get the following error:-
No endpoint mapping found for [SaajSoapMessage]
If I call the following from my client without the call back handler it works, but synchronous.
Has anybody got any ideas?
Joined: May 21, 2008
can somebody explain if WebServiceTemplate support asynchronous invocation. Im trying to write a client that will call a JAX-WS webservice. I'm trying to enable the client to have some sort of callback handler that will
be called by the web service once it has completed the clients request. The web service could take 2 to 3 min to process so I dont want the client stuck waiting for a response during that time.
I have tried using webServiceTemplate.marshalSendAndReceive(request, new MyCallBackHandler()) but it seems to call the call back handler first and then go on to call the web service.
Not sure what I'm doing wrong Has anybody done this before or got any ideas