我已经创建了Spring SOAP WS,并且可以在我的本地计算机上正常工作,但是当我部署它时,在服务器上进行了部署就可以了,没有任何错误。
但是,当我调用它时,每次它给我请求为空。 我在本地PC和服务器上使用了相同的JAVA版本和Tomcat版本。
@Endpoint
public class ServiceEndpoint {
private static final String NAMESPACE_URI = "urn:clr:remtp:schemas:PlaceOrderRequest:1.00";
private static final String NAMESPACE_URI2 = "urn:clr:remtp:schemas:PlaceOrderResponse:1.00";
private static Logger logg = Logger.getLogger(ServiceEndpoint.class);
@Autowired
private Broadband_service broadband_service;
@PayloadRoots({
@PayloadRoot(namespace = NAMESPACE_URI, localPart = "placeOrderRequest"),
@PayloadRoot(namespace = NAMESPACE_URI2, localPart = "placeOrderResponse")
})
@ResponsePayload
public GetPlaceOrderResponse placeOrder(@RequestPayload GetPlaceOrderRequest request) throws Exception {
logg.info("Payload Request Execution start.");
System.out.println("reequest value is <<<<<<<<< "+request);
GetPlaceOrderResponse response = new GetPlaceOrderResponse();
broadband_service.placeOrder(response,request);
return response;
}
}