Good day monastic ones. I am running a SOAP client and server. The relevant client sub is
sub send { my $data = shift; my $reply; my $result; my $server = SOAP::Lite + -> uri('http://www.soaplite.com/server') + -> proxy('http://xxx.xxx.xxx.xxx/cgi-bin/server.cgi', timeout => + 30); eval { $result = $server->store($data); }; if ($@) { $reply = $@; } elsif ($result->fault) { $reply = join ', ', $result->faultcode, $result->faultstring, $ +result->faultdetail,"sub=sendthread $threadid"; } return $reply; }
This has been running smoothly for months. Now recently a couple of times the client has issued the error "405 Method not allowed" for the the line containing the eval.

This perplexes me on several counts. (1) This is not a fault from the server because I'm not getting all the stuff in the elsif. (2) It's not a valid reply from the server. (3) This sub gets called repeatedly (by design) from the script that contains it . Once it generates this error, it continues to do so until I shut down the overall script, but (4) the minute I restart everything is fine again.

Anyone know what's going on?

Many TIA....Steve


In reply to SOAP::Lite 405 Method not Allowed? by cormanaz

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.