Ravinderjit Singh wrote:Try this way.
It does not work. I still get the same error.
org.apache.axis2.AxisFault: Transport level information does not match with SOAP Message namespace URI
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:90)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at com.acn.bellGasApi.Client.main(Client.java:43)
I posted the same question on Stackoverflow as well and some one from Apache Axis 2 team replied that the issue is with the Service and not the client. I am using HttpTransportProperties.Authenticator correctly, however the service is changing the soap messaeg type and content type which is causing the issue. I only have the wsdl adn have not control over the service code as it maintained by third party.