Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: 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 08, 2010 at 14:23 UTC ( #816318=note: print w/ replies, xml ) Need Help??


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

Your problem is that your webserver isn't executing your cgi program, its treating it as a text file. This is problem with your webserver configuration.


Comment on Re: Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value
Re^2: Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value
by sabertooth (Initiate) on Jan 09, 2010 at 13:42 UTC

    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

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://816318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-07-26 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls