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

4261SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server Error)

Expand Messages
  • vishal_sood74
    Dec 15, 2004
      I have installed SOAP::Lite on a solaris machine and am trying to
      make method calls from a service running on a windows machine.
      Following is the code:

      Client (being excuted from UNIX)
      use SOAP::Lite +trace;

      # Instantiate a new SOAP::Lite object
      my $service = new SOAP::Lite

      # Remotely call the getTemp method
      my $result = $service->ReturnResponse('TEST');

      unless ($result->fault) {
      print $result->result();
      } else {
      print "ERR\n";

      Server (running on windows):
      use SOAP::Lite +trace;
      use SOAP::Transport::HTTP;
      my $daemon = SOAP::Transport::HTTP::Daemon
      -> new (LocalPort => '11110', listen => 5);

      $daemon -> dispatch_to('LoadBalancer');
      print "Contact SOAP server at ", $daemon->url, "\n";

      package LoadBalancer;
      sub ReturnResponse {
      my $var= shift;
      return "Into Return response:$var:\n";


      When I execute my client script from windows, everything works fine.
      However, when the client script is run from UNIX, I get an error.
      Here is the output from the client script.

      SOAP::Transport::new: ()
      SOAP::Serializer::new: ()
      SOAP::Deserializer::new: ()
      SOAP::Parser::new: ()
      SOAP::Lite::new: ()
      SOAP::Transport::HTTP::Client::new: ()
      SOAP::Lite::call: ()
      SOAP::Serializer::envelope: ()
      SOAP::Serializer::envelope: ReturnResponse TEST
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH
      SOAP::Transport::HTTP::Client::send_receive: POST
      Accept: text/xml
      Accept: multipart/*
      Content-Length: 523
      Content-Type: text/xml; charset=utf-8
      SOAPAction: "urn:LoadBalancer#ReturnResponse"

      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-
      soap/encoding/" SOAP-
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmln
      ENV:Body><namesp1:ReturnResponse xmlns:namesp1="urn:L
      oadBalancer"><c-gensym3 xsi:type="xsd:string">TEST</c-
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH
      SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server
      Error) Can't connect to il27apps48
      :11110 (Bad hostname 'il27apps48')
      Client-Date: Thu, 16 Dec 2004 00:07:54 GMT

      500 Can't connect to il27apps48:11110 (Bad hostname 'il27apps48')
      at ./script//t.pl line 12
      SOAP::Lite::DESTROY: ()
      SOAP::Serializer::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Deserializer::DESTROY: ()
      SOAP::Parser::DESTROY: ()
      SOAP::Transport::DESTROY: ()
      SOAP::Transport::HTTP::Client::DESTROY: ()

      I get the SOAP::Transport::HTTP::Client::send_receive: 500 (Internal
      Server Error) error. Please help.

    • Show all 2 messages in this topic