SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Soap ::lite
-
Apr 8, 2009, 08:08 #1
- 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
-
Apr 8, 2009, 09:16 #2
- 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');
-
Apr 8, 2009, 10:12 #3
- Join Date
- Nov 2004
- Location
- Moon Base Alpha
- Posts
- 1,053
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
See devshed
-
Apr 9, 2009, 00:57 #4
- 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.
-
Apr 9, 2009, 10:06 #5
- Join Date
- Nov 2004
- Location
- Moon Base Alpha
- Posts
- 1,053
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sorry but I don't know. Try www.perlmonks.com
Bookmarks