Loading ...
Sorry, an error occurred while loading the content.

Re: [soaplite] SOAP::Schema error

Expand Messages
  • Paul Kulchenko
    Hi, Clain! I tried all combinations and all of them work fine (with both 0.46 and 0.47). This example has problem, you need to drop ; If you run it with
    Message 1 of 2 , Feb 27, 2001
    • 0 Attachment
      Hi, Clain!

      I tried all combinations and all of them work fine (with both 0.46
      and 0.47).

      This example has problem, you need to drop ';'
      If you run it with 'perl -w ....' you should get warning.
      > >use SOAP::Lite;
      > >schema =>('http://www.xmethods.net/sd/StockQuoteService.wsdl');
      > >print getQuote('MSFT'),"\n";

      Should be

      use SOAP::Lite # <-- no ';' here
      schema =>('http://www.xmethods.net/sd/StockQuoteService.wsdl');
      print getQuote('MSFT'),"\n";

      Hope it helps.

      Best wishes, Paul.

      --- "Clain, Dominique" <Dominique.Clain@...> wrote:
      > Hi,
      > I 've always the same error with the examples about SOAP::Schema
      > --> Undefined subroutine &main::getQuote called at -e line 1.
      >
      > with this command line :
      > > perl stubmaker.pl http://...
      > > perl "-MStockQuoteService qw(:all)" -le "print getQuote('MSFT')"
      >
      > or this:
      > >perl "-MSOAP::Lite
      > schema=>'http://www.xmethods.net/sd/StockQuoteService.wsdl'" -le
      > "print
      > getQuote('MSFT')"
      >
      > or even with this one:
      > >use SOAP::Lite;
      > >schema =>('http://www.xmethods.net/sd/StockQuoteService.wsdl');
      > >print getQuote('MSFT'),"\n";
      >
      > But it works with a basic SOAP call:
      >
      > #my $wsdl = SOAP::Lite
      > # -> uri('urn:xmethods-delayed-quotes')
      > # -> proxy('http://services.xmethods.net:80/soap')
      > # -> getQuote('IBM')
      > # -> result();
      > #print $wsdl;
      >
      > If anyone had ever had the same error...
      > Thanks...
      >
      > Dominique CLAIN
      > Lumos Technologies Inc.
      > dclain@...
      > (310) 453-5832
      >
      >


      __________________________________________________
      Do You Yahoo!?
      Get email at your own domain with Yahoo! Mail.
      http://personal.mail.yahoo.com/
    Your message has been successfully submitted and would be delivered to recipients shortly.