Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Get/Set Document Schema Prop in Custom Componet
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Joel G. Brown  
View profile   Translate to Translated (View Original)
 More options 10 Aug 2004, 16:17
Newsgroups: microsoft.public.biztalk.general
From: "Joel G. Brown" <Joel.Br...@us.abb.com>
Date: Tue, 10 Aug 2004 11:17:12 -0400
Local: Tues 10 Aug 2004 16:17
Subject: Get/Set Document Schema Prop in Custom Componet
Hello All,
        I am trying to access the document schema properity of the
disassimbler.  I have looped thru the header context props and don't see
that it is present.  How and I get and set the document schema header in
a custom componet before it's processed by the default disassimbler.

Thank you
Joel Brown


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christof [MVP] at dot  
View profile   Translate to Translated (View Original)
 More options 10 Aug 2004, 18:47
Newsgroups: microsoft.public.biztalk.general
From: "Christof [MVP]" <bts2004communityfeedback (at) hotmail (dot) com>
Date: Tue, 10 Aug 2004 19:47:47 +0200
Local: Tues 10 Aug 2004 18:47
Subject: Re: Get/Set Document Schema Prop in Custom Componet
You are not able to "get" the document schema before the message is
processed by a dissasembler.  Retreival of this context property is exactly
the task of the dissasembler component.  You might be able to set it
though...

Best regards,
Christof
--
Christof [Microsoft BizTalk Server MVP]

"Joel G. Brown" <Joel.Br...@us.abb.com> wrote in message
news:%23aXBf0ufEHA.2908@TK2MSFTNGP10.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joel G. Brown  
View profile   Translate to Translated (View Original)
 More options 11 Aug 2004, 14:44
Newsgroups: microsoft.public.biztalk.general
From: "Joel G. Brown" <Joel.Br...@us.abb.com>
Date: Wed, 11 Aug 2004 09:44:38 -0400
Local: Wed 11 Aug 2004 14:44
Subject: Re: Get/Set Document Schema Prop in Custom Componet

Christof [MVP] wrote:
> You are not able to "get" the document schema before the message is
> processed by a dissasembler.  Retreival of this context property is exactly
> the task of the dissasembler component.  You might be able to set it
> though...

> Best regards,
> Christof

Christof,
        I am able to retreave the document schema, but not sure how to set it
or where?  What interface would I use?

Regards,
Joel Brown


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gilles [MSFT]  
View profile   Translate to Translated (View Original)
 More options 11 Aug 2004, 17:07
Newsgroups: microsoft.public.biztalk.general
From: Gil...@online.microsoft.com (Gilles [MSFT])
Date: Wed, 11 Aug 2004 16:07:42 GMT
Local: Wed 11 Aug 2004 17:07
Subject: Re: Get/Set Document Schema Prop in Custom Componet
Hello,

>Christof [MVP] wrote:

>> You are not able to "get" the document schema before the message is
>> processed by a dissasembler.  Retreival of this context property is exactly
>> the task of the dissasembler component.  You might be able to set it
>> though...

[...]

>    I am able to retreave the document schema, but not sure how to set it
>or where?  What interface would I use?

To set the schema, you can use the following code:

string systemPropertiesNamespace = "http://schemas.microsoft.com/BizTalk/2003/system-properties";
string messageType = "<your schema namespace here without the <>>#< your schema root node here>";
msg.Context.Promote("MessageType", systemPropertiesNamespace, messageType);

messageType should be something like http://myschemanamespace#rootnodename

Thanks.
-Gilles.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joel G. Brown  
View profile   Translate to Translated (View Original)
 More options 13 Aug 2004, 14:17
Newsgroups: microsoft.public.biztalk.general, microsoft.public.biztalk.nonxml
From: "Joel G. Brown" <Joel.Br...@us.abb.com>
Date: Fri, 13 Aug 2004 09:17:05 -0400
Local: Fri 13 Aug 2004 14:17
Subject: Re: Get/Set Document Schema Prop in Custom Componet

Gilles,
        This sets the messageType properity on the message, Should that also
set the pipeline's schema / message type too?  I'm trying to read in
many flat file types into one pipeline and route the data based on a
generic header record.  So I have to be able to change the pipeline's
document schema at runtime via a custom pipeline.  How can I change the
Document schema at runtime?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gilles [MSFT]  
View profile   Translate to Translated (View Original)
 More options 16 Aug 2004, 18:56
Newsgroups: microsoft.public.biztalk.general
From: Gil...@online.microsoft.com (Gilles [MSFT])
Date: Mon, 16 Aug 2004 17:56:29 GMT
Local: Mon 16 Aug 2004 18:56
Subject: Re: Get/Set Document Schema Prop in Custom Componet
Hello,

[...]

>Gilles,
>    This sets the messageType properity on the message, Should that also
>set the pipeline's schema / message type too?  I'm trying to read in
>many flat file types into one pipeline and route the data based on a
>generic header record.  So I have to be able to change the pipeline's
>document schema at runtime via a custom pipeline.  How can I change the
>Document schema at runtime?

I assume you are currently using the flat file disassembler. In this case, you will have
to write a custom disassembler that extends the out of the box, sniffs the content of the flat file
and figure out the schema you want to use. Then promote the property.

I am in the process of writing an example of this on my blog but the roadmap above should
get you going.

Thanks.
-Gilles.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joel G. Brown  
View profile   Translate to Translated (View Original)
 More options 18 Aug 2004, 13:29
Newsgroups: microsoft.public.biztalk.general
From: "Joel G. Brown" <Joel.Br...@us.abb.com>
Date: Wed, 18 Aug 2004 08:29:26 -0400
Local: Wed 18 Aug 2004 13:29
Subject: Re: Get/Set Document Schema Prop in Custom Componet

I will keep my eye on your blod!!  Thank you!

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gilles [MSFT]  
View profile   Translate to Translated (View Original)
 More options 19 Aug 2004, 20:15
Newsgroups: microsoft.public.biztalk.general
From: Gil...@online.microsoft.com (Gilles [MSFT])
Date: Thu, 19 Aug 2004 19:15:38 GMT
Local: Thurs 19 Aug 2004 20:15
Subject: Re: Get/Set Document Schema Prop in Custom Componet
Hello,

>I will keep my eye on your blod!!  Thank you!

I have posted an example here: http://weblogs.asp.net/gzunino/archive/2004/08/19/217277.aspx
Note that depending on your input, you could also put more than one flat file disassembler at disassembling
stage and have them probe the input.

Thanks.
-Gilles.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google