axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "donald yang" <>
Subject How to set the content type of SOAP request to TEXT/XML
Date Tue, 21 Oct 2008 16:21:40 GMT
Hi All,

Currently I have a problem to call a .NET web service from a web service
client written using AXIS2C-1.4. I received an error that the .NET web
service expect that the content type of SOAP request should be TEXT/XML. But
the content type of the soap request created by AXIS2C-1.4 is
"multipart/related" [1].

I have searched the internet for a solution. Someone suggest to set the soap
version to 1.1. I tried that, but I still get the same problem. I also try
to disable MTOM. It is also not helpful.  If someone knows the solution,
could you please give me a hand? Many thanks in advance.

[1] SOAP request

POST /length.asmx HTTP/1.1
User-Agent: Axis2C/1.4.0
SOAPAction: "http://www.webserviceX.NET/ChangeLengthUnit"
Content-Length: 622
Content-Type: multipart/related;
type="application/xop+xml"; start="<>"; start-info="text/xml";

content-transfer-encoding: binary
content-id: <>content-type:
   <soapenv:Envelope xmlns:soapenv="">
         <ns1:ChangeLengthUnitSoapIn xmlns:ns1="http://www.webserviceX.NET/

View raw message