Dear monks!

I am testing SOAP::Lite in conjunction with wsdl to enable real cross language functionality for web services and to learn wsdl.

Looks like theres a problem with additional namespaces and wsdl parsing in SOAP::Lite. I defined an array containing at least 1 and max 10 Elements of type string .

It looks like the SOAP::Lite Modules has problems enclosing all namespaces in the SOAP document.

The errormessage I get is:
Client Application failed during request deserialization: Unresolved prefix 'xsd1' for attribute value 'xsd1:StringArray'

Is there a way to work around that, e.g. include the TestArray definition in the main namespace?
<wsdl:definitions name="TestArray" targetNamespace="http://xxx.xxx.xxx/TestArray.wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://xxx.xxx.xxx/TestArray.wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd1="http://xxx.xxx.xxx/TestArray.xsd1" xmlns:xsd2="http://xxx.xxx.xxx/TestArray.xsd2"> <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"></wsdl:documentation> <wsdl:types> <xsd:schema targetNamespace="http://xxx.xxx.xxx/TestArray.xsd1" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd1="http://xxx.xxx.xxx/TestArray.xsd1"> <xsd:complexType name="StringArray"> <xsd:sequence> <xsd:element maxOccurs="10" minOccurs="1" name="El +ement" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="GiveMeAnArrayRequest"> <wsdl:part name="InArray" type="xsd1:StringArray"/> </wsdl:message> <wsdl:message name="GiveMeAnArrayResponse"> <wsdl:part name="OutArray" type="xsd1:StringArray"/> </wsdl:message>
The WSDL File was created with CapeClear SOAEditor, a freely available WSDL Editor.

TIA, Jan

cat /dev/world | perl -e "(/(^.*? \?) 42\!/) && (print $1))"
errors->(c)

In reply to SOAP::Lite Bug? by gnork

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.