Why does "Property1" appear in PropertySchema.xsd?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Why does "Property1" appear in PropertySchema.xsd?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Why does "Property1" appear in PropertySchema.xsd?  
Ken Powers


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 11:01 PM

This is a general question about the "PropertySchema.xsd" document in BizTal
k
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.





[ Post a follow-up to this message ]



    Re: Why does "Property1" appear in PropertySchema.xsd?  
Jon Flanders


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 11:01 PM

This is why I recommend *not* to use quick promotion (although you can safel
y
remove "Property1").  I have always assumed it is a limitation in their obje
ct
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.
>







[ Post a follow-up to this message ]



    Re: Why does "Property1" appear in PropertySchema.xsd?  
Ken Powers


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 11: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 saf
ely
> remove "Property1").  I have always assumed it is a limitation in their ob
ject
> 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
> 
>
>
>





[ Post a follow-up to this message ]



    Re: Why does "Property1" appear in PropertySchema.xsd?  
Jon Flanders


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 11: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:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register