Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Envelope in xml assembloer › Re: Envelope in xml assembloer
May 8, 2009 at 5:11 AM
#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“>
<schemaInfo is_envelope=”no“ is_receipt=”no“ schema_type=”document“ xmlns=”http://schemas.microsoft.com/BizTalk/2003“ />
</xs:appinfo> </xs:annotation>
<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″ ?>
<ns1:Address>AddressStr</ns1:Address>
</ns1:From>
<ns2:MessageNumber>1234567890</ns2:MessageNumber>
</ns2:Sequence>
</ns0:Header>