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
> 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
Steve
"Bob Swart" <B...@BobSwart.com> wrote in message
news:46E77DB5...@BobSwart.com...