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

877SOAP server does not work

Expand Messages
  • zweili2@yahoo.com
    Oct 1, 2001
    • 0 Attachment
      Hi,
      I installed SOAPLite on Redhat Linux 6.0 (2.2.5-15) with Apache 1.3.6-
      7. The soap client works fine accessing SOAP servers on the
      Internet. But the server does not work (copied code from
      instructions). When run the server on comandline, got "Status: 405
      Method Not Allowed". When run the client, got "500 Internal Server
      Error". The Apache error-log showed "[Error] (8)Exec format error:
      exec of /home/httpd/cgi-bin/soapserver.cgi failed".

      soapserver.cgi:
      use SOAP::Transport::HTTP;
      SOAP::Transport::HTTP::CGI
      -> dispatch_to('Demo')
      -> handle;
      package Demo;
      sub hi {
      return "hello, world";
      }
      sub bye {
      return "goodbye, cruel world";
      }
      soapclient.cgi code
      #!/usr/local/bin/perl
      print "Content-type:text/html\n\n";
      use SOAP::Lite;
      print "<html><body>";
      $client=SOAP::Lite->uri('http://webserver.net/Demo');
      $myproxy=$client->proxy('http://webserver.net/cgi-
      bin/soapserver.cgi');
      $myresult=$myproxy->hi()->result;
      print "Server message: ".$myresult."<br>\n";
      print "</body></html>";

      Please tell me what my problem I have.

      Zwei
    • Show all 3 messages in this topic