You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by imiten <im...@yahoo.com> on 2012/04/26 14:37:16 UTC

@ResponseWrapper and default operationName + Response in result

Hi,

I am getting below response from web method.  I want to change the default
save_productResponse element so I tried ResponseWrapper but looks like I am
not using it right or may be I need to use some thing else.  Please guide.

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:&lt;b>save_productResponse*
xmlns:ns2="http://webservice.mkyong.com/"><product_id>27</product_id></ns2:save_productResponse></soap:Body></soap:Envelope>


@Override
@WebResult(name="product_id")
@ResponseWrapper(localName="product", className="java.lang.Long")
public long save(@WebParam(name="product") Product product,
@WebParam(name="qoh")int qoh) {
	// TODO Auto-generated method stub 
	return productBo.save(product, qoh);
}


Regards,

Miten.

--
View this message in context: http://cxf.547215.n5.nabble.com/ResponseWrapper-and-default-operationName-Response-in-result-tp5667468p5667468.html
Sent from the cxf-user mailing list archive at Nabble.com.