🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems calling Dr.Bob's Temperature Converter Web Service

#9
From: Bob Swart
Date: Wed, 12 Sep 2007 05:48
44 lines
2251 bytes
Hi Stephen,

> I am playing with Web Services and as a starter I am following a tutorial by 
> Dr.Bob http://www.drbob42.com/examines/examin44.htm

OK ;-)

> http://www.eBob42.com/cgi-bin/Celsius42.asmx?wsdl
> 
> This all works very nicely except that the remote function calls are 
> returning values that indicate that I am sending an argument of zero.  

I can explain that: the Celsius42.asmx is hosted on a web server where 
the virtual directories are configured as ASP.NET 2.0 - which was 
ASP.NET 1.1 in the past.

> Any ideas?

This is a known issue, described in more detail at

http://www.bobswart.nl/Weblog/Blog.aspx?RootId=5:798

Basically, you need to add a line to RegisterInvokeOptions for the 
ioDocument on the just imported type.

In the RegTypes() function, add the following line:

InvRegistry()->RegisterInvokeOptions(__interfaceTypeinfo(Celsius42Soap), 
ioDocument);


 > I am using the WSDL Import Wizard and BCB 6

C++Builder 2007 does a correct import of this web service.

> Steve 

Groetjes,
           Bob Swart

-- 
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
CodeGear Technology Partner -- CodeGear RAD Studio Reseller (BeNeLux)
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
Technical Details
Message-ID: <46E77DB5.7050906@BobSwart.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46e68954@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,4471dc1d0b747d41
X-Google-Attributes: gid11096a,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <46E77DB5.7050906@BobSwart.com>
Date: Wed, 12 Sep 2007 07:48:37 +0200
From: Bob Swart <Bob@BobSwart.com>
Organization: Bob Swart Training & Consultancy (eBob42)
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.webservices.soap
Subject: Re: Problems calling Dr.Bob's Temperature Converter Web Service
References: <46e68954@newsgroups.borland.com>
In-Reply-To: <46e68954@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 89.220.93.5
X-Trace: newsgroups.borland.com 1189576186 89.220.93.5 (11 Sep 2007 22:49:46 -0700)
Lines: 44
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail