184Re: [soaplite] Hi / New / OO interface from COM
- Apr 10, 2001Hi, Vaibhav!
Yes, Perl autoload magic is not available from COM interface (though
I'll need to do some tests, maybe it's something that could be worked
out). Meantime, you may make OO call using usual syntax:
my $soap = new SOAP::Lite
uri => 'http://www.soaplite.com/Temperatures',
proxy => 'http://services.soaplite.com/temper.cgi';
my $temperatures = $soap->call('new', 35)->result; # get object
print $soap->as_celsius($temperatures)->result; # invoke method
Object goes as the first parameter during OO call:
is (almost) the same as
where class is the class where object belongs.
Though this code could be easily mapped to VB code (use examples in
COM directory), I'm not sure that COM interface will store
$temperatures variable as an object. I'll try in a couple of hours.
Best wishes, Paul.
--- vaibhav_arya@... wrote:
> I am trying to develop a Web Service that will also be accessible
> VB clients on their desktops, I have the server and some clients
> running perl (Soap::Lite of course) and now I am trying to develop
> the VB client but am not able to use the same Object Oriented
> as I would from Perl.
> For example (from the Soap::Lite page):
> Perl code in OO style:
> use SOAP::Lite +autodispatch =>
> uri => 'http://www.soaplite.com/Temperatures',
> proxy => 'http://services.soaplite.com/temper.cgi';
> my $temperatures = Temperatures->new(32); # get object
> print $temperatures->as_celsius; # invoke method
> I want to write an equivalent in Visual Basic. (The VB example on
> Soap::Lite page doesnt help much)
> Can anyone help?
> Thanks in advance,
> Vaibhav Arya
> Mega E-Services
> ------------------------ Yahoo! Groups Sponsor
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
- << Previous post in topic Next post in topic >>