Dec 30th, 2011, 07:56 AM
Controller and Endpoint using the same url
I have to implement a webService. This works good, I can send SOAP requests without any problem.
But the third party client expects on initialization a response via http-GET with the content from a wsdl file.
For better understanding I give you following scenario:
Client makes init --> GET /testCollector/soapdispatcher and expects wsdl
if this operation was successfull the next request that follows is a POST /testCollector/soapdispatcher with an SOAP Operation.
My problem is that I have to use /soapdispatcher for both requests. I don't understand how to divide the request into GET and POST using Endpoints and maybe Controller. Is it possible to perform GET requests with spring-ws or is there any other solution for my problem?
Help would be very appreciated!