Re: SQL Receive Adapter
- From: "Greg Forsythe" <greg.forsythe@xxxxxxxxx>
- Date: Wed, 22 Nov 2006 22:15:32 +1300
You will need to modify the schema generated by the SQL adapter to be an
envelope/document schema.
It should look like this (simplified)
<schema> Envelope = Yes
<element name="root"> Body Xpath = <root>
<element maxOccurs="unbounded" ref="document" />
</element>
<element name="document">
<complexType>
<!--elements-->
<complexType>
</element>
So both <root> and <document> are top level nodes and will have
MessageTypes added to the Biztalk config.
This is necessary when the XmlDisassembler debatches the documents, it needs
to find a message type for the debatched document.
This can sometimes get tricky with namespaces, if you have problems, email
me your schema (as SQL adapter generated it)
Greg
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5B1DFDD5-282A-42D0-8DC5-3C1B2C20090E@xxxxxxxxxxxxxxxx
Hi All,
I have been experimenting with the SQL receive adapter to pull records via
a
stored procedure, this is purely in a messaging scenario. On my generated
schema I have set both the root and table name element to have a max
occurrs
of 1 however when I configure my send port to pick messages up from the
receive they are output in one file.
My question is, how can I debatch these? I thought that the SQL adapter
would put each record returned into BizTalk as a separate message. Do I
need
to create an envelope schema etc for this or is there a better way to do
this?
Thanks,
Gary
.
- Follow-Ups:
- Re: SQL Receive Adapter
- From: Gary
- Re: SQL Receive Adapter
- Prev by Date: RE: Unparsed Interchange
- Next by Date: Re: Unparsed Interchange
- Previous by thread: FTP location is randomly stopping
- Next by thread: Re: SQL Receive Adapter
- Index(es):
Relevant Pages
|