Author: sagara Date: Wed Oct 5 14:03:25 2011 New Revision: 1179230 URL: http://svn.apache.org/viewvc?rev=1179230&view=rev Log: Applied patch for AXIS2-5138.
Modified: axis/axis2/java/core/trunk/src/site/xdoc/docs/rest-ws.xml Modified: axis/axis2/java/core/trunk/src/site/xdoc/docs/rest-ws.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/src/site/xdoc/docs/rest-ws.xml?rev=1179230&r1=1179229&r2=1179230&view=diff ============================================================================== --- axis/axis2/java/core/trunk/src/site/xdoc/docs/rest-ws.xml (original) +++ axis/axis2/java/core/trunk/src/site/xdoc/docs/rest-ws.xml Wed Oct 5 14:03:25 2011 @@ -102,11 +102,12 @@ AXIS2_HOME/samples/userguide/src/usergui Options options = new Options(); options.setTo(new EndpointReference(toEpr)); + options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE); ServiceClient sender = new ServiceClient(); - sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); + sender.engageModule(Constants.MODULE_ADDRESSING); sender.setOptions(options); OMElement result = sender.sendReceive(getPayload()); @@ -121,6 +122,7 @@ AXIS2_HOME/samples/userguide/src/usergui e.printStackTrace(); } } + private static OMElement getPayload() { OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace(