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

4901Making soat lite client and server working

Expand Messages
  • javareigns
    Sep 27, 2005
      I am having a problem of making a simple client and server program
      working. Client programs accessing those sites provided in the
      tutorial examples work, but somehow it does not work for my own server.

      Here's my server side code: (on SunOS 5.9 running Apache)
      #!/usr/local/bin/perl -w

      use SOAP::Transport::HTTP;
      -> dispatch_to('Demo')
      -> handle;

      package Demo;
      sub hi { return "hello, world"; }
      sub bye { return "goodbye, cruel world"; }

      Here's my client side code: (on Linux)
      #!/usr/bin/perl -w

      use SOAP::Lite;

      my $service = SOAP::Lite

      my $response = $service->hi(); # line 9

      When I run the client code, I get the following error:
      400 Bad Request at hibye.pl line 9

      Any idea what's wrong?
      Is there any server side configuration needed for Apache to work with
      soap lite other than installing the module?

      Many thanks,