hi all, I've ran into something rather strange. I installed apache on my windows box, set it up to run some sample Soap::Lite code.I'm lost at this behavior.

so i'd have:
test.pl => client code
demo.cgi => server code

if i run the test.pl from command line(perl test.pl), i'd get the html content of the default page in the directory(index.html). Now if i run test.pl from the browser(http://server/test.pl), i get the expected result("hello word"). Both attempts are ran on the same machine. here's my result:
c:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin>pe +rl test.pl SOAP::Transport::HTTP::Client::send_receive: POST http://localhost/dem +o.cgi HTTP /1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 401 Content-Type: text/xml; charset=utf-8 SOAPAction: "Demo#hi" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:/ +/www.w3.or g/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/s +oap/encodi ng/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle=" +http://sch emas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.or +g/soap/env elope/"><soap:Body><hi xmlns="Demo" xsi:nil="true" /></soap:Body></soa +p:Envelope > SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK Connection: close Date: Wed, 15 Aug 2012 22:07:56 GMT Accept-Ranges: bytes ETag: "100000000f854-2c-3e95575ae9680" Server: Apache/2.2.22 (Win32) Content-Length: 44 Content-Type: text/html Last-Modified: Sat, 20 Nov 2004 19:16:26 GMT Client-Date: Wed, 15 Aug 2012 22:07:56 GMT Client-Peer: 16.85.88.10:8080 Client-Response-Num: 1 <html><body><h1>It works!</h1></body></html>

In reply to apache web service with perl client by vhn2000

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.