Geeks With Blogs
Edmund Zhao's BizTalk abc We share, We learn

Binding file for WCF Adapter doesn't save the password no matter it is generated by "Add Generated Items..." wizard in Visual Studio or "Export Bindings..." in administration console. It is by design dut to the consideration of security, but it is very annoying especially when you import bindings which contain multiple WCF send ports. The way to aviod retyping password everytime after an import is to edit the binding file before import. Here is what needs to be done.

1. Find the following string:

    <Password vt="1" />

"&lt;" means "<", "&gt;" means ">", "vt" means "Variable Type", variable type 1 is "NULL", so the above string can be translated to "<Password/>"

2. Replace it with:

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

variable type 8 is "string", the above string can be transalted to "<Password>MyPassword</Password>"
Binding file uses a lot of character entity references for XML character encoding purpose. For a list of the special charactor entiy references, you can check from here.

...Edmund Zhao

Posted on Monday, June 27, 2011 10:06 PM | Back to top

Comments on this post: Save password in WCF adapter binding file

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

Copyright © Edmund Zhao | Powered by: