java - Spring WS No adapter for endpoint error -


i trying create new spring web service in eclipse , test in soapui. when try run request in soapui gives me below error.

no adapter endpoint [public org.jdom.element com.pmp.adminendpoint.handlesigninrequest(org.jdom.element) throws java.lang.exception]: endpoint annotated @endpoint, or implement supported interface messagehandler or payloadendpoint? 

below admin.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"         xmlns:admin="http://pmp.com/admin/schemas"         elementformdefault="qualified"         targetnamespace="http://pmp.com/admin/schemas">       <xs:element name="signinrequest">         <xs:complextype>             <xs:all>                 <xs:element name="email" type="xs:string"/>                 <xs:element name="password" type="xs:string"/>             </xs:all>         </xs:complextype>     </xs:element>       <xs:element name="signinresponse" type="xs:string" />   </xs:schema> 

and spring-ws-servlet.xml

<beans xmlns="http://www.springframework.org/schema/beans"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xmlns:context="http://www.springframework.org/schema/context"   xmlns:sws="http://www.springframework.org/schema/web-services"   xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd   http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd   http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">    <context:component-scan base-package="com.pmp"/>   <sws:annotation-driven/>    <sws:dynamic-wsdl id="admin"                                                                porttypename="admindataservice"                                                              locationuri="/admin/">                                  <sws:xsd location="/web-inf/admin.xsd"/>                                                   </sws:dynamic-wsdl>  <bean id="adminendpoint" class="com.pmp.adminendpoint">         <constructor-arg ref="admindataservice" />     </bean>     <bean id="admindataservice" class="com.pmp.admindataserviceimpl" />     <bean id="admindataserviceregister" class="org.springframework.ws.server.endpoint.mapping.payloadrootannotationmethodendpointmapping">         <property name="defaultendpoint" ref="adminendpoint" />     </bean> </beans> 

and adminendpoint handlesigninrequest method

 @payloadroot(namespace = namespace_uri, localpart = "signinrequest")           @responsepayload       public element handlesigninrequest(@requestpayload element signinrequest)             throws exception {         string email = emailexpression.valueof(signinrequest);         string password = passwordexpression.valueof(signinrequest);          admindataservice.signin(email, password);         return new element("signinresponse");       } 

any idea on problem, in advance.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -