BizTalk Server General - Promoted property/ Envelope Processing

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > April 2004 > Promoted property/ Envelope Processing





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 Promoted property/ Envelope Processing
Darren Bell

2004-03-25, 7:46 am

Hi
I appologise if this is a niave question. However, my problem revolves
around the fact that I need information help in a xml envelope to do routing
later in my orchestration. But when I disassemble the envelop and get my
document the information need has obviously been stripped out. I've tried
to promote the property to message context and retrieve it. But I don't
really know if what I'm doing is possible.

Thans for the help

Darren


John Plummer [MSFT]

2004-03-25, 12:51 pm

Hi Darren

I would encourage you to go through the Tutorial in the Online Help...at
least twice. It does show you how to implement routing using the context
properties.

I suggest that if you get to a certain part of the turorial and dont
understand something, then re post on that specific point, it will be easier
for the group to address the specific area

hth
John

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Darren Bell" <darren.bell@icscomputing.co.uk> wrote in message
news:uajPLNmEEHA.688@tk2msftngp13.phx.gbl...
Hi
I appologise if this is a niave question. However, my problem revolves
around the fact that I need information help in a xml envelope to do routing
later in my orchestration. But when I disassemble the envelop and get my
document the information need has obviously been stripped out. I've tried
to promote the property to message context and retrieve it. But I don't
really know if what I'm doing is possible.

Thans for the help

Darren



Roland

2004-03-26, 12:31 pm

Hi John,

I face the same problem as Darren does. However I want to use envelope information in my orchestrations.
I have read the tutorial, I have browsed the samples, but I haven't found examples of using envelope information.

I receive xml messages for organizations containing multiple employee records. I use an XML Disassembler to split the incoming message into mutiple messages (one for each employee). In my orchestration I require some of the organization fields. Is this po
ssible.

My envelope:
<?xml version="1.0" encoding="utf-16" ?><xs:schema xmlns="http://BTXmlDAsm.Envelope" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://BTXmlDAsm.Envelope" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:annotation><xs:appinfo><b
:schemaInfo is_envelope="yes" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" /></xs:appinfo></xs:annotation><xs:element name="Organization"><xs:annotation><xs:appinfo><b:recordInfo body_xpath="/*[local-name()='Organization' and namespace-uri()='http:
//BTXmlDAsm.Envelope']/*[local-name()='Employees']" /></xs:appinfo></xs:annotation><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="Employees"><xs:complexType><xs:sequence><xs:any maxOccurs="unbounded" namespace="##any" processContents
="lax" /></xs:sequence></xs:complexType></xs:element><xs:element name="Name" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema>


My document schema:

<?xml version="1.0" encoding="utf-16" ?><xs:schema xmlns="http://BTXmlDAsm.Employee" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://BTXmlDAsm.Employee" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="Employee">
<xs:complexType><xs:sequence><xs:element name="LastName" type="xs:string" /><xs:element name="Department" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema>
Darren Bell

2004-04-23, 6:35 am

Been of doing other stuff for a while. But I found a solution.

1) Create envelope schema

2) Create envelope properties schema (doesn't have to be dedicated to

envelope)

3) In envelope properties schema, change the "Property Schema Base"

attribute of each property promoted from the envelope to be

"MessageContextPropertyBase"

4) Deploy as usual and reference from Orchestration

5) Envelope properties can now be either routed at port level or read in

an expression shape in orchestration by doing e.g.

Message(EnvelopeProperties.EnvelopeProp1)



"Roland" <anonymous@discussions.microsoft.com> wrote in message
news:E48EC324-245C-455A-9AF5-CE1B6A6D1568@microsoft.com...
> Hi John,
>
> I face the same problem as Darren does. However I want to use envelope

information in my orchestrations.
> I have read the tutorial, I have browsed the samples, but I haven't found

examples of using envelope information.
>
> I receive xml messages for organizations containing multiple employee

records. I use an XML Disassembler to split the incoming message into
mutiple messages (one for each employee). In my orchestration I require some
of the organization fields. Is this possible.
>
> My envelope:
> <?xml version="1.0" encoding="utf-16" ?><xs:schema

xmlns="http://BTXmlDAsm.Envelope"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
targetNamespace="http://BTXmlDAsm.Envelope"
xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:annotation><xs:appinfo><b:sc
hemaInfo is_envelope="yes"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
/></xs:appinfo></xs:annotation><xs:element
name="Organization"><xs:annotation><xs:appinfo><b:recordInfo
body_xpath="/*[local-name()='Organization' and
namespace-uri()='http://BTXmlDAsm.Envelope']/*[local-name()='Employees']"
/></xs:appinfo></xs:annotation><xs:complexType><xs:sequence><xs:element
maxOccurs="unbounded" name="Employees"><xs:complexType><xs:sequence><xs:any
maxOccurs="unbounded" namespace="##any" processContents="lax"
/></xs:sequence></xs:complexType></xs:element><xs:element name="Name"
type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema>
>
>
> My document schema:
>
> <?xml version="1.0" encoding="utf-16" ?><xs:schema

xmlns="http://BTXmlDAsm.Employee"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
targetNamespace="http://BTXmlDAsm.Employee"
xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element
name="Employee"><xs:complexType><xs:sequence><xs:element name="LastName"
type="xs:string" /><xs:element name="Department" type="xs:string"
/></xs:sequence></xs:complexType></xs:element></xs:schema>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com