Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems calling Dr.Bob's Temperature Converter Web Service

5 views
Skip to first unread message

Stephen Craig

unread,
Sep 11, 2007, 8:26:01 AM9/11/07
to
Hi

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


I am using the Web service provided

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. For
instance, the call to Celsius2Fahrenheit function always returns 32 degrees
no mater what value argument I give it.

I am using the WSDL Import Wizard and BCB 6

Any ideas?

Thanks

Steve


Bob Swart

unread,
Sep 12, 2007, 1:48:37 AM9/12/07
to
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

Stephen Craig

unread,
Sep 12, 2007, 2:13:08 AM9/12/07
to
Thanks Bob,
That worked perfectly. Your help is very much appreciated.
This is an area that I have regrettably avoided for the past years and that
was so easy (although you did all the work).

Steve

"Bob Swart" <B...@BobSwart.com> wrote in message
news:46E77DB5...@BobSwart.com...

0 new messages