BizTalk Server Orchestration - Deserialization Problems Caused by Duplicate Node Names

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > August 2004 > Deserialization Problems Caused by Duplicate Node Names





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Deserialization Problems Caused by Duplicate Node Names
Budman

2004-08-17, 5:50 pm

I'm getting an when I publish my orchestration as a web service and bring up
the wsdl-generated test page: "The XML element named 'WorkPhone' from
namespace 'http://www.mycompany.com' is already present in the current scope.
Use XML attributes to specify another XML name or namespace for the element."

Apparently, this error stems from the following construct in my schema:

- <xs:group name="ContactInfo">
- <xs:annotation>
<xs:documentation xml:lang="en">All contact types are optional, but at
least oe contact type must be specified.</xs:documentation>
</xs:annotation>
- <xs:choice>
- <xs:sequence>
<xs:element name="HomePhone" type="PhoneType" />
<xs:element minOccurs="0" name="WorkPhone" type="PhoneType" />
<xs:element minOccurs="0" name="Fax" type="PhoneType" />
<xs:element minOccurs="0" name="OtherPhone" type="PhoneType" />
<xs:element minOccurs="0" name="Email" type="EmailType" />
</xs:sequence>
- <xs:sequence>
<xs:element name="WorkPhone" type="PhoneType" />
<xs:element minOccurs="0" name="Fax" type="PhoneType" />
<xs:element minOccurs="0" name="OtherPhone" type="PhoneType" />
<xs:element minOccurs="0" name="Email" type="EmailType" />
</xs:sequence>
- <xs:sequence>
<xs:element name="Fax" type="PhoneType" />
<xs:element minOccurs="0" name="OtherPhone" type="PhoneType" />
<xs:element minOccurs="0" name="Email" type="EmailType" />
</xs:sequence>
- <xs:sequence>
<xs:element name="OtherPhone" type="PhoneType" />
<xs:element minOccurs="0" name="Email" type="EmailType" />
</xs:sequence>
- <xs:sequence>
<xs:element name="Email" type="EmailType" />
</xs:sequence>
</xs:choice>
</xs:group>

I found an MSDN article that implies this is by design, but what I don't
understand is why the schema editor doesn't balk at this, and why I have no
problem using this schema in my "home grown" web services.

Any help would be appreciated. TIA
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com