BizTalk Server Orchestration - Why does "Property1" appear in PropertySchema.xsd?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > February 2006 > Why does "Property1" appear in PropertySchema.xsd?





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 Why does "Property1" appear in PropertySchema.xsd?
Ken Powers

2006-02-13, 6:01 pm

This is a general question about the "PropertySchema.xsd" document in BizTalk
Server 2006. I've noticed that no matter how many elements I promote using
Quick Promotion, the PropertySchema document that is generated always has an
element named "Property1".

For example, I created a schema document with a single root element and a
single child field element. I named the child field element "ConfigFile".
When I right-clicked on the child field element and clicked "Quick Promotion"
the following PropertySchema.xsd document was created:

Code:

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
xmlns="http://ETLOrchestration.PropertySchema.PropertySchema"
targetNamespace="http://ETLOrchestration.PropertySchema.PropertySchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>
<b:schemaInfo schema_type="property"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
</xs:appinfo>
</xs:annotation>
<xs:element name="Property1" type="xs:string">
<xs:annotation>
<xs:appinfo>
<b:fieldInfo propertyGuid="96a7e416-0499-47a4-b6dc-9f8ab2f6d50f" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="ConfigFile" type="xs:string">
<xs:annotation>
<xs:appinfo>
<b:fieldInfo propertyGuid="1967c57e-10a9-416f-8260-44e8c00e500a" />
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:schema>

I want to understand how BizTalk works, so could someone explain why this
Property1 element appears along with the element I created? Is this a bug?
How do I specify a value for the property I created?

When I click "Generate Instance" this is what I see:

Code:

<ns0:Property1
xmlns:ns0="http://ETLOrchestration.PropertySchema.PropertySchema">Property1_0</ns0:Property1>

If I want to specify a value for "ConfigFile" do I have to add another line
like this?

Code:

<ns1:ConfigFile
xmlns:ns1="http://ETLOrchestration.PropertySchema.PropertySchema">ConfigFile_0</ns1:ConfigFile>

Any help the community could give me is greatly appreciated.
Jon Flanders

2006-02-13, 6:01 pm

This is why I recommend *not* to use quick promotion (although you can safely
remove "Property1"). I have always assumed it is a limitation in their object
model for adding schemas. It appears they can add a new element to their
property schema template - but not change the existing one ("Property1").

I recommend to the add a property schema to your project - and then change
the name and or type of property1 to what you want it to be.

Jon Flanders [MVP]
http://www.masteringbiztalk.com
http://www.quicklearn.com/workflow.htm

> This is a general question about the "PropertySchema.xsd" document in
> BizTalk Server 2006. I've noticed that no matter how many elements I
> promote using Quick Promotion, the PropertySchema document that is
> generated always has an element named "Property1".
>
> For example, I created a schema document with a single root element
> and a single child field element. I named the child field element
> "ConfigFile". When I right-clicked on the child field element and
> clicked "Quick Promotion" the following PropertySchema.xsd document
> was created:
>
> Code:
>
> <?xml version="1.0" encoding="utf-16"?>
> <xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
> xmlns="http://ETLOrchestration.PropertySchema.PropertySchema"
> targetNamespace="http://ETLOrchestration.PropertySchema.PropertySchema
> "
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:annotation>
> <xs:appinfo>
> <b:schemaInfo schema_type="property"
> xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
> </xs:appinfo>
> </xs:annotation>
> <xs:element name="Property1" type="xs:string">
> <xs:annotation>
> <xs:appinfo>
> <b:fieldInfo
> propertyGuid="96a7e416-0499-47a4-b6dc-9f8ab2f6d50f" />
> </xs:appinfo>
> </xs:annotation>
> </xs:element>
> <xs:element name="ConfigFile" type="xs:string">
> <xs:annotation>
> <xs:appinfo>
> <b:fieldInfo
> propertyGuid="1967c57e-10a9-416f-8260-44e8c00e500a" />
> </xs:appinfo>
> </xs:annotation>
> </xs:element>
> </xs:schema>
> I want to understand how BizTalk works, so could someone explain why
> this Property1 element appears along with the element I created? Is
> this a bug? How do I specify a value for the property I created?
>
> When I click "Generate Instance" this is what I see:
>
> Code:
>
> <ns0:Property1
> xmlns:ns0="http://ETLOrchestration.PropertySchema.PropertySchema">Prop
> erty1_0</ns0:Property1>
>
> If I want to specify a value for "ConfigFile" do I have to add another
> line like this?
>
> Code:
>
> <ns1:ConfigFile
> xmlns:ns1="http://ETLOrchestration.PropertySchema.PropertySchema">Conf
> igFile_0</ns1:ConfigFile>
>
> Any help the community could give me is greatly appreciated.
>



Ken Powers

2006-02-13, 6:01 pm

So, "Quick Promotion" works like so many other wizards in the Microsoft
world.

Thanks for the info. I'll remove the "Property1" element from the property
schema.

"Jon Flanders" wrote:

> This is why I recommend *not* to use quick promotion (although you can safely
> remove "Property1"). I have always assumed it is a limitation in their object
> model for adding schemas. It appears they can add a new element to their
> property schema template - but not change the existing one ("Property1").
>
> I recommend to the add a property schema to your project - and then change
> the name and or type of property1 to what you want it to be.
>
> Jon Flanders [MVP]
> http://www.masteringbiztalk.com
> http://www.quicklearn.com/workflow.htm
>
>
>
>

Jon Flanders

2006-02-13, 6:01 pm

Not a problem Ken

Jon Flanders [MVP]
http://www.masteringbiztalk.com
http://www.quicklearn.com/workflow.htm
[vbcol=seagreen]
> So, "Quick Promotion" works like so many other wizards in the
> Microsoft world.
>
> Thanks for the info. I'll remove the "Property1" element from the
> property schema.
>
> "Jon Flanders" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com