Hi
 
Is it possible to combine both SOAP and REST pointing to same
interface/class in java-first approach. It seems it is possible by
looking at this documentation.
(http://cxf.apache.org/docs/jax-rs.html#JAX-RS-Understandingthebasics).
If so, how are we dealing with SOAP header in REST world.
 
For example, here is SOAP signature. How does it work in REST way? I
mean..how to modify this signature to make it work for both REST and
SOAP at the same time (just using annotations). Please remember that it
has AuthHeader. How does it behave in REST call? Thanks in advance
 
 @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
 @WebResult(targetNamespace = "http://order.api.xxx.com/";, partName =
"parameters", name = "orderResponse")
 @WebMethod
 public com.xxx.api.order.OrderResponse getOrder(
   @WebParam(targetNamespace = "http://order.api.xxx.com/";, partName =
"parameters", name = "orderRequest")
   com.xxx.api.order.OrderRequest parameters,
   @WebParam(targetNamespace = "http://order.api.xxx.com/";,
name="AuthHeader", header=true, partName="AuthHeader")
   com.xxx.webservices.common.AuthHeader authHeader) throws XXXFault;

 

Regards

Karuna Pydipati

StubHub/eBay - Platform & Services

Phone: (415)222-8752

Email: [email protected] <mailto:[email protected]> 

 

 

Reply via email to