我正在尝试在eclipse中创建一个新的spring web服务并在soapUI中测试它。但是当我尝试在soapUI中运行请求时,它会给我以下错误。
$("label").text("150.000.000");
$("#myselect").on('change', function() {
$("#label").text(function() {
return $(this).val() == '1' ? "150.000.000" : "350.000.000";
})
});
以下是我的No adapter for endpoint [public org.jdom.Element com.pmp.AdminEndpoint.handleSignInRequest(org.jdom.Element) throws java.lang.Exception]: Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?
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>
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>
AdminEndpoint
方法
handleSignInRequest
对这个问题有任何想法,提前谢谢。