Hi Monks,

I am trying to understand (and perhaps fix somes issues in) the implementation of SOAP::WSDL while trying to set attributes for an element inside a request and I am struggling with the notations like

my %xmlns_of            :ATTR(:name<xmlns> :default<{}>);
that are used a lot i.e in SOAP::WSDL::BASE.pm and in the Elements and Types generated by the script wsdl2perl.pl in order to build SOAP request by filling a simple hashtable (all the types resolving and corresponding xml generation is done at run time thanks to the generated packages).

I have made some research to understand the attributes with Attribute::Handlers but it seems to be a variation as the documentation does not show the attributes in the arguments like for :name, and the code is not even using this package. Or is it something different?

If you can provide some help...

The best programs are the ones written when the programmer is supposed to be working on something else. - Melinda Varian

In reply to SOAP::WSDL: variable attributes with attributes also as parameters? by seki

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.