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

can't start developing

Expand Messages
  • nurik_m
    SOAP client connect to server. There is a log entry in apacha access_log 127.0.0.1 - - [25/Aug/2005:20:24:35 +0700] POST /dam/cgi-bin/test.pl HTTP/1.0 500
    Message 1 of 1 , Aug 26 1:26 AM
    • 0 Attachment
      SOAP client connect to server. There is a log entry in apacha access_log
      127.0.0.1 - - [25/Aug/2005:20:24:35 +0700] "POST /dam/cgi-bin/test.pl
      HTTP/1.0" 500 1272

      I tried to parse which POST data client sends to server and catched this:

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <Authenticate
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <MSISDN xsi:type="xsd:string">73007459967</MSISDN>
      <accountID xsi:type="xsd:string">SAM:73007459967</accountID>
      <intfType xsi:type="xsd:string">WEB</intfType>
      <authNumber xsi:type="xsd:string">sdfsdfsd</authNumber>
      </Authenticate>
      </soapenv:Body>
      </soapenv:Envelope>

      Here is test.pl code

      #!/usr/local/bin/perl -w

      use SOAP::Transport::HTTP;

      SOAP::Transport::HTTP::CGI
      ->dispatch_to('NMS')
      ->handle;

      BEGIN {
      package NMS;
      use vars qw(@ISA);
      @ISA = qw(Exporter SOAP::Server::Parameters);
      use SOAP::Lite;

      sub Authenticate {

      open LOG, ">>/opt/nms_dam/webapp/cgi-bin/test.log";
      print LOG <STDIN>;
      print LOG SOAP::Data->name('RetCode' => 1);

      close LOG;
      return 1;
      }
      }

      But my script does not work
      In apache error_log I found this string
      Subroutine Authenticate redefined at
      /opt/nms_dam/webapp/cgi-bin/test.pl line 15, <TEMPLATE> line 35.

      can anyone help me with this?
    Your message has been successfully submitted and would be delivered to recipients shortly.