BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Web Services

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
kokok_kokok@yahoo.es
Guest





PostPosted: Tue Aug 02, 2005 4:58 pm    Post subject: Web Services Reply with quote




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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.