🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.webservices.soap
Article #57

Using THTTPRIO component for web services client

#57
From: d
Date: Fri, 03 Mar 2006 21:38
39 lines
2245 bytes
Hi All,

I am trying to implement a webservices client and am now experimenting 
using the THTTPRIO component that comes with c++ builder 6. I am 
implementing a small client as per the example on the following website:

http://drbob42.com/kylix/BizSnap5.htm

Loading the webservices, setting the services and ports works fine as 
well as all compiles. No errors or warnings. My problem is that I do not 
get any data back when doing the remote procedure call.

I implemented the exact same example in Delphi using the same component 
and it worked 100%.

what am I doing wrong?

Here is my code: (snippets of it)
#include "ICmInch.h"

void __fastcall TForm1::Button1Click(TObject *Sender)
{
     double Cm = 1.0;
     double inch = 0.0;

     Cm = StrToFloatDef(Edit1->Text,0);
     inch = ((ICmInch *)HTTPRIO1)->Cm2Inch(Cm);

     Edit2->Text = AnsiString(inch);
}

I included the icminc.cpp in my project and the THTTPRIO component that 
I dropped on my for is pointing to wsdllocation of 
http://www.drbob42.co.uk/cgi-bin/K2WebService/wsdl/ICmInch
service is set to ICmInchservice
and port is set to ICmInchPort.

Thanks
Werner Deyzel
Technical Details
Message-ID: <4408b754$1@news.nucleus.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps13.POSTED!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,4daa61a4468f4e36,start
X-Google-Attributes: gid11096a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps13.POSTED!53ab2750!not-for-mail
From: d <wd@interalia.ca>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.webservices.soap
Subject: Using THTTPRIO component for web services client
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: dsl-bow-66-18-218-194-cgy.nucleus.com
Message-ID: <4408b754$1@news.nucleus.com>
X-Original-Trace: 3 Mar 2006 14:38:28 -0700, dsl-bow-66-18-218-194-cgy.nucleus.com
Lines: 39
Date: Fri, 03 Mar 2006 21:38:28 GMT
NNTP-Posting-Host: 66.18.192.242
X-Trace: clgrps13 1141421908 66.18.192.242 (Fri, 03 Mar 2006 14:38:28 MST)
NNTP-Posting-Date: Fri, 03 Mar 2006 14:38:28 MST