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

Soaplite beginners question

Expand Messages
  • Teifke Sascha ZFF FW-EI
    Hello List, I m a beginner in using the SoapLite Module and I am trying ot work with the tutorial found on http://perl.com/lpi/a/2001/01/soap.html (Quick Start
    Message 1 of 1 , Sep 20, 2002
    • 0 Attachment
      Hello List,

      I'm a beginner in using the SoapLite Module and I am trying ot work with the

      tutorial found on http://perl.com/lpi/a/2001/01/soap.html (Quick Start with
      SOAP, Author Paul Kulchenko)

      I've written the following:

      ================8<================
      #Server: server.pl
      #!c:/perl/bin/perl.exe

      use SOAP::Transport::HTTP;
      use Demo;

      my $daemon = SOAP::Transport::HTTP::Daemon
      -> new ( LocalAddr => 'myhostname', LocalPort => 8080 )
      -> dispatch_to('c:/inetpub/wwwroot/soap/')
      ;
      print "Contact to SOAP server at ", $daemon->url, "\n";
      $daemon->handle;

      ================8<================
      #Demo.pm
      package Demo;

      sub hi {
      return "hello, world";
      }

      sub bye {
      return "goodbye, cruel world";
      }

      1;
      ================8<================
      #Remote Client:
      use SOAP::Lite;

      $soap_response = SOAP::Lite
      -> uri('http://192.168.0.1:8080')
      -> proxy('http://192.168.0.1:8080')
      -> hi()
      -> result;

      print $soap_response;
      ================8<================

      The Server starts the right way, displaying the desired Message:

      ** "Contact to SOAP server at http://hostname:8080/"

      While starting the client on a remote client the client quits leaving the
      error "Use of unitialiezd value in print at client.pl line 21" ( this
      is "print $soap_response;")

      At the Server Console I can see the following Message:
      Use of unitialiezed value in string eq at c:/perl/site/lib/SOAP/Lite.pm line
      370.
      Use of unitialiezed value in string eq at c:/perl/site/lib/SOAP/Lite.pm line
      370.
      Use of unitialiezed value in string eq at c:/perl/site/lib/SOAP/Lite.pm line
      370.
      Cannot marshall URI::http referance at C:/perl/site/lib/SOAP/Lite.pm line
      1141

      What is wrong?

      Thank you in advance.






      Mit freundlichen Grüßen / With best regards

      Sascha Teifke
      **********************************************************
      ZF Friedrichshafen AG | 88038 Friedrichshafen | Abt. FW-EI

      Fon: +49 (0) 7541 77 - 3330
      Mobil: +49 (0) 7541 77 - 91 3330
      Fax: +49 (0) 7541 77 - 90 3330
      Email: mailto:sascha.teifke@...
      Internet: http://www.zf.com
      Intranet: http://web.zff.zf-group.de/kst635
      **********************************************************
    Your message has been successfully submitted and would be delivered to recipients shortly.