Hi guys
i am starting to have a suspicion that it is not me, but SOAP::Lite or HTTP::Cookies
issue, i have to perform SOAP calls, and it authentication on a server side is cookie based

i open my SOAP session like this
my $soap = new SOAP::Lite; $soap->uri($nameSpace); $soap->proxy($proxy, cookie_jar => HTTP::Cookies->new(ignore_discar +d =>1));
then i am performing my first authentication call, and if it is sucesfull then i am getting cookie in return
my $SessionLoginTechnicianMethod = SOAP::Data->name('SessionLoginTechn +ician') ->attr({xmlns => $nameSpa +ce}); my @SessionLoginTechnicianValues = ( SOAP::Data->name('TechName' => $us +erid), SOAP::Data->name('Password' => $pa +ssword) ); my $commID = $soap->call($SessionLoginTechnicianMethod => @SessionLogi +nTechnicianValues); my $communityID = $commID->valueof('//CommunityID');
and that goes fine
here is part of a trace with cookie
Client-SSL-Cipher: RC4-MD5 Client-SSL-Warning: Peer certificate not verified Set-Cookie: SESSIONID=lMcsJpx35LSuECd34f/90u2vsRGK8BLBx96rHu/cyIgY/xbf ++YMD0BhDDP04vfKbHfhL; path=/;version=1 X-Powered-By: ASP.NET
then nect call right after that not setting cookie
Accept: text/xml Accept: multipart/* Accept: application/soap User-Agent: SOAP::Lite/Perl/0.69 Content-Length: 689 Content-Type: text/xml; charset=utf-8
and call right after that
is using issued cookie
Accept: text/xml Accept: multipart/* Accept: application/soap User-Agent: SOAP::Lite/Perl/0.69 Content-Length: 654 Content-Type: text/xml; charset=utf-8 Cookie: $Version=1; SESSIONID="2Ho+EHPPfAlGDPFA6xobS55byc8/38TeYhFl6UW +Nw70iJBWsWADBASxpQRmlRGNsYQIG"; $Path="/"
why this is happening? and also why cookie is not the same one?
if i look at previous trace logs, that cookie is form previous log...

In reply to cookie based SOAP by winfinit

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.