Showing posts with label Axis. Show all posts
Showing posts with label Axis. Show all posts

Wednesday, January 20, 2010

disable Axis2 soapAction

Sometimes we want to disable soapAction of Axis2 to communicate .Net WCF webservice.

Add below in NetworkNode2Stub.java


//adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// set the message context with that soap envelope
_messageContext.setEnvelope(env);

// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);

// Disable SOAP_ACTION to fix .Net endpoint without soapAction
_operationClient.getOptions().setProperty(

org.apache.axis2.Constants.Configuration.DISABLE_SOAP_ACTION,
org.apache.axis2.Constants.VALUE_TRUE);

//execute the operation client
_operationClient.execute(true);