-
Jun 27th, 2007, 11:03 AM
#1
No adapter for endpoint error when using XPathParamAnnotationMethodEndpointAdapter
When testing my web service on the soapui client i get this in the response:
No adapter for endpoint [public javax.xml.transform.Source org.springframework.ws.samples.airline.ws.OrderEnd point.messageRecall(int) throws org.springframework.ws.samples.airline.service.Man agementException,javax.xml.bind.JAXBException]: Does your endpoint implement a supported interface like MessageHandler or PayloadEndpoint?</faultstring>
</SOAP-ENV:Fault>
I have an OrderEndpoint that uses the @XPathParam and @PayloadRoot.I also have the adapters and endpoint mappings defined in the spring-ws-servlet.xml and have the appropriate .jars in my web-inf/lib.
Following is a part of the spring-ws-servlet.xml i have written:
<bean id="OrderEndpoint" class="org.springframework.ws.samples.airline.ws.O rderEndpoint">
<constructor-arg ref="orderService"/>
<constructor-arg ref="marshaller"/>
</bean>
<bean id="orderService" class="org.springframework.ws.samples.airline.serv ice.impl.OrderServiceImpl"/>
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
<property name="contextPath" value="org.springframework.ws.samples.airline.sche ma"/>
</bean>
<bean class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping">
</bean>
<bean class="org.springframework.ws.server.endpoint.adap ter.XPathParamAnnotationMethodEndpointAdapter">
<description>
This adapter allows for methods that use @XPathParam annotations. The XPathAirlineEndpoint uses JAXB2 these.
</description>
<property name="namespaces">
<props>
<prop key="tns">http://monitise.com/types/MWSEndpointIntf</prop>
</props>
</property>
</bean>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules