Re: Envelope in xml assembloer

Home Page Forums BizTalk 2004 – BizTalk 2010 Envelope in xml assembloer Re: Envelope in xml assembloer

#22341

HELP!  Currently I was just utilizing a custom pipeline with an xml assembler to enclose the message in a SOAP envelope. (no orchestration or adapter)  It looks like the SOAP header is my problem.  My envelope schema references a header schema.  The header schema is flat and does not have a root node which I do not know how to get around.  This is the header schema:

  <?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 fixed=name=”Action type=”xs:string />
  </xs:schema>
Which results in this?  Do not understand why or know how to fix the To & Action nodes not having the ns1 prefix and their values?
<?xml version=”1.0″ encoding=”utf-8″ ?>

<ns0:Envelope xmlns:ns0=”http://www.w3.org/2003/05/soap-envelope>
<ns0:Header>
  <ns1:Address>AddressStr</ns1:Address>
  </ns1:From>
<ns2:Sequence xmlns:ns2=”http://www.myvan.descartes.com/ebi/2004/r1>
  <ns2:MessageNumber>1234567890</ns2:MessageNumber>
  </ns2:Sequence>
  </ns0:Header>
<ns0:Body>
<Request>

  </Request>
  </ns0:Body>
  </ns0:Envelope>
I
I