SOAP::Lite--no retval 
Author Message
 SOAP::Lite--no retval

Hi all,

Just started with SOAP::Lite and hope this one's easy. The typical
test server

   #!/usr/bin/perl -w
   use SOAP::Transport::HTTP;
   SOAP::Transport::HTTP::CGI->dispatch_to('HiWorld')->handle;

   package HiWorld;

   sub hi {
      return "Hello, world!";
   }    

and typical test client

   #!/usr/bin/perl -w
   ### simple client
   use SOAP::Lite;

   my $response = SOAP::Lite
       ->uri(' http://www.*-*-*.com/ ')
       ->proxy(' http://www.*-*-*.com/ ')
       ->hi();
   die "Can't get a SOAP connection.\n" unless ref $response;

   ### $msg not defined: Apache delegates SOAP request correctly
   ### but the retval is lost in the suds...
   my $msg = $response->result;
   print "$msg\n" unless !defined $msg;

Running Apache under RH Linux 7.1. Apache delegates the request to the
CGI script but the retval is lost. Is some special server configuration
required? I'm running mod_perl.

Many thanks in advance.

--marty kalin



Fri, 16 Apr 2004 12:08:49 GMT  
 SOAP::Lite--no retval

Quote:

> Just started with SOAP::Lite and hope this one's easy. The typical
> test server [...] and typical test client
>    #!/usr/bin/perl -w
>    ### simple client
>    use SOAP::Lite;
>    my $response = SOAP::Lite
>        ->uri('http://192.162.1.1/cgi-bin/HiWorld')
>        ->proxy('http://192.162.1.1/cgi-bin/hiSOAP.cgi')
>        ->hi();
>    die "Can't get a SOAP connection.\n" unless ref $response;

Your URI is wrong. It should be "http://192.162.1.1/HiWorld" (or even
simply "HiWorld").

A couple of suggestions:

1. Use mySOAPsh.pl to test your server, viz:

    mySOAPsh.pl 'http://192.162.1.1/cgi-bin/hiSOAP.cgi' 'http://192.162.1.1/HiWorld'
    > hi

2. If you can, check out the archive for the SOAP::Lite mailing list at
http://groups.yahoo.com/group/soaplite

Chris



Sat, 17 Apr 2004 00:38:20 GMT  
 SOAP::Lite--no retval

Quote:

> Your URI is wrong. It should be "http://192.162.1.1/HiWorld" (or even
> simply "HiWorld").

Maybe even 'urn:HiWorld' for the whole deal ... ;-}

/J\
--
Jonathan Stowe                      |
<http://www.gellyfish.com>          |      This space for rent
                                    |



Sat, 17 Apr 2004 05:59:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. SOAP in Apache with SOAP::Lite

2. SOAP in Apache with SOAP::Lite

3. How to suppress methodName element in soap:Body of envelope with SOAP::Lite

4. Accessing Unix SOAP::Lite Services from MS SOAP Toolkit

5. over-riding values using SOAP::Lite WSDL support

6. SOAP::Lite

7. SOAP:Lite question

8. SOAP::Lite and boolean result types

9. SOAP::Lite, Data::Dumper and getting the values

10. SOAP::Lite -- calling Perl services from other languages.

11. Using SOAP::Lite module on remote server, Google API

12. SOAP::Lite

 

 
Powered by phpBB® Forum Software