Borland c++ client.
- From: Andrea Valori <developer@xxxxxxxxxxxxx(donotspam)>
- Date: Wed, 12 Mar 2008 03:33:06 -0700
Hi everyone, I'm trying to consume a .net 2.0 webservice by a 3ty part client
written in Borland c++. The test web service function is very simple: a
function that accepts two integer passed byval and returns true if the
integers are the same and false if they aren't. The problem is that when the
client request incoming, the parameters have a value of zero, regardless the
values passed by the client. With MS network monitor I've analyzed the
traffic between the server and the client and as you can notice the values
are passed:
POST /xxx/xxx.asmx HTTP/1.1..Accept: text/xml..SOAPAction:
"http://xxxx.it/login"..Content-Type: text/xml..User-Agent: Borland SOAP
1.1..Host: 192.168.1.33..Content-Length: 509..Connection:
Keep-Alive..Cache-Control: no-cache....<?xml
version="1.0"?>..<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><NS1:login
xmlns:NS1="http://xxxx.it/"><user xsi:type="xsd:int">11</user><password
xsi:type="xsd:int">22</password></NS1:login></SOAP-ENV:Body></SOAP-ENV:Envelope>.
After I try to force the soap encoding on the webservice adding the code
below on the webmethod:
<SoapDocumentMethod("http://www.xxxx.it/login", _
RequestNamespace:="http://www.xxxx.it", _
ResponseNamespace:="http://www.xxxx.it", _
Use:=Description.SoapBindingUse.Encoded)> _
and now, after the client recompiling with the new WSDL, the message
received by the client is:
POST /xxx/xxx.asmx HTTP/1.1..Accept: text/xml..SOAPAction:
"http://xxxx.it/login"..Content-Type: text/xml..User-Agent: Borland SOAP
1.1..Host: 192.168.1.33..Content-Length: 622..Connection:
Keep-Alive..Cache-Control: no-cache....<?xml
version="1.0"?>..<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:NS2="http://www.xxxx.it"><NS1:login
xmlns:NS1="http://www.xxxx.it"><parameters href="#1"/></NS1:login><NS2:login
id="1" xsi:type="NS2:login"><user xsi:type="xsd:int">10</user><password
xsi:type="xsd:int">20</password></NS2:login></SOAP-ENV:Body></SOAP-ENV:Envelope>
but nothing changes: the webmethod continues to display to me (in debug)
that the parameters user and password are zero! This occours if I try to use
string types (now I can see nothing in a debug session).
Have someone any idea? How can I solve this problem.
Thanks in Advance,
Andrea Valori
.
- Prev by Date: Re: WCF security advice (and clarification) needed
- Next by Date: Borland C++ client and .net 2.0 webServices
- Previous by thread: Re: WCF security advice (and clarification) needed
- Next by thread: Borland C++ client and .net 2.0 webServices
- Index(es):
Relevant Pages
|