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

access to service is disable

Expand Messages
  • mkirti
    Hi, I am trying to run hibye.cgi sample from documentation. I am getting Method Not Allowed The requested method GET is not allowed for the URL
    Message 1 of 1 , Apr 16 4:54 AM
    • 0 Attachment
      Hi,
      I am trying to run hibye.cgi sample from documentation.
      I am getting Method Not Allowed
      The requested method GET is not allowed for the URL /perl/test/hibye.cgi.
      error.
      and the http log says
      Client Denied access to method (hi) , see the following

      SOAP::Serializer::new: ()
      SOAP::Deserializer::new: ()
      SOAP::Parser::new: ()
      SOAP::Server::new: ()
      SOAP::Transport::HTTP::Server::new: ()
      SOAP::Transport::HTTP::CGI::new: ()
      SOAP::Server::handle: ()
      SOAP::Deserializer::deserialize: ()
      SOAP::Parser::decode: ()
      SOAP::Parser::DESTROY: ()
      SOAP::SOM::new: ()
      SOAP::Data::new: ()
      SOAP::Data::DESTROY: ()
      SOAP::SOM::DESTROY: ()
      SOAP::Serializer::envelope: ()
      SOAP::Serializer::envelope: Client Denied access to method (hi) in
      class (main) at /usr/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2267.

      here is the server side code
      use SOAP::Lite +trace;
      use SOAP::Lite;
      use SOAP::Transport::HTTP;

      $SOAP::Constants::DO_NOT_USE_XML_PARSER = 1;
      $ENV{ 'CONTENT_LENGTH' } = '12898467' ;
      SOAP::Transport::HTTP::CGI
      -> dispatch_to('Demo')
      -> handle;
      #set env CONTENT_LENGTH 1234
      package Demo;
      sub hi {
      return "hello, world";
      }
      sub bye {
      return "goodbye, cruel world";
      }
      sub languages {
      return ("Perl", "C", "sh");
      }
    Your message has been successfully submitted and would be delivered to recipients shortly.