BizTalk Server General - Schema field elements not accessible from Biztalk Expression Edito

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2005 > Schema field elements not accessible from Biztalk Expression Edito





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 Schema field elements not accessible from Biztalk Expression Edito
Praveen

2005-03-30, 7:53 am

Hi,

I am not able to access Schema field elements from the Biztalk Expression
Editor.
Can someone please help me in this.
The structure of my schema is as below:-

<?xml version="1.0" encoding="utf-16" ?>
- <xs:schema xmlns:ns0="http://BudgetApproval.PropertySchema.PropertySchema"
xmlns="http://BudgetApproval.ReceiveBudget"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
targetNamespace="http://BudgetApproval.ReceiveBudget"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:annotation>
- <xs:appinfo>
<b:schemaInfo count_positions_by_byte="false" standard="Flat File"
root_reference="Root" />
<schemaEditorExtension:schemaInfo namespaceAlias="b"
extensionClass="Microsoft.BizTalk.FlatFileExtension.FlatFileExtension"
standardName="Flat File"
xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions" />
- <b:imports>
<b:namespace prefix="ns0"
uri="http://BudgetApproval.PropertySchema.PropertySchema"
location=".\propertyschema.xsd" />
</b:imports>
</xs:appinfo>
</xs:annotation>
- <xs:element name="Root">
- <xs:annotation>
- <xs:appinfo>
<b:recordInfo structure="positional"
preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false"
sequence_number="1" />
- <b:properties>
<b:property name="ns0:BudgetValue" xpath="/*[local-name()='Root' and
namespace-uri()='http://BudgetApproval.ReceiveBudget']/*[local-name()='BudgetValue' and namespace-uri()='']" />
</b:properties>
</xs:appinfo>
</xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:annotation>
- <xs:appinfo>
<b:groupInfo sequence_number="0" />
</xs:appinfo>
</xs:annotation>
- <xs:element name="BudgetValue" type="xs:int">
- <xs:annotation>
- <xs:appinfo>
<b:fieldInfo justification="left" sequence_number="1" />
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Regards,
Praveen.



Saravana Kumar

2005-03-30, 7:53 am

In order to access Scehema elements inside the expression shape you need to
promote them from the schema editor.

If you just want to access it inside the Orchestration, you can do
Distinguished field promotion.

There are tons of documentation around this area, give it a search in Google
or MSDN for "Property promotion Biztalk 2004"

Cheers,
Saravana
http://saravanakumarmv.blogspot.com

"Praveen" <Praveen@discussions.microsoft.com> wrote in message
news:A4E698CA-8573-430C-BFD8-3C89BFCB6BE8@microsoft.com...
> Hi,
>
> I am not able to access Schema field elements from the Biztalk Expression
> Editor.
> Can someone please help me in this.
> The structure of my schema is as below:-
>
> <?xml version="1.0" encoding="utf-16" ?>
> - <xs:schema

xmlns:ns0="http://BudgetApproval.PropertySchema.PropertySchema"
> xmlns="http://BudgetApproval.ReceiveBudget"
> xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
> targetNamespace="http://BudgetApproval.ReceiveBudget"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> - <xs:annotation>
> - <xs:appinfo>
> <b:schemaInfo count_positions_by_byte="false" standard="Flat File"
> root_reference="Root" />
> <schemaEditorExtension:schemaInfo namespaceAlias="b"
> extensionClass="Microsoft.BizTalk.FlatFileExtension.FlatFileExtension"
> standardName="Flat File"
>

xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/Schem
aEditorExtensions" />
> - <b:imports>
> <b:namespace prefix="ns0"
> uri="http://BudgetApproval.PropertySchema.PropertySchema"
> location=".\propertyschema.xsd" />
> </b:imports>
> </xs:appinfo>
> </xs:annotation>
> - <xs:element name="Root">
> - <xs:annotation>
> - <xs:appinfo>
> <b:recordInfo structure="positional"
> preserve_delimiter_for_empty_data="true"

suppress_trailing_delimiters="false"
> sequence_number="1" />
> - <b:properties>
> <b:property name="ns0:BudgetValue" xpath="/*[local-name()='Root' and
>

namespace-uri()='http://BudgetApproval.ReceiveBudget']/*[local-name()='Budge
tValue' and namespace-uri()='']" />
> </b:properties>
> </xs:appinfo>
> </xs:annotation>
> - <xs:complexType>
> - <xs:sequence>
> - <xs:annotation>
> - <xs:appinfo>
> <b:groupInfo sequence_number="0" />
> </xs:appinfo>
> </xs:annotation>
> - <xs:element name="BudgetValue" type="xs:int">
> - <xs:annotation>
> - <xs:appinfo>
> <b:fieldInfo justification="left" sequence_number="1" />
> </xs:appinfo>
> </xs:annotation>
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
> Regards,
> Praveen.
>
>
>



Scott Colestock

2005-03-30, 5:51 pm

Hmmm, based on the schema below, it looks like Praveen has already attempted
to promote the property.

Things to check include whether you have redeployed the schema since you did
the promotion, and whether you need to update the promotion (i.e. ensure the
xpath is correct) - perhaps because you've made some schema modifications
since you did the promotion.

Another troubleshooting step is to use HAT to examine the context properties
to see whether the property is, in fact, being promoted by the pipeline you
are using.

Scott Colestock
www.traceofthought.net



"Saravana Kumar" <saravana@hotmail.co.uk> wrote in message
news:OZoVPvSNFHA.3228@TK2MSFTNGP12.phx.gbl...
> In order to access Scehema elements inside the expression shape you need
> to
> promote them from the schema editor.
>
> If you just want to access it inside the Orchestration, you can do
> Distinguished field promotion.
>
> There are tons of documentation around this area, give it a search in
> Google
> or MSDN for "Property promotion Biztalk 2004"
>
> Cheers,
> Saravana
> http://saravanakumarmv.blogspot.com
>
> "Praveen" <Praveen@discussions.microsoft.com> wrote in message
> news:A4E698CA-8573-430C-BFD8-3C89BFCB6BE8@microsoft.com...
> xmlns:ns0="http://BudgetApproval.PropertySchema.PropertySchema"
> xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/Schem
> aEditorExtensions" />
> suppress_trailing_delimiters="false"
> namespace-uri()='http://BudgetApproval.ReceiveBudget']/*[local-name()='Budge
> tValue' and namespace-uri()='']" />
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com