Help! Problem with schema definition

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Help! Problem with schema definition

Viewing 1 reply thread
  • Author
    Posts
    • #22324

      I have a valid xml schema for a Header In need to include in a SOAP envelope.  This schema however does not have a single root.  I define the root reference property for the schema as Default but when I generate an instance of this header in the BizTalk editor, only the first element in the schema is displayed. 

      Is there a schema property or some other element property that can take care of this ?

      Header schema for reference:

      <?xml version=”1.0″ encoding=”utf-16″ ?>

      – <xs:schema xmlns:tns=”http://schemas.xmlsoap.org/ws/2004/03/addressing“ xmlns:b=”http://schemas.microsoft.com/BizTalk/2003“ attributeFormDefault=”unqualified“ elementFormDefault=”qualified“ targetNamespace=”http://schemas.xmlsoap.org/ws/2004/03/addressing“ xmlns:xs=”http://www.w3.org/2001/XMLSchema“>

      – <xs:annotation>
      – <xs:appinfo>
        <schemaInfo is_envelope=”no“ is_receipt=”no“ schema_type=”document“ xmlns=”http://schemas.microsoft.com/BizTalk/2003“ />
        </xs:appinfo>
        </xs:annotation>
      – <xs:element name=”From“>
      – <xs:complexType>
      – <xs:sequence>
        <xs:element name=”Address“ type=”xs:string“ />
         </xs:sequence>
        </xs:complexType>
        </xs:element>
        <xs:element name=”To“ type=”xs:string“ />
        <xs:element name=”Action“ type=”xs:string“ />
        </xs:schema>
    • #22337

      The ws-addressing does not use a parent node to encapsulate its elements. Each element is a child of the <soap:header>

      Have you considered using the WCF adapter which will generate the ws-addressing header element for you?

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.