I am using SoapActionEndpointMapping, with GenericMarshallingMethodEndpointAdapter and Jaxb2Marshaller.
My end point is
Code:import javax.xml.bind.JAXBElement; import org.apache.log4j.Logger; import org.springframework.ws.server.endpoint.annotation.Endpoint; import org.springframework.ws.soap.addressing.server.annotation.Action; import com.mycompany.Order; import com.mycompany.CreateOrder; @Endpoint public class MyActionEndpoint { protected static final Logger log = Logger.getLogger(MyActionEndpoint.class); protected OrderService orderService; public MyActionEndpoint(OrderService orderService) { this.orderService = orderService; } @Action("http://www.myweb.com/schema/getOrder") public JAXBElement<Order> createOrder(JAXBElement<CreateOrder> request) { return orderService.createOrder(request.getValue()); } }
While debugging, I saw that the endpoint is not a MethodEndpoint in the AbstractMethodEndpointAdaptor.supports method.
I made sure the method argument and the return type of the payload method are JAXBElements. Still I am getting this error. can someone advice on this ?
Thanks in advance,
Shameer


Reply With Quote
