[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Stefan

1/13/2003 10:20:00 AM

Hi,

I'm trying to use gSOAP to access my webservice and to send over a byte
array. The problem is that my bytes are lost somewhere during the
deserialization on the server side.

I get the following result when saving the raw input by using
this.Context.Request.SaveAs(file1, true);

Connection: Keep-Alive
Content-Length: 537
Content-Type: text/xml; charset=utf-8
Host: localhost
User-Agent: gSOAP/2.1
SOAPAction: "http://tempuri.org/AuthorizeVou...

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envel... xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encod...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst...
xmlns:xsd="http://www.w3.org/2001/XMLSc... xmlns:s0
="http://tempuri.org/...
<SOAP-ENV:Body SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encod...>
<s0:AuthorizeVoucher>
<request xsi:type="xsd:base64Binary">MzA4NDAwMTAwMDAwMjkyNQ==</request>
</s0:AuthorizeVoucher>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

When I try the same webservice from a webpage built with ASP.NET I get

POST /CommerceWebService/InternalService.asmx HTTP/1.1
Content-Length: 354
Content-Type: text/xml; charset=utf-8
Expect: 100-continue
Host: 127.0.0.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.0.3705.288)
VsDebuggerCausalityData: AwAAA...
SOAPAction: "http://tempuri.org/AuthorizeVou...

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envel...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst...
xmlns:xsd="http://www.w3.org/2001/XMLSc...>
<soap:Body>
<AuthorizeVoucher xmlns="http://tempuri.org/...
<request>MzA4NDAwMTAwMDAwMjgyNQ==</request>
</AuthorizeVoucher>
</soap:Body>
</soap:Envelope>

The ASP.NET version is working, gSOAP doesn't. Why?

Please help!