Trying to specify a custom soap header. Not sure how the SoapEnvelope.headerOut propery is to be populated.
My code so far?
String soapAction = serviceNamespace + "/SearchCustomer";
SoapObject rpc = new SoapObject(serviceNamespace, "SearchCustomers");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = rpc;
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.ENC;
rpc.addProperty("searchBy", searchBy);
rpc.addProperty("groupBy", Integer.toString(groupBy));
Here is the header WSDL extract...
<soap:Header>
<MISHeader xmlns="http://NCBI/WS/CRM">
<applicationName>string</applicationName>
<userName>string</userName>
</MISHeader>
</soap:Header>