Usage of SoapActionEndpointMapping in Spring-ws


Usage of SoapActionEndpointMapping in Spring-ws



I'm trying to create a WS based on a WSDL that defines one Request and one Response. The incoming request should be mapped to an endpoint depending on the SOAPAction defined in the SOAP message. To achieve this I'm trying to use the SoapActionEndpointMapping in my servlet.xml config file and define the mappings, as described in the Spring documentation.

 <bean id="endpointMapping" class="org.springframework.ws.soap.server.endpoint.mapping.SoapActionEndpointMapping">     <property name="mappings">         <props>             <prop key="http://myCompany/MyService/MyRequest/mySoapActionOne">myFirstEndpoint</prop>             <prop key="http://myCompany/MyService/MyRequest/mySoapActionTwo">mySecondEndpoint</prop>         </props>     </property> 

My endpoint extends AbstractMarshallingPayloadEndpoint and should be able to handle the requests.

The problem is that when I try to send a request (with SoapUI) i get the following error in the log:

WARN  [EndpointNotFound] No endpoint mapping found for [SaajSoapMessage {http://schemas.mycompany/MyService}MyRequest] 

I have used the PayloadRootQNameEndpointMapping with great success earlier but can not this to work.

Any help is appreciated.

Regards.




Use part of the URL as an argument to a controller in Spring MVC

1:



Spring MVC Custom Authentication
Do you have a handler adapter bean defined also? You'll need one in order to use a MarshallingPayloadEndpoint, so that spring knows how to perform the marshalling.


Why not to use Spring's OpenEntityManagerInViewFilter
The adapter is called something like MarshallingEndpointHandlerAdapter, or similar..
Is there a public Maven repository that contains spring-core 3 yet?


getting started with spring framework [closed]


User initiated background process in a web application

2:



What causes a Spring 1.2 NullPointerException when creating prepared statement?
In your SOAP client (SOAPUI), you'll need to add the SOAPAction header to your request, to supply spring with the SOAP action to use in its mapping..
Marking a 3rd party class property as required (Java/Spring)
E.g.

SOAPAction=http://myCompany/MyService/MyRequest/mySoapActionOne. It shouldn't make any difference what type of Endpoint you're using, because currently, you're receiving a 404 response - your request isn't finding its way to any endpoint..



88 out of 100 based on 48 user ratings 1198 reviews