SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Soap ::lite

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    essex UK
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Soap ::lite

    have a little test script :
    #!/usr/bin/perl -w

    use SOAP::Lite;
    my $service = SOAP::Lite
    -> service('http://www.xmethods.net/sd/StockQuoteService.wsdl');
    print 'MSFT + ORCL = ', $service->getQuote('MSFT') + $service->getQuote('ORCL');

    comes back internal server error - haven't a clue why as the service exists. (I have chmod to 755) and it is a cgi file

  2. #2
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #!/usr/bin/perl -w

    use SOAP::Lite;
    use CGI::Carp qw/fatalsToBrowser/;
    print "Content-type: text/html\n\n";

    my $service = SOAP::Lite
    -> service('http://www.xmethods.net/sd/StockQuoteService.wsdl');
    print 'MSFT + ORCL = ', $service->getQuote('MSFT') + $service->getQuote('ORCL');

  3. #3
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See devshed

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    essex UK
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    smart debug method, thanks!
    I am trying to work out how SOAP works with perl - really rusty on the perl. Do you know if the SOAP XML type tags need to be in a seperate file for WSDL and a perl file to send them?
    Just trying to organise it in my head here and been struggling for 2 weeks to get the concept.

  5. #5
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by roscoe View Post
    smart debug method, thanks!
    I am trying to work out how SOAP works with perl - really rusty on the perl. Do you know if the SOAP XML type tags need to be in a seperate file for WSDL and a perl file to send them?
    Just trying to organise it in my head here and been struggling for 2 weeks to get the concept.
    Sorry but I don't know. Try www.perlmonks.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •