I am trying to add an operation to an existing webservice and let spring do everything for me Marshalling and Unmarshalling. So even before it comes to my endpoint it blows up with the error below. Schema has response : GetTextResponseType
No adapter for endpoint [public mycom.schema.myservice.GetTextResponseType mycom.endpoint.myserviceEndpoint.getInstructionTex t(mycom.schema.myservice.GetTextRequestType) throws java.lang.Throwable]: Does your endpoint implement a supported interface like MessageHandler or PayloadEndpoint?
Code:<Webservice-context> <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" "> <context:annotation-config /> <aop:aspectj-autoproxy /> <!-- Scan and Load Endpoints --> <context:component-scan base-package="mycom.endpoint" /> <bean class="mycom.common.log.factory.LogFactoryPostProcessor" /> <bean id="createAccountDozerMapper" class="net.sf.dozer.util.mapping.DozerBeanMapper"> <property name="mappingFiles"> <list> <value>webapp-dozer-mappings.xml</value> </list> </property> </bean> <oxm:jaxb2-marshaller id="wsMarshaller" contextPath="mycom.schema.*" /> <bean class="org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter"> <description>Enables the MessageDispatchServlet to invoke methods requiring OXM marshalling.</description> <constructor-arg ref="wsMarshaller" /> </bean> <!-- Schema --> <util:list id="schemaList"> <value>/WEB-INF/myservice.xsd</value> </util:list> <bean id="myservice" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition" p:wsdl="/WEB-INF/myservice.wsdl" /> <bean class="org.springframework.ws.server.endpoint.adapter.XPathParamAnnotationMethodEndpointAdapter"> <property name="namespaces"> <props> <prop key="sch">http://jpmchase.com/paymentnet4 </prop> <prop key="xs">http://www.w3.org/2001/XMLSchema </prop> <prop key="com">http://www.ibm.com/AC/commonbaseevent1_1 </prop> </props> </property> </bean> <!-- Endpoint Mappers --> <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" /> <!-- Exception Resolver --> <bean id="exceptionResolver" class="org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver"> <property name="defaultFault" value="SERVER" /> <property name="exceptionMappings"> <value> mycom.common.exceptions.PnetWebServiceException=SERVER,The application encountered an unexpected error. Please contact the System Administrator to report this. </value> </property> </bean> <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basenames"> <list> <value>resources</value> <value>messages/errormessages</value> <value>messages/sitetext</value> </list> </property> </bean> </beans>Code:@PayloadRoot(localPart = REQUEST_LOCAL_NAME, namespace = NAMESPACE_URI) public Source getMFA(@XPathParam(GET_MFA_REQUEST_ORG_ID) String orgID, @XPathParam(GET_MFA_REQUEST_USER_LOGIN) String userLogin)<WSDL>Code:<ENDpoint> @Endpoint public class myserviceEndpoint { private static final Log LOGGER = LogFactory .getLog(myserviceEndpoint.class); @PayloadRoot(localPart = "GetMFARequest", namespace = NAMESPACE_URI) public Source getMFA(@XPathParam(GET_MFA_REQUEST_ORG_ID) String orgID, @XPathParam(GET_MFA_REQUEST_USER_LOGIN) String userLogin) { User user; Element response = null; try { | | | @PayloadRoot(localPart = "getInstructionTextRequest" ,namespace = NAMESPACE_URI) public GetInstructionTextResponseType getInstructionText(GetInstructionTextRequestType getInstructionTextRequestType) throws Throwable{ final Locale locale = Locale.getDefault(); GetInstructionTextResponseType getInstructionTextResponseType = new GetInstructionTextResponseType(); if(getInstructionTextRequestType != null ){ try{
]


Reply With Quote
