Paul,

> What version of .NET is this?

I'm using Visual Studio 2005, .NET Framework v2.0.50727

> Try
>
> stub._getServiceClient().getOptions().setSoapVersionURI(org.apache.axis2.namespace.Constants.URI_SOAP11_ENV
> );

Hmm, same result

Request:
------------------------------------------------
POST /Service1.asmx HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://triniforce.com/soap/sample/getStrings";
User-Agent: Axis2
Host: localhost:8091
Transfer-Encoding: chunked

18e
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns1:getStrings
xmlns:ns1="http://triniforce.com/soap/sample";><ns1:arg><ns1:string>Str1</ns1:string><ns1:string
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="1"
/><ns1:string>Str2</ns1:string></ns1:arg></ns1:getStrings></soapenv:Body></soapenv:Envelope>
0


Response:
--------------------------------------------------

HTTP/1.1 400 Bad Request
Server: ASP.NET Development Server/8.0.0.0
Date: Fri, 26 Oct 2007 12:59:48 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Length: 0
Connection: Close

Same XML with another headers works perfect
-----------------------------------------------------------------------
POST /Service1.asmx HTTP/1.1
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://triniforce.com/soap/sample/getStrings";
User-Agent: Jakarta Commons-HttpClient/3.0.1
Host: localhost:8091
Content-Length: 398

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns1:getStrings
xmlns:ns1="http://triniforce.com/soap/sample";><ns1:arg><ns1:string>Str1</ns1:string><ns1:string
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="1"
/><ns1:string>Str2</ns1:string></ns1:arg></ns1:getStrings></soapenv:Body></soapenv:Envelope>

HTTP/1.1 200 OK
Server: ASP.NET Development Server/8.0.0.0
Date: Fri, 26 Oct 2007 13:09:39 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 433
Connection: Close

<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><getStringsResponse
xmlns="http://triniforce.com/soap/sample";><getStringsResult><string>Str1</string><string
xsi:nil="true" 
/><string>Str2</string></getStringsResult></getStringsResponse></soap:Body></soap:Envelope>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to