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

  • No endpoint mapping found error

    I cannot figure out why the endpoint is not found, checked for similar posts and resolutions, nothing jumped out at me as my problem.

    From the server log:
    The key seems to be mapped to the endpoint correctly:
    Code:
    [org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping] - Mapped key [{http://localhost:8080/gstUsage}AddUsageDataRequest] onto endpoint [com.generatedsystems.ws.XPathGstUsageEndpoint@a6d35]
    The server receives the request (I am using soapUI to send the request)
    Code:
    [org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter] - Accepting incoming [[email protected]cc] to [http://localhost:8080/gstUsage/]
    The request:
    Code:
    2010-08-23 16:28:33,687 TRACE [org.springframework.ws.server.MessageTracing.received]
    - Received request [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gst="http://localhost:8080/gstUsage">
       <soapenv:Header/>
       <soapenv:Body>
          <gst:AddUsageDataRequest>
             <gst:usage>
                <gst:bank>BANKID</gst:bank>
                <gst:identifier>IDENTIFIER</gst:identifier>
                <gst:funct>INSTALL</gst:funct>
                <gst:usageTime>2010-08-14 10:00:00.090</gst:usageTime>
             </gst:usage>
          </gst:AddUsageDataRequest>
       </soapenv:Body>
    </soapenv:Envelope>]
    The exception:
    Code:
    [org.springframework.ws.server.EndpointNotFound] - No endpoint mapping found for [SaajSoapMessage {http://localhost:8080/gstUsage}AddUsageDataRequest]
    The endpoint mapping from spring-ws-servlet,xml
    Code:
    <bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.XPathPayloadEndpointMapping">	
    	<property name="interceptors">
    		<bean id="loggingInterceptor" class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor"/>
    	</property>	
    	<property name="mappings">
    		<props>			
    			<prop key="{http://localhost:8080/gstUsage}AddUsageDataRequest">xPathGstUsageEndpoint</prop>			
    		</props>
    	</property>
    </bean>
    Where have I made a mistake? Thanks for any help.

  • #2
    Hi

    Strange - in first log it says you're using PayloadRootQNameEndpointMapping, but in the last snippet you declare XPathPayloadEndpointMapping - check this out.

    regards
    Grzegorz Grzybek

    Comment

    Working...
    X