new to SOAP::Lite for Perl

Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Apr 2009
Posts: 2
Reputation: rpetras is an unknown quantity at this point 
Solved Threads: 0
rpetras rpetras is offline Offline
Newbie Poster

new to SOAP::Lite for Perl

 
0
  #1
Apr 21st, 2009
I am having trouble running some test code using SOAP::Lite for perl.

The code (listed below) simply hits a prime number generator that is freely available that I found through xmethods.net.

It should be relatively simple test code, the only complication being the internal proxy server, but that seems to be passing through OK. (user, pass & server name removed)

I'm sure it is something simple, but I just don't see the issue.

RSS, Web Services and SOAP Syntax (Toggle Plain Text)
  1. #!/usr/bin/perl -w
  2.  
  3. use SOAP::Lite;
  4. $service = SOAP::Lite -> uri('tns:PrimeNumbersSoap')
  5. -> proxy('http://www50.brinkster.com/vbfacileinpt/np.asmx',
  6. proxy => ['http' => 'http://UNAME:PASSWD@PROXYSERVER:80']);
  7. $result = $service -> GetPrimeNumbers('100') -> result();
  8.  
  9. #print "Content-Type: text/html\n\n";
  10.  
  11. print "something\n";
  12.  
  13. $i = -1;
  14. while ( $result->[++$i] )
  15. {
  16. print "anything: $result->[$i]\n";
  17. }
  18.  
  19. print "something else i:$i\n";
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 2
Reputation: rpetras is an unknown quantity at this point 
Solved Threads: 0
rpetras rpetras is offline Offline
Newbie Poster

Re: new to SOAP::Lite for Perl

 
0
  #2
Apr 23rd, 2009
I think it was this simple:

RSS, Web Services and SOAP Syntax (Toggle Plain Text)
  1. $result = $service -> GetPrimeNumbers('100') -> result();

should be :

RSS, Web Services and SOAP Syntax (Toggle Plain Text)
  1. $result = $service -> GetPrimeNumbers('100') -> result;

It should not have the trailing () characters. Sadly the target site is down today so I can't test.
Last edited by peter_budo; Apr 24th, 2009 at 4:40 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC