Geeks With Blogs

News


Edmund Zhao's BizTalk abc We share, We learn

There are two types of dynamic ports in BizTalk 2004. They are Dynamic One-Way Port and Dynamic Solicit-Response Port. The following sample is based on Dynamic One-Way Port, using the other one will be very similar.

1. Create a new BizTalk project.
2. Create a schema to the new project.
   
3. Promote “Destination” to be a distinguished field.
4. Create an orchestration to the project. “DynamicSendPort” is a configure port with “Dynamic” port binding.
   
5. Add the following statement into expression shape. “MsgSample” is the message created in orchestration view
          DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address) = MsgSample.Destination;
6. Associate the strong name key to the project and deploy it.
7. Create receive port in BizTalk Explorer pointing to a local file directory.
8. Bind the receive port to orchestration and start the orchestration.
9. Drop the XML instance file to the receive location and you will see the message sent to the location defined in the instance file. The XML instance file should look like the following.

 
Destinations could be on different protocols as long as the URI is correct. BizTalk will generate “The outbound transport could not be resolved” error if URI couldn't be found. The following are some valid formats.
    file://c:\file\Dynamic\Output\%MessageID%.xml
    msmq://.\private$\TestQueue
    http://orders.mycompany

…Edmund Zhao

Posted on Monday, March 6, 2006 1:47 PM | Back to top


Comments on this post: Dynamic Send Port in BizTalk 2004

# re: Dynamic Send Port in BizTalk 2004
Requesting Gravatar...
Edmund,

doing dynamic ports like this is awesome.
i have the case where i use http transport to communicate with a webservice, up until now the webservice has allowed anonymous access. In an effort to tighten up security we have removed anonymous access from our web methods.

how do i configure my dynamic static-response port to not use anonymous anymore, but use NTLM authentication.

when you set up a static solicit-response port you can configure the url, authtentication, retry count, etc. etc.

how do you configure these kinds of things for dynamic ports?
Left by Ryan CrawCour on Apr 21, 2006 4:59 AM

# re: Dynamic Send Port in BizTalk 2004
Requesting Gravatar...
how can route ack dynamically to either FTP or MLLP port based on the sending facility in incoming message( i mean configuration for both properties)
Left by pavan on Aug 07, 2006 9:29 AM

# re: Dynamic Send Port in BizTalk 2004
Requesting Gravatar...
You would have to change the Orchestration so that it also had a Message Assignment shape, and in there create a new message from the incoming one and then also set the following message context properties
MessageName(HTTP.Password) = "password";
MessageName(HTTP.Username) = "username";

See the URL above for details on the different settings
Left by Colin Dijkgraaf on Jan 09, 2007 9:32 PM

# How to create Dynamic send port for MS CRM 3.0/4.0 in BizTalk
Requesting Gravatar...
HI ,

I want to create a dynamic send port for MS CRM 3.0/4.0 adapetr. but i didnt get how to create it? Also i didnt get any methods to set username and password required to access CRM.

CRM Url is : http://localhost:5555

Username: Administrator

Password: password

Orgname: MicrosoftCRM

I installed MS CRM Adapter[Both for 3.0/4.0 common and also separate adapter for CRM 4.0].

Thanks in advance.
Left by Kuldip on Dec 22, 2008 5:12 AM

# re: Dynamic Send Port in BizTalk 2004
Requesting Gravatar...
Can you tell me details how to use dynamic send port without orchestration.

Bharath k

Left by bharath on Apr 02, 2009 4:43 AM

# re: Dynamic Send Port in BizTalk 2004
Requesting Gravatar...
Hello there,

Can we use network url path while setting dynamic port in BTS 2006.
Say, i have another pc in (LAN) network which i access thro' \ \192.168.12.15\SomeFolder

I tried with setting the path to dynamic send port:
"file://\\192.168.12.15\SomeFolder\filename.txt"

I received the following error after executing the component:

"Error details: The FILE send adapter cannot open file \ \192.168.12.15\SomeFolder\filename.txt for writing.
Details: Logon failure: unknown user name or bad password."

Q: how to set the username and password and where ?

any help is highly appreciable.
thanx a tonne in advance.
harry
Left by harry on Jun 29, 2009 7:00 AM

# re: Dynamic Send Port in BizTalk 2004
Requesting Gravatar...
Got the answer. just need to set the properties of output message and assign it to the send port

thanx anyways
Left by harry on Jun 29, 2009 9:32 AM

# re: Dynamic Send Port in BizTalk 2004
Requesting Gravatar...
about the "set the properties of output message and assign it to the send port" problem where and how i need's to set the login details. please elaborate more on this.
Left by Amarnath Reddy on Aug 13, 2009 12:28 AM

Your comment:
 (will show your gravatar)


Copyright © Edmund Zhao | Powered by: GeeksWithBlogs.net