I'm trying to use soap::lite for the first time, and using some of the basic tutorial client/server pairs, I cannot get anything working. server code:
#!perl -w # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul Kulch +enko -- use SOAP::Transport::HTTP; SOAP::Transport::HTTP::CGI -> dispatch_to( 'cgi-bin/dev/soap/', 'Soaper' ) -> handle; package Soaper; sub hi { return "hello, world"; } sub bye { return "goodbye, cruel world"; } sub languages { return ("Perl", "C", "sh"); }
client code:
#!perl -w # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul Kulch +enko -- use SOAP::Lite; print SOAP::Lite -> uri('http://foo.example.com/Soaper') -> proxy('http://foo.example.com/cgi-bin/dev/soap/hibye.cgi') -> hi() -> result;
The server is an apache server on Solaris running perl 5.6.1. The client script is located in /opt/dncms/web/cgi-bin/dev/soap/hibye.cgi. Here's the apache error log entry I get when I run the client.
[Mon May 15 14:13:28 2006] [error] (2)No such file or directory: exec +of /opt/dncms/web/cgi-bin/dev/soap/hibye.cgi failed [Mon May 15 14:13:28 2006] [error] [client 130.42.71.204] Premature en +d of script headers: /opt/dncms/web/cgi-bin/dev/soap/hibye.cgi
Does anyone have any suggestions? I haven't found any information on the SOAP::Lite project site, web site, or in the author's book to address this. That leads me to think I might have a non module related problem. Thanks!

Update: t'mo nailed it. I made the mistake of taking the examples too literally. Using #!/usr/bin/perl -w allowed Apache to find the interpreter it needed. I didn't discover this in testing because, of course, perl is in my path. Thanks!

Unconsidered by Corion: Original content is lost.

Edit: g0n - restored original content & marked replacement as update


In reply to soap::lite roadblock by gryf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.