Results 1 to 4 of 4

Thread: Request to endpoint - endpoint not found

  1. #1
    Join Date
    May 2010
    Location
    Atlanta
    Posts
    12

    Default Request to endpoint - endpoint not found

    I'm new to Spring WS - I think everything is correct but I get that the endpoint cannot be found. I've been going in circles.

    Any help is very much appreciated, I'm stuck at this point.

    Here is the log, the endpoint seems to be mapped correctly:
    Code:
    [org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping] - Mapped key [{http://localhost:8080/gstUsage}AddUsageDataRequest] onto endpoint [com.generatedsystems.ws.GstUsageEndpoint@15872f5]
    spring-ws-servlet:
    Code:
     	<bean id="gstUsageEndpoint" class="com.generatedsystems.ws.GstUsageEndpoint">
        	<constructor-arg ref="gstUsageService"/>
    	</bean>
    
        <bean id="gstUsageService" class="com.generatedsystems.service.impl.GstUsageServiceImpl"/>
    
    	<bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping">
        	<property name="mappings">
            	<props>
                	<prop key="{http://localhost:8080/gstUsage}AddUsageDataRequest">gstUsageEndpoint</prop>
            	</props>
        	</property>
        	<property name="interceptors">
            	<bean class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor"/>
        	</property>
    	</bean>
    The request (using soapUI)
    Code:
    [<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 error from the log:
    Code:
    [org.springframework.ws.server.EndpointNotFound] - No endpoint mapping found for [SaajSoapMessage {http://localhost:8080/gstUsage}AddUsageDataRequest]
    Anything else that would be helpful for me to post?

    Thank you

  2. #2
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    429

    Default

    Hi

    Endpoint mapping is the first step - to check what endpoint is to handle the incoming message.
    But there's second step performed by org.springframework.ws.server.MessageDispatcher - to check what EndpointAdapter is going to invoke the endpoint found in first step.
    Send the entire XML configuration please.

    But what version of Spring-WS you're using? There is no EndpointNotFound exception in any of Spring-WS 1.0.4, 1.5.9 and 2.0.0....

    regards
    Grzegorz Grzybek

  3. #3
    Join Date
    May 2010
    Location
    Atlanta
    Posts
    12

    Smile

    Grzegorz,

    Many thanks for the reply.

    I am using 1.5.9, but you are right that the class name referenced in the log file does not exist as a class in any of the spring ws jar files.

    Looking at the spring ws source code that package/class string is just a final static value in the MessageDispatcher class, as something that is wriiten to the log, misleading, but fine I think.

    Your adapter comment got me looking deeper into my code. I started using the airline example, I had some configurations still in my project from the airline example, I spent sometime cleaning up my configuration and now I am getting to my endpoint successfully. I did not have to configure an adapter specifically, as spring is just using PayloadEndpointAdapter since I did not specify one.

    Thanks for indirectly pointing me in the right direction, now I can continue on with getting the logic from the endpoint to a database working.

    Cheers

  4. #4
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    429

    Default

    Hi

    Of course - silly me - I haven't checked the ENDPOINT_NOT_FOUND_LOG_CATEGORY field

    Would you mind sharing your solution/explaining what was the problem? It would surely help others

    regards
    Grzegorz Grzybek

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •