Menu

#230 "elementFormDefault='unqualified'" mishandled

v2.1
closed-fixed
zsi (169)
5
2008-01-25
2007-12-18
No

The XML-schema standard specifies that the schema attribute "elementFormDefault" controls whether all elements need a namespace (elementFormDefault="qualidied") or whether only top level elements need a namespace and contained elements must not have a namespace (elementFormDefault="unqualified").

Apparently, ZSI 2.0 treats "elementFormDefault='unqualified'" (the default) incorrectly.

Discussion

  • Joshua Boverhof

    Joshua Boverhof - 2007-12-19

    Logged In: YES
    user_id=711996
    Originator: NO

    You need to include the parts of the WSDL/schema and the XML instances in question in your bug report.

    There are already many unittests that test unqualified element form, and ZSI handles both qualified and unqualified.

    This probably boils down to is your case/bug not covered by the unittests, or is your diagnosis faulty.

     
  • Joshua Boverhof

    Joshua Boverhof - 2007-12-19
    • assigned_to: nobody --> boverhof
     
  • Dieter Maurer

    Dieter Maurer - 2008-01-03

    WSDL causing the problem

     
  • Dieter Maurer

    Dieter Maurer - 2008-01-03

    Logged In: YES
    user_id=265829
    Originator: YES

    WSDL file attached.

    Instance sent by server:
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Header/>
    <SOAP:Body>
    <ns0:WS_TI_Status_Response xmlns:ns0="http://haufemg.com/xi/ecom/osp/sws/ws_ti_status">
    <Header>
    <KundenNr>0094037216</KundenNr>
    <TicketNr>HSC000000197775</TicketNr>
    <Authentifiziert>Y</Authentifiziert>
    </Header>
    <TicketDaten>
    <TicketNr>HSC000000171344</TicketNr>
    <Produktname>Lohn+Gehalt pro</Produktname>
    <Bereich>Installation / Deinstallation</Bereich>
    <Ticketstatus>Weitergeleitet</Ticketstatus>
    <Ticketstatus_Attribut/>
    </TicketDaten>

    File Added: XD1_WS_Get_TI_Status.wsdl

     
  • Joshua Boverhof

    Joshua Boverhof - 2008-01-11

    Logged In: YES
    user_id=711996
    Originator: NO

    Fix is in.

    $ svn log -r1440
    ------------------------------------------------------------------------
    r1440 | boverhof | 2008-01-10 17:26:39 -0800 (Thu, 10 Jan 2008) | 9 lines

    M test/wsdl2py/config.txt
    M test/wsdl2py/wsdl/test_Unqualified.xsd
    M test/wsdl2py/test_Unqualified.py
    M ZSI/generate/containers.py

    -- [ 1853368 ] "elementFormDefault='unqualified'" mishandled

    This bug caused local element declarations to be incorrectly namespaced. Appears to belimited to local element declarations with local type definitions (both simpleType and complexType), both these scenarios are fixed now with unittests.

    ------------------------------------------------------------------------

     
  • Joshua Boverhof

    Joshua Boverhof - 2008-01-11
    • milestone: 562021 --> v2.1
    • status: open --> pending-fixed
     
  • Holger

    Holger - 2008-01-11

    Logged In: YES
    user_id=1315684
    Originator: NO

    I can confirm this works for me now.

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.