Geeks With Blogs
Paul's Petrov Whiteboard [BizTalk, Enterprise Application Integration, Business Process Automation, SOA, .NET]

Generally, it is not recommended to store passwords in the binding file and by default BizTalk administration UI clears it out when exporting binding to the xml file. But in development environment where you have automated continuous integration build and deployment not having password in the binding file will prevent application from starting and CI process fail. It can become tedious in staging deployments (TEST, UAT) as well, especially if you have multiple endpoints that use accounts with passwords. In such cases, having password for development account (hopefully not the same as production) in binding file can make life easier.

To do that, export binding file after application is fully configured. Open it and locate section(s) with configuration for the ports/locations of interest. For example for the WCF receive location it will be in:

<ReceiveLocationTransportTypeData>&lt;CustomProps&gt;...&lt;/CustomProps&gt;</ReceiveLocationTransportTypeData>

Find emtpy password tag in this section that will look like:

&lt;Password vt="1"/&gt;

Change it to enclose you password value and vt attribute value to "8":

&lt;Password vt="8"&gt;MyPassword&lt;/Password&gt;

Save and use this binding for an automated deployment script.

Posted on Thursday, August 27, 2009 2:31 PM BizTalk | Back to top


Comments on this post: How to save password for WCF Adapter in BizTalk binding file

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Paul Petrov | Powered by: GeeksWithBlogs.net