Announcement Announcement Module
Collapse
No announcement yet.
No endpoint mapping found Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No endpoint mapping found

    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,
    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 endpoint,
    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;
    	}
    }
    And this is my log,
    [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
    What am i missing here/ did i mess up with any config???Pls help


    PS- My soap request Wsa:Action tag.


    Thanks,
    Paary
    Last edited by paary; Sep 4th, 2012, 03:46 AM.

  • #2
    I worked around this use case and now im getting this exception,
    Error creating bean with name 'org.springframework.ws.server.endpoint.mapping.Pa yloadRootAnnotationMethodEndpointMapping#0': Initialization of bean failed; nested exception is org.springframework.context.ApplicationContextExce ption: Cannot map endpoint [public com.abc.oxm.Response com.abc.endpoint.DemoEndpoint.method1(com.abc.oxm. Request1)] on registration key [{http://xyz.abc.com/schema/Dummy}Request]: there's already endpoint [public com.abc.oxm.Response com.abc.endpoint.DemoEndpoint.method1(com.abc.oxm. Request1)] mapped

    Comment

    Working...
    X