Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Andrew Tkachenko
March 5, 2005, 10:15 am
rate this thread
I'm using combination of Apache + mod_perl + Apache::SOAP from SOAP::Lite
I'm trying to understand process of object creation on server side while
For example, I have service 'Hello', represented by module Hello.pm on
server side. I want to call Hello's constructor, passing some data as its
arguments and use it in subsequent calls. But after reading SOAP::Lite pod
doc., I still can't find the way of creating Hello object. All the samples
I've found demonstrate how to make service calls described by WSDL in
non-OO way, i.e.
-> service(’http://www.xmethods.net/sd/StockQuoteService.wsdl ’)
But how can I call getQuote as object method rather than class one ?
Any help would be greatly appreciated.
Re: SOAP::Lite +wsdl
On Sat, 05 Mar 2005 04:15:23 +0000,
> use SOAP::Lite;
> print SOAP::Lite
> -> service(?http://www.xmethods.net/sd/StockQuoteService.wsdl ?)
> -> getQuote(?MSFT?);
> But how can I call getQuote as object method rather than class one ?
> Any help would be greatly appreciated.
This is basically the same as:
my $obj = SOAP::Lite
-> service(?http://www.xmethods.net/sd/StockQuoteService.wsdl ?);
print $obj -> getQuote(?MSFT?);
In the original example you have stacked object calls; the object returned
from the service method is used in a subsequent getQuote method call.
Most SOAP::Lite methods return the object itself so you can stack calls
in this way.
- » print isn't flashed using PERL by MSWin32 on Windows XP
- — Previous thread in » PERL Discussions