|
Home > Archive > BizTalk Server Applications Integration > October 2004 > XML envelope document sending out multiple documents
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 |
XML envelope document sending out multiple documents
|
|
| TheNortonZ 2004-10-15, 9:09 pm |
| Does anyone know where I might find a sample of taking an XML document that
is using an envelope, and then right before sending it out the send port,
splitting it into multiple documents?
Thanks for any help.
Norton
| |
|
|
| XUEZHAI NI 2004-10-20, 5:48 pm |
| take a look of SDK sample at \Microsoft BizTalk Server
2005\SDK\Samples\Pipelines\AssemblerDisa
ssembler\EnvelopeProcessing
and related documentation at
ms-help://BTS_2004/SDK/htm/ebiz_sdk_samples_pazy.htm
although the sample use Flatfile disassembler, you can switch to XML
disassembler and set to the appropriate envelope schema and document schema
to split the incoming message
thanks
Ni
--------------------
| From: "TheNortonZ" <thenortonz@hotmail.com>
| Subject: XML envelope document sending out multiple documents
| Date: Fri, 15 Oct 2004 21:03:21 -0400
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#PS9yvxsEHA.2136@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.biztalk.appintegration
| NNTP-Posting-Host: tide16.microsoft.com 207.46.125.16
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.appintegration:7439
| X-Tomcat-NG: microsoft.public.biztalk.appintegration
|
| Does anyone know where I might find a sample of taking an XML document
that
| is using an envelope, and then right before sending it out the send port,
| splitting it into multiple documents?
|
| Thanks for any help.
|
| Norton
|
|
|
| |
| TheNortonZ 2004-10-21, 7:47 am |
| Xuezhai,
This is what I have already tried to do, but there are just enough
differences to make it not work. (although I do not have a trailer).
I am sure it must just be a property setting that is keeping this thing from
working but at this point, I still don't know which one it is.
Thanks.
Norton
"XUEZHAI NI" <XUEZHAIN@ONLINE.MICROSOFT.COM> wrote in message
news:h%23UaD%23stEHA.592@cpmsftngxa10.phx.gbl...
> take a look of SDK sample at \Microsoft BizTalk Server
> 2005\SDK\Samples\Pipelines\AssemblerDisa
ssembler\EnvelopeProcessing
> and related documentation at
> ms-help://BTS_2004/SDK/htm/ebiz_sdk_samples_pazy.htm
>
> although the sample use Flatfile disassembler, you can switch to XML
> disassembler and set to the appropriate envelope schema and document
> schema
> to split the incoming message
>
> thanks
>
>
> Ni
> --------------------
> | From: "TheNortonZ" <thenortonz@hotmail.com>
> | Subject: XML envelope document sending out multiple documents
> | Date: Fri, 15 Oct 2004 21:03:21 -0400
> | Lines: 9
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
> | X-RFC2646: Format=Flowed; Original
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
> | Message-ID: <#PS9yvxsEHA.2136@TK2MSFTNGP11.phx.gbl>
> | Newsgroups: microsoft.public.biztalk.appintegration
> | NNTP-Posting-Host: tide16.microsoft.com 207.46.125.16
> | Path:
> cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
> phx.gbl
> | Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.appintegration:7439
> | X-Tomcat-NG: microsoft.public.biztalk.appintegration
> |
> | Does anyone know where I might find a sample of taking an XML document
> that
> | is using an envelope, and then right before sending it out the send
> port,
> | splitting it into multiple documents?
> |
> | Thanks for any help.
> |
> | Norton
> |
> |
> |
>
| |
| XUEZHAI NI 2004-10-25, 5:48 pm |
| could you send me your project?
I can take a look
thanks
Ni
--------------------
| From: "TheNortonZ" <thenortonz@hotmail.com>
| References: <#PS9yvxsEHA.2136@TK2MSFTNGP11.phx.gbl>
<h#UaD#stEHA.592@cpmsftngxa10.phx.gbl>
| Subject: Re: XML envelope document sending out multiple documents
| Date: Thu, 21 Oct 2004 06:50:05 -0400
| Lines: 62
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#1EVkx1tEHA.2808@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.biztalk.appintegration
| NNTP-Posting-Host: tide16.microsoft.com 207.46.125.16
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.appintegration:7454
| X-Tomcat-NG: microsoft.public.biztalk.appintegration
|
| Xuezhai,
|
| This is what I have already tried to do, but there are just enough
| differences to make it not work. (although I do not have a trailer).
|
| I am sure it must just be a property setting that is keeping this thing
from
| working but at this point, I still don't know which one it is.
|
| Thanks.
|
| Norton
|
| "XUEZHAI NI" <XUEZHAIN@ONLINE.MICROSOFT.COM> wrote in message
| news:h%23UaD%23stEHA.592@cpmsftngxa10.phx.gbl...
| > take a look of SDK sample at \Microsoft BizTalk Server
| > 2005\SDK\Samples\Pipelines\AssemblerDisa
ssembler\EnvelopeProcessing
| > and related documentation at
| > ms-help://BTS_2004/SDK/htm/ebiz_sdk_samples_pazy.htm
| >
| > although the sample use Flatfile disassembler, you can switch to XML
| > disassembler and set to the appropriate envelope schema and document
| > schema
| > to split the incoming message
| >
| > thanks
| >
| >
| > Ni
| > --------------------
| > | From: "TheNortonZ" <thenortonz@hotmail.com>
| > | Subject: XML envelope document sending out multiple documents
| > | Date: Fri, 15 Oct 2004 21:03:21 -0400
| > | Lines: 9
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <#PS9yvxsEHA.2136@TK2MSFTNGP11.phx.gbl>
| > | Newsgroups: microsoft.public.biztalk.appintegration
| > | NNTP-Posting-Host: tide16.microsoft.com 207.46.125.16
| > | Path:
| >
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
| > phx.gbl
| > | Xref: cpmsftngxa10.phx.gbl
microsoft.public.biztalk.appintegration:7439
| > | X-Tomcat-NG: microsoft.public.biztalk.appintegration
| > |
| > | Does anyone know where I might find a sample of taking an XML document
| > that
| > | is using an envelope, and then right before sending it out the send
| > port,
| > | splitting it into multiple documents?
| > |
| > | Thanks for any help.
| > |
| > | Norton
| > |
| > |
| > |
| >
|
|
|
| |
| Mike Jansen 2004-10-29, 5:49 pm |
| Norton,
I'm doing this successfully, but I didn't follow the examples _exactly_.
Here's what I did:
1. Create the document schema first of the final document you want.
2. Create the envelope schema, use a different namespace
a. in the envelope schema, import the document namespace
b. create a _reference_ element to your document's root element where it
belongs in the envelope, set minOccurs/maxOccurs appropriately (0/unbounded
for me)
c. make sure to set the document body xpath to the node that _contains_
your document nodes, not to the document nodes themselves
3. In your Receive Pipeline, drop in XML Disassembler and set the Envelope
and Document schemas appropriately
(Note: The examples I saw used an "Any" element instead of the reference to
the document root element; I didn't get it to work that way, but then again
I didn't try much because actually referencing the actual document schema
seemed to sit better with me)
Sample "instance" document:
<env xmlns="urn:schemas-mydomain:env">
<doc xmlns="urn:schemas-mydomain:doc">
This is one document
</doc>
<doc xmlns="urn:schemas-mydomain:doc">
This is another document
</doc>
</env>
Body XPath: /*[local-name()=env' and
namespace-uri()='urn:schemas-mydomain:env']
In the sample instance document above, the output of the receive port would
be individual "urn:schemas-mydomain:doc:doc" documents. The envelope
document won't even be seen.
I currently do this on a SQL receive port where my SQL stored proc returns
all the documents and I need to shred them into individual documents.
Let me know if I can add more details.
Mike Jansen
Prime ProData, Inc.
North Canton, Ohio USA
(mjansen) (at) (primepro-com)
"TheNortonZ" <thenortonz@hotmail.com> wrote in message
news:%231EVkx1tEHA.2808@TK2MSFTNGP14.phx.gbl...
> Xuezhai,
>
> This is what I have already tried to do, but there are just enough
> differences to make it not work. (although I do not have a trailer).
>
> I am sure it must just be a property setting that is keeping this thing
from
> working but at this point, I still don't know which one it is.
>
> Thanks.
>
> Norton
>
> "XUEZHAI NI" <XUEZHAIN@ONLINE.MICROSOFT.COM> wrote in message
> news:h%23UaD%23stEHA.592@cpmsftngxa10.phx.gbl...
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11[vbcol=seagreen]
microsoft.public.biztalk.appintegration:7439[vbcol=seagreen]
>
>
| |
| Greg Forsythe 2004-10-29, 5:49 pm |
| Mike,
Using the <Any> element in the envelope has the advantage of being able to
reuse the envelope to encapsulate different documents.
The envelope may be a standard wrapper containing routing info like source,
destination, etc
Greg
"Mike Jansen" <mjansen_nntp@mail.com> wrote in message
news:uHB9NwevEHA.4028@TK2MSFTNGP15.phx.gbl...
> Norton,
>
> I'm doing this successfully, but I didn't follow the examples _exactly_.
> Here's what I did:
>
> 1. Create the document schema first of the final document you want.
> 2. Create the envelope schema, use a different namespace
> a. in the envelope schema, import the document namespace
> b. create a _reference_ element to your document's root element where
it
> belongs in the envelope, set minOccurs/maxOccurs appropriately
(0/unbounded
> for me)
> c. make sure to set the document body xpath to the node that
_contains_
> your document nodes, not to the document nodes themselves
> 3. In your Receive Pipeline, drop in XML Disassembler and set the Envelope
> and Document schemas appropriately
>
> (Note: The examples I saw used an "Any" element instead of the reference
to
> the document root element; I didn't get it to work that way, but then
again
> I didn't try much because actually referencing the actual document schema
> seemed to sit better with me)
>
> Sample "instance" document:
>
> <env xmlns="urn:schemas-mydomain:env">
> <doc xmlns="urn:schemas-mydomain:doc">
> This is one document
> </doc>
> <doc xmlns="urn:schemas-mydomain:doc">
> This is another document
> </doc>
> </env>
>
> Body XPath: /*[local-name()=env' and
> namespace-uri()='urn:schemas-mydomain:env']
>
> In the sample instance document above, the output of the receive port
would
> be individual "urn:schemas-mydomain:doc:doc" documents. The envelope
> document won't even be seen.
>
> I currently do this on a SQL receive port where my SQL stored proc returns
> all the documents and I need to shred them into individual documents.
>
> Let me know if I can add more details.
>
> Mike Jansen
> Prime ProData, Inc.
> North Canton, Ohio USA
> (mjansen) (at) (primepro-com)
>
>
>
> "TheNortonZ" <thenortonz@hotmail.com> wrote in message
> news:%231EVkx1tEHA.2808@TK2MSFTNGP14.phx.gbl...
> from
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
> microsoft.public.biztalk.appintegration:7439
document[vbcol=seagreen]
>
>
|
|
|
|
|