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

What this means? - Why its Not found?

Expand Messages
  • Bala
    I am getting (NOT FOUND) error with this code. Please could some one help. REQUEST & RESPONSE REQUEST -- POST /cgi-bin/temper.cgi HTTP/1.0 Host:
    Message 1 of 1 , Sep 17 6:09 PM
    • 0 Attachment

      I am getting (NOT FOUND) error with this code. Please could some one help.

      REQUEST & RESPONSE

       REQUEST -->POST /cgi-bin/temper.cgi HTTP/1.0 Host: www.domainname.com User-Agent: NuSOAP/0.7.2 (1.94) Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 509 <__numeric_0 xsi:type="xsd:string">37.5 RESPONSE-->HTTP/1.1 404 Not Found Date: Mon, 18 Sep 2006 01:05:14 GMT Server: Apache/1.3.31 (Unix) PHP/4.3.11 mod_ssl/2.8.18 OpenSSL/0.9.6b  mod_throttle/3.1.2 Last-Modified: Mon, 28 Aug 2006 09:46:40 GMT ETag: "728607-2892-44f2bb80" Accept-Ranges: bytes Content-Length: 10386 Connection: close Content-Type: text/html

      WEB Service

       #!perl -w

        use SOAP::Transport::HTTP;

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

        package Temperatures;

        sub c2f {
            my ($class, $c) = @_;
            return 32 + $c * 9 / 5;
        }

      Client Calling

      <?php

      require_once('./nusoap/nusoap.php');
      $mystring="37.5";

      $param = array($mystring);

      $s = new soapclient('http://localhost/cgi-bin/temper.cgi');
      $result = $s->call('c2f',$param);

      echo "REQUEST -->" . $s->request." ";
      echo "RESPONSE-->". $s->response;
      ?>

    Your message has been successfully submitted and would be delivered to recipients shortly.