@PayloadRoot(localPart = "cancelOrderRequest", namespace = TARGET_NAMESPACE) public JAXBElement<CancelOrderResponse> cancelOrder(CancelOrderRequest cancelOrderRequest) { CancelOrderResponse response = JAXB_OBJECT_FACTORY.createCancelOrderResponse(); response.setCancelled(orderService.cancelOrder(cancelOrderRequest.getRefNumber())); QName qName = new QName(TARGET_NAMESPACE, "cancelOrderResponse"); return new JAXBElement<CancelOrderResponse>(qName, CancelOrderResponse.class, response); }
@PayloadRoot(localPart = "placeOrderRequest", namespace = TARGET_NAMESPACE) public JAXBElement<PlaceOrderResponse> getOrder(PlaceOrderRequest placeOrderRequest) { PlaceOrderResponse response = JAXB_OBJECT_FACTORY.createPlaceOrderResponse(); response.setRefNumber(orderService.placeOrder(placeOrderRequest.getOrder())); QName qName = new QName(TARGET_NAMESPACE, "placeOrderResponse"); return new JAXBElement<PlaceOrderResponse>(qName, PlaceOrderResponse.class, response); }