Hi,
I was trying to come up with a demo. My use case is, i need to identify the type of request based on the url (instead of root element). This is what i came up with for a demo. I have declared 2 url patterns (as message dispatcher servlets) and followed in that way.
This is what i did for mapping,
and this is my endpoint,Code:bean class="org.springframework.ws.soap.server.endpoint.mapping.SoapActionEndpointMapping"> <property name="mappings"> <props> <prop key="http://localhost:8080/POC2/Demo1/DemoService1">Demo1</prop> <prop key="http://localhost:8080/POC2/Demo2/DemoService2">Demo1</prop> </props> </property> </bean> <bean id="Demo1" class="com.example.endpoint.Demo1Endpoint"> </bean>
And this is my log,Code:@Endpoint public class Demo1Endpoint { @Action(value="http://localhost:8080/POC2/Demo1/DemoService1") public Response method1(Request1 request1) { System.out.println("Inside the Demo1Endpoint-method1"); System.out.println("***Request details****"); System.out.println("\t"+request1.getReqId()+"\t"+request1.getReqName()+"\n"); Response response=new Response(); response.setComments("Request received by method1"); response.setResponseId(request1.getReqId()+100); return response; } @Action("http://localhost:8080/POC2/Demo2/DemoService2") public Response method2(Request2 request2){ System.out.println("Inside Demo2Endpoint-method 2"); System.out.println("***Request Details***"); System.out.println("\t"+ request2.getReqId()+"\t"+ request2.getReqName()+"\t"+ request2.getReqDate()+"\n"); Response response=new Response(); response.setComments("Request received by method2"); response.setResponseId( request2.getReqId()+200); return response; } }
What am i missing here/ did i mess up with any config???Pls help[DEBUG] [http-8080-1 06:47:04] (WebServiceMessageReceiverObjectSupport.java:logUr i:114) Accepting incoming [org.springframework.ws.transport.http.HttpServletC onnection@13829d5] at [http://localhost:8080/POC2/Demo2/DemoService2]
[DEBUG] [http-8080-1 06:47:04] (MessageDispatcher.java:receive:170) Received request [SaajSoapMessage {http://abc.rules.com/schema/RulesDummy}Request1]
[DEBUG] [http-8080-1 06:47:04] (AbstractMethodEndpointMapping.java:getEndpointInt ernal:60) Looking up endpoint for [{http://abc.rules.com/schema/RulesDummy}Request1]
[DEBUG] [http-8080-1 06:47:04] (MessageDispatcher.java:getEndpoint:265) Endpoint mapping [org.springframework.ws.server.endpoint.mapping.Pay loadRootAnnotationMethodEndpointMapping@a826da] has no mapping for request
[DEBUG] [http-8080-1 06:47:04] (AbstractMethodEndpointMapping.java:getEndpointInt ernal:60) Looking up endpoint for []
[DEBUG] [http-8080-1 06:47:04] (MessageDispatcher.java:getEndpoint:265) Endpoint mapping [org.springframework.ws.soap.server.endpoint.mappin g.SoapActionAnnotationMethodEndpointMapping@18ed77 a] has no mapping for request
[DEBUG] [http-8080-1 06:47:04] (MessageDispatcher.java:getEndpoint:265) Endpoint mapping [org.springframework.ws.soap.server.endpoint.mappin g.SoapActionEndpointMapping@e496ab] has no mapping for request
[ WARN] [http-8080-1 06:47:04] (MessageDispatcher.java:dispatch:238) No endpoint mapping found for [SaajSoapMessage {http://abc.rules.com/schema/RulesDummy}Request1]
[DEBUG] [http-8080-1 06:47:04] (FrameworkServlet.javarocessRequest:674) Successfully completed request
PS- My soap request Wsa:Action tag.
Thanks,
Paary


rocessRequest:674) Successfully completed request
Reply With Quote