kokok_kokok@yahoo.es Guest
|
Posted: Tue Aug 02, 2005 4:58 pm Post subject: Web Services |
|
|
I am trying to work with Web Services. I use .NET for the server and
BC6++ for the client.
In the server I have
[WebMethod]
public int Sum(int a, int b)
{
return a+b;
}
It is a simple web service that sums the 2 parameters. It works fine
since I can test it using another NET program.
The problem is whe I consum web services from BC++ 6. It always returns
0. I have imported the WSDL. Any clue?
The soap message that BC++6 sends is:
<?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:Sum xmlns:NS1="http://agritecsoft.com/">
<a xsi:type="xsd:int">3</a>
<b xsi:type="xsd:int">5</b>
</NS1:Sum></SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thank you
|
|