Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Envelope Problem
- This topic has 1 reply, 1 voice, and was last updated 9 years, 6 months ago by
community-content.
Viewing 1 reply thread
-
AuthorPosts
-
-
December 3, 2006 at 12:05 PM #16686
Hello,
I'm trying to implement envelope schema and body schema using biztalk 2006.
It is working fine base on Stephen W. Thomas great sample.
the problem I have right now is that the promoted properties are not promoted and demoted to the body messages.
here are my schemas
<?xml version="1.0" encoding="utf-16" ?>– <xs:schema xmlns:ns0="http://EnvelopeSample.PropertySchema.PropertySchema" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://EnvelopeSample.OrderEnvelope" targetNamespace="http://EnvelopeSample.OrderEnvelope" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b:namespace prefix="ns0" uri="http://EnvelopeSample.PropertySchema.PropertySchema" location=".\propertyschema.xsd" /></b:imports></xs:appinfo></xs:annotation><b:recordInfo body_xpath="/*[local-name()='OrderEnvelope' and namespace-uri()='http://EnvelopeSample.OrderEnvelope'%5D/*%5Blocal-name()='Orders' and namespace-uri()='']" /><b:property name="ns0:BatchID" xpath="/*[local-name()='OrderEnvelope' and namespace-uri()='http://EnvelopeSample.OrderEnvelope'%5D/*%5Blocal-name()='BatchID' and namespace-uri()='']" /></b:properties></xs:appinfo></xs:annotation><xs:element name="BatchID" type="xs:int" /></xs:sequence></xs:complexType></xs:element></xs:schema>——————— body schema ————–<?xml version="1.0" encoding="utf-16" ?>– <xs:schema xmlns:ns0="http://EnvelopeSample.PropertySchema.PropertySchema" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://EnvelopeSample.OrderEnvelope" targetNamespace="http://EnvelopeSample.OrderEnvelope" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b:namespace prefix="ns0" uri="http://EnvelopeSample.PropertySchema.PropertySchema" location=".\propertyschema.xsd" /></b:imports></xs:appinfo></xs:annotation><b:recordInfo body_xpath="/*[local-name()='OrderEnvelope' and namespace-uri()='http://EnvelopeSample.OrderEnvelope'%5D/*%5Blocal-name()='Orders' and namespace-uri()='']" /><b:property name="ns0:BatchID" xpath="/*[local-name()='OrderEnvelope' and namespace-uri()='http://EnvelopeSample.OrderEnvelope'%5D/*%5Blocal-name()='BatchID' and namespace-uri()='']" /></b:properties></xs:appinfo></xs:annotation><xs:element name="BatchID" type="xs:int" /></xs:sequence></xs:complexType></xs:element></xs:schema>————————————— property schema ———————-<?xml version="1.0" encoding="utf-16" ?>– <xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://EnvelopeSample.PropertySchema.PropertySchema" targetNamespace="http://EnvelopeSample.PropertySchema.PropertySchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"></xs:appinfo></xs:annotation></xs:schema> -
December 4, 2006 at 8:32 PM #16711
I don’t think that works. I don’t think items inside the message body can be promoted and demoted. If I remember right, I promote items from the Envelope itself.
I might have it back words.
In any case, I don’t think this is something you can do without custom code.
-
-
AuthorPosts
Viewing 1 reply thread
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.