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

  • No endpoint mapping found for SaajSoapMessage

    All, i am testing my service with soapui. And endup with this exception after submitting the following request. I have searched the forum and couldn't find the root cause for the same. I am using Tomact 6.x and java 1.5 and spring-ws 1.6.0.x

    Here is my source.
    Soap ui request:
    Code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://geocoderus.abc.com/geocode/schemas">
       <soapenv:Header/>
       <soapenv:Body>
          <sch:GeocodeRequest>
             <sch:Line1>1600</sch:Line1>
             <sch:Line2>Pennsylvania Ave</sch:Line2>
             <sch:City>Washington</sch:City>
             <sch:State>DC</sch:State>
             <sch:Zip>20006</sch:Zip>
          </sch:GeocodeRequest>
       </soapenv:Body>
    </soapenv:Envelope>
    spring-ws-servlet.xml:
    Code:
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"
    	xmlns:tx="http://www.springframework.org/schema/tx">
    
    	<bean id="gecoderServiceEndPoint"
    		class="com.abc.geocoderus.server.ws.GecoderServiceEndPoint">
    		<constructor-arg ref="geocoderService" />
    	</bean>
    
    	<bean id="geocoderService"
    		class="com.abc.geocoderus.server.service.impl.GecoderService" />
    
    	<bean id="endpointMapping"
    		class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping">
    		<property name="mappings">
    			<props>
    				<prop
    					key="{http://geocoderus.abc.com/schemas}GeocodeRequest">
    					gecoderServiceEndPoint
    				</prop>
    			</props>
    		</property>
    		<property name="interceptors">
    			<list>
    				<ref bean="validatingInterceptor" />
    			</list>
    		</property>
    	</bean>
    
    	<bean id="validatingInterceptor"
    		class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor">
    		<property name="schema"
    			value="classpath:com/abc/geocoderus/resource/GeocodeRequest.xsd" />
    		<property name="validateRequest" value="false" />
    		<property name="validateResponse" value="true" />
    	</bean>
    
    	<bean id="geocode"
    		class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
    		<property name="schema" ref="schema" />
    		<property name="portTypeName" value="geocoderus.abc.com" />
    		<property name="locationUri" value="/ws/" />
    		<property name="targetNamespace"
    			value="http://geocoderus.abc.com/schemas" />
    	</bean>
    
    	<bean id="schema"
    		class="org.springframework.xml.xsd.SimpleXsdSchema">
    		<property name="xsd"
    			value="classpath:com/abc/geocoderus/resource/GeocodeRequest.xsd" />
    	</bean>
    </beans>
    and log:

    Code:
    17 Oct 2008 12:32:33,998 [http-8080-1] DEBUG - MessageDispatcher.receive(157) | Received request [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://geocoderus.abc.com/geocode/schemas">
       <soapenv:Header/>
       <soapenv:Body>
          <sch:GeocodeRequest>
             <sch:Line1>1600</sch:Line1>
             <sch:Line2>Pennsylvania Ave</sch:Line2>
             <sch:City>Washington</sch:City>
             <sch:State>DC</sch:State>
             <sch:Zip>20006</sch:Zip>
          </sch:GeocodeRequest>
       </soapenv:Body>
    </soapenv:Envelope>
    ]
    17 Oct 2008 12:32:33,998 [http-8080-1] WARN - MessageDispatcher.dispatch(223) | No endpoint mapping found for [SaajSoapMessage {http://geocoderus.abc.com/geocode/schemas}GeocodeRequest]
    What I'm doing wrong? Thanks in advance.
    Last edited by Sharath; Oct 17th, 2008, 08:33 AM.

  • #2
    Hi

    Your mapping has the following

    <prop key="{http://geocoderus.abc.com/schemas}GeocodeRequest"> gecoderServiceEndPoint</prop>

    Your namespace in the request is xmlns:sch="http://geocoderus.abc.com/geocode/schemas"

    So try to add this in your mapping.

    Comment


    • #3
      thanks a ton . Now it works fine.

      Comment

      Working...
      X