in reply to Re: Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value
in thread Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value

Hi Thank you for your immediate response, Well I did try to read the instructions and configured my webserver (apache2) for cgi support.

I tested it by running a simple script on the browser and it all worked fine.

But as far as soap is concerned whenever I run the client I get the 500 internal server error. Any clue as to what can be wrong here

Plus this is what I get in the error log client 127.0.0.1 Use of uninitialized value $ENV{"HTTP_TRANSFER_ENCODING"} in pattern match (m//) at /usr/local/share/perl/5.10.0/SOAP/Transport/HTTP.pm line 530

  • Comment on Re^2: Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value

Replies are listed 'Best First'.
Re^3: Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value
by Anonymous Monk on Jan 13, 2010 at 15:32 UTC
    Hello,

    I do have the exact same problem, and unfortunatly it is not a warning but an error (from apache2 error log):

    [Wed Jan 13 15:58:36 2010] [error] [client 172.31.1.19] Use of uninitialized value $ENV{"HTTP_TRANSFER_ENCODING"} in pattern match (m//) at /usr/local/share/perl/5.10.0/SOAP/Transport/HTTP.pm line 530.

    Cgi scripts are running well otherwise.
    Any possible solution or hint?

      it is not a warning but an error (from apache2 error log):

      No sir, it is a warning. splain

      Use of uninitialized value $ENV{"HTTP_TRANSFER_ENCODING"} in pattern m +atch (m//) at /usr/local/share/perl/5.10.0/SOAP/Transport/HTTP.pm l +ine 530 (#1) (W uninitialized) An undefined value was used as if it were alread +y defined. It was interpreted as a "" or a 0, but maybe it was a mi +stake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl will try to tell y +ou the name of the variable (if any) that was undefined. In some cases it + cannot do this, so it also tells you what operation you used the undefine +d value in. Note, however, that perl optimizes your program and the opera +tion displayed in the warning may not necessarily appear literally in y +our program. For example, "that $foo" is usually optimized into "that + " . $foo, and the warning will refer to the concatenation (.) operat +or, even though there is no . in your program.
      The part of that says "error" is just boilerplate generated by apache mod_log.
        Hello and thank you for your answer!

        If it is simply a warning, it shouldn't affect the program behavior and the code should execute itself correctly, isn't it?

        When I call the client perl program, the server add the previous error/warning line in the error log and it seems that nothing is returned to the client (it should return "hello, world".)

        I don't know what to do now to try to solve this problem :/