"Jason Balicki" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My phone vendor supplies an XML interface for their
> phone system that allows remote control.  They have
> supplied me with a wsdl file, and I'm trying my hand
> at SOAP::Lite.
>
> I've got a RHEL clone, and I've just installed SOAP::Lite
> via cpan.  Perl is v5.8.0.
>
> However, for some reason I can't get the wsdl to parse:
>
> use SOAP::Lite
> service => 'file:/home/kodak/xml-test/ots_api.wsdl';
>
> Will return the error:
>

Its a lot easier than that.  If the WSDL file is good. SOAP::Lite comes with
a program called stubmaker.pl that takes a wsdl file as an argument and
creates a module that you can use(). Then all you do is call functions the
module makes available.

# a module generated by stubmaker.pl that uses NWS web services.
use ndfdXML;
my $xml = ndfdXML::NDFDgenByDay( ...args... );

You wont be able to tell from your source that you are calling network
enabled functions.

It also comes with programs called SOAPsh.pl and XMLRPCsh.pl You give them a
wsdl file or an endpoint and you can make calls to the soap server from the
command line.

Wow this stuff is cool.

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to