Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Dynamic Sql Adapter — multiple procedure calls
- This topic has 4 replies, 1 voice, and was last updated 9 years, 6 months ago by
community-content.
-
AuthorPosts
-
-
October 31, 2006 at 9:43 AM #16261
I am writing an application in BTS2006 that has around 10 stored procedure calls, each returning differently formatted data. Rather than creating 10 ports and all the related binding, I am looking for a solution that would be a single sql adapter that I could set the prerequisite rootnames etc. At this point they would all be using the same database. Has anyone seen an example of this or a commercial adapter that would handle this?
Thanks,
Doug
-
November 2, 2006 at 3:18 PM #16302
I don’t really know of anything.
But could you wrap all of your calls into a single SP and then call that using the SQL Adapter?
Just a thought.
-
November 3, 2006 at 5:35 AM #16310
Now that is an interesting idea, the adapter only determines the response root and ns, so it might handle different content structure. However, the generated port linkage in the orchestration requires a defined message. Maybe you can assign multiple sql ports to the same adapter or visa vesa. I still get confused which is the port and which is the adapter. Otherwise you would have to use an <any> element and map it back to specific results. Several procedural questions in that but I may give it a try.
It just occurred to me that if you used that same namespace and root element name you may be able to link all 'logical' ports to the same 'physical' port. This may be an easier solution.
Right now I have built an orchestration that calls a .net class that mimics the sql adapter. It does handle errors and retries, but I am sure it is missing aspects of an adapter I have not discovered.
Thanks, Doug
-
November 3, 2006 at 8:33 AM #16313
"It just occurred to me that if you used that same namespace and root element name you may be able to link all 'logical' ports to the same 'physical' port. This may be an easier solution." if you run like this you will get Runtime XLANG issue, Schema Compatabulity.
-
November 3, 2006 at 9:23 AM #16314
Truly, having common namespace and rootnames was not the solution. Creating a sql procedure adapter that takes <any> element for the input and an <any> for the response appears to work. There is a bit of mapping to recover the data, but it is just a masscopy.
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.