Note that there are some explanatory texts on larger screens.

plurals
  1. POBizTalk weird mapping problem
    primarykey
    data
    text
    <p>I'm mapping a HL7 schema to a home made schema. Now my schema looks like this:</p> <pre><code>&lt;xs:element name="Patienten"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="Patient"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element minOccurs="0" name="ContactNummer" nillable="true" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Voornaam" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Naam" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Plaats" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Straat" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Campus" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Kamer" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Bed" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="Ontslagen" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="CampusCode" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="TelefoonCode" type="xs:string" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; </code></pre> <p>When I map elements from my HL7 schema and when I use a test file I get an error: "The element Patienten in namespace blabla is incomplete. List of possible elements: Patient".</p> <p>I noticed that my testfile does not fill in the "straat" and "plaats" element. If i remove the mapping links of these two elements the map works fine. But I obviously need them. If I set the Patient element propertie minOccurs="0" then the validation is successfull, but I get an empty xml:</p> <pre><code> &lt;ns0:Patienten xmlns:ns0="http://nextel.zna.be/ZNA_Nextel_Patient.xsd" /&gt; </code></pre> <p>If I remove the "Patient" element and just use the other elements as subelements of "Patienten" then the map works fine! But I need the subroot "Patient". I have been toying arround with min and max Occurs because I notice that these make a difference, but I'm still not getting to my solution. If I use a test example it works fine, so I don't get why it's not working...</p> <p>Anyone has any ideas or similar problems?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload