Hi, I need to call a web service that requires authentication. My XML request looks like this:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:namesp1="http://xml.apache.org/xml-soap" xmln +s:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="htt +p://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schema +s.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSc +hema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodin +g/"> <SOAP-ENV:Header> <AuthHeader xsi:type="namesp1:SOAPStruct"> <UserName xsi:type="xsd:string">username</UserName> <Password xsi:type="xsd:string">password</Password> </AuthHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <AddCUSIP xmlns="www.ABSNet.net:AddCUSIP"> <cusip xsi:type="xsd:string">testId</cusip> </AddCUSIP> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
This is almost perfect -- the only problem is the reference to SOAPStruct -- the web service doesn't know what it is. Is it possible to get rid of it somehow? I tried doing the following, but it did not help:
use SOAP::Lite maptype => {};
Thanks, Michael

In reply to Using SOAP::Lite, is it possible to get rid of SOAPStruct from request header XML by minya

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.