Home Page › Forums › BizTalk 2004 – BizTalk 2010 › can we decide Sender at Run time for send port?
- This topic has 7 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
August 8, 2008 at 9:07 AM #20361
Hi,
I am working price availablity project. Rep will send item info, I need to get the price for that item from our 1 – 12 vendors and return to Rep. Each vendors have different document format. so I need to map our document in sendport.
What kind of port I need to use it? Number of partners may different. So i can not create 12 ports. Is there way to handle this from config file or any other ways?
Do i have to develop any custom pipeline or anything? I am not sure how to decide where to send at run time. Is there any document where I can learn about it?Thank you for your healp in advance,
-
August 8, 2008 at 10:09 AM #20362
Here’s a propsed way of handling this:
1. Create an Orchestration that receives the messages from the various vendors
2. Use a Correlation Set to identify the vendor for a particular message and publish the messages to the MsgBox
3. Create an Orchestration for each Vendor that receives messages directly from the MsgBox based on the Initialized Correlation Set
4. Translate the vendor messages into a common format and publish to the MsgBox
5. Create a Send Port that sends messages of the common format
-
August 8, 2008 at 11:12 AM #20363
Hi My project step is little bit of different.
1. I receive item info in a XML file from back end system.
2. then i have to send that to vendors(up to 10) .. this is where i have issue…
how can i send our message to multiple vendors at same time? I can not use 10 porst since some time i may send it to 5 vendors. I need to use map in send port level
3. receive the response from each vendor
4. create our own format message using above
5. return to back end.
-
August 8, 2008 at 12:18 PM #20364
I have a few questions:
1. What are you receiving? Orders, shipments, etc? This makes understanding your needs a bit easier.
2. How do you know which vendors to send to?
3. What are you sending to the vendor? Email, XML file, etc?
4. What are you receiving from the vendor? Email, XML file, etc?
-
August 8, 2008 at 2:17 PM #20365
Thank you for helping me in this issue and sorry for the unclear post. Let me be more more clear here.
We have an application where our sale Rep can check item price and availablity. When they pick the item and click the button, application will generate xml and send it to biztalk.
Biztalk will receive the item number from that xml and check our database who has that item and return vendors info such as vendor ID , their sku number and other info via Oracle adapter. So number of vendors depend on db.
Then orchestration has to loop through each vendor and create our internal xml request message.
I have to send this message to vendor. Since vendors have their own xml format..i have to map this request in send port.
I have to get back the result from each vendor and build an result xml. it will be return to sales rep through that application.
So my question is, if i have to send request to 8 vendors how can i do it? I will have only one soft send port in the orchestration. how can i connect to multiple physical send ports in binding?
Thank you for your help in advance.
Siva
-
August 9, 2008 at 5:13 AM #20366
Siva,
A dynamic send port sounds like a good fit for your scenario. Here is a walkthrough for setting up a dynamic send port: http://www.codeproject.com/KB/biztalk/DynamicRouting.aspx. You need to look up the vendor info from the database, then go into a loop where you send the XML to each vendor. Since you are making multiple outbound connections, you might want to look at using an asynchronous pattern: http://www.codeproject.com/KB/biztalk/bts_async_call.aspx. The asynchronous pattern lets you open all off the outbound connections almost in parallell and then wait for the responses at once.
Hope this helps!
-
August 11, 2008 at 10:38 AM #20375
Thank you very much for your help Russell,
I will go through these documents.
Once again, thank you.
Siva
-
September 17, 2008 at 9:07 AM #20738
Hi,
Would it be possible to call “config.xml” file from orchestration?
I will get item details from input file. I will have vendor info in a config file. I need to access the config file from orchestration to use for mapping. Would it be possible to access some xml file from orch?
Does this do anything wtih Business Rule Eng? I am wondering can i create these config info in business rule eng and use them at mapping time.
Siva
-
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.