First question :)

Below you will see a pic of my map that I have created. I am mapping the TransHeader record (grandchild of dataset, child of row) to a destination schema that will be tied to a send port (WCF-SQL to call a stored procedure).

When I use that send port, only the first instance of the TransHeader record is mapped and sent to SQL server. Obviously by looking at the schema, you can tell that multiple TransHeaders may exist in my inbound schema. I want to insert each instance.

Any thoughts?

pic:

http://imgur.com/zgDqZ

有帮助吗?

解决方案

You can use a composite schema to wrap your WCF-SQL request and use a composite operation on the send port to execute these multiple requests.

Basically, you wrap your usp_InsertTransHeader request and response in a composite schema and mark the MaxOccurs to "unbounded" for the request and response.

This link, Composite Operations, should provide a good guide on how to achieve this.

Also, look out for Richard Seroters example in his book; SOA Patterns With BizTalk 2009

HTH

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top