Borland c++ client.



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

.



Relevant Pages

  • Borland C++ client and .net 2.0 webServices
    ... The test web service function is very simple: ... values passed by the client. ... the webmethod continues to display to me ... string types (now I can see nothing in a debug session). ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: bug with sending null elements of DataSet[] ?
    ... On client side, call webmethod like this: ... So, on server side, I expected to see a DataSet array with one element, where that element contains null. ... This should have been a big hint to the client, but apparently, it was not. ... public int ID ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • strange error when sending dataset using WSE 2.0 encryption
    ... I have a Webmethod ... and the client (I use an X509 certificate and a policy file similar to ... --> There is an error in XML document ... System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Password authentication fails: SSH secure shell to openssh server
    ... Can connect to OpenSSH server from openSSH client but not from ... SSH Secure Shell Client ... debug: Ssh2/ssh2.c:2121/main: Entering event loop. ...
    (SSH)
  • Re: hostbased auth between commercial and OpenSSH
    ... The server just rejects hostbased from OpenSSH client saying method is ... Client side debug snippet (I've got hostbased as only ... client user 'myusername', server user 'myusername', ...
    (comp.security.ssh)