Hi! I'm trying to make a nested call with multiple namespaces, that's supposed to create this code:
Host: ... Connection: Keep-Alive User-Agent: PHP-SOAP/5.2.4 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://..." Content-Length: 1187 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://..." xmlns:ns2="http://..."> <SOAP-ENV:Body> <ns1:Setup> <ns1:token>value</ns1:token> <ns1:merchantId>value</ns1:merchantId> <ns1:request> <ns2:Amount>value</ns2:Amount> <ns2:CurrencyCode>value</ns2:CurrencyCode> <ns2:CustomerEmail>value</ns2:CustomerEmail> <ns2:CustomerPhoneNumber>123 45 678</ns2:CustomerPhoneNumber> <ns2:Description>value</ns2:Description> <ns2:Language>value</ns2:Language> <ns2:OrderDescription>value</ns2:OrderDescription> <ns2:OrderNumber>value</ns2:OrderNumber> <ns2:PanHash></ns2:PanHash> <ns2:RecurringExpiryDate></ns2:RecurringExpiryDate> <ns2:RecurringFrequency></ns2:RecurringFrequency> <ns2:RecurringType></ns2:RecurringType> <ns2:RedirectUrl>http://localhost/...</ns2:RedirectUrl> <ns2:ServiceType>B</ns2:ServiceType> <ns2:SessionId>...</ns2:SessionId> <ns2:TransactionId>...</ns2:TransactionId> </ns1:request> </ns1:Setup>
My questions are:
1. How do I create multiple namespaces?
2. How do I assign the different values to the different namespaces?

In reply to SOAP::Lite - Multiple namespaces by DreamT

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.