dear all
I'm evaluating different approaches to do an endpoint mapping. Therefore, I'm checking out the URIEndpointMapping which I seem not to use correctly.
Here's what I do.
I put this into my spring-ws-servlet.xml:
In my WSDL, I use the following code:Code:<bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.UriEndpointMapping"> <description> The SimpleActionEndpointMapping is meant to be used in a standard Spring application context. It maps actions to endpoints via an exposed mappings property </description> <property name="mappings"> <props> <prop key="h**p://localhost:14480/myService/dService"> dEndpoint </prop> <prop key="h**p://localhost:14480/myService/udService"> udEndpoint </prop> </props> </property> </bean>
Note: the different port numbers are intentionally as I'm using monitoring within eclipse to see what traffic goes over the wire.Code:<service name="Service"> <port name="dPort" binding="tns:dBinding"> <soap:address location="h**p://localhost:8080/myService/dService" /> </port> <port name="udPort" binding="tns:udBinding"> <soap:address location="h**p://localhost:8080/myService/udService" /> </port> </service>
In the calling code, I do the following:
where the serviceURL corresponds to h**p://localhost:14480/myService/dService for example.Code:.... response = (JAXBElement<ResponseType>) getWebServiceTemplate().marshalSendAndReceive(serviceURL, type); ...
The error that comes is an Error 404 not found. What am I doing wrong? Any ideas or hints?
Regards,
rox


Reply With Quote