Hi Monks, I got to write a Perl client to access a customers web services. They gave me a link to their wsdl file so I dusted off SOAP::Lite and ran the stubmaker.pl utility to create the class from the wsdl file. So far so good, wrote a simple harness and it failed, authorisation required. After a search I added this line to the stub class
sub SOAP::Transport::HTTP::Client::get_basic_credentials { return ('do +main\user' => 'password') };
Re-ran the test harness
#!/usr/bin/perl use lib "./modules/"; use Discovery; use strict; use warnings; my $c = Discovery->new(); print $c->GetSources;
This got further but still failed...
... ... ... The keep_alive option must be enabled for NTLM authentication to work. + NTLM authentication aborted. SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x285 +8510) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 401 Unauthorized Connection: close ... ... ... 401 Unauthorized at ./testit.pl line 11. ...
Has anyone managed to get wsdl working using SOAP::Lite and NTML I've no idea how to enable keep_alive in the code created by stubmaker.pl

In reply to SOAP::Lite keep alive and NTLM stubmaker.pl issue by Anonymous Monk

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.