PROJECT CONTENT
Project name "BTSMyName"
Schema_1
FirstName, lastName
Schema_2
UserName
Business logic: userName = firstName + lastName
One receiving port "Input_Port" receives schema_1
An output product "Output_Port" is directly output to c: \ myName. xml.
After the BTSMyName is generated, it is deployed to the BTS.
Set the project's BTSMyName. dll uses the WebService Publishing Wizard of BTS to publish Input_Port to WebService and http: // localhost/BTSMyNameWS/Input. aspx. Note: Do not select the anonymous access option in the Wizard.
1. Feasibility Configuration
When you are not familiar with the security management of BTS, you can use the existing default configuration to configure this WebService, which saves a lot of trouble.
1. Create a "pool" in the IIS application pool and name itBTSMyNameAppPool, Use the default settings when creating.
2. InBTSMyNameAppPoolSelect "configuration" in the identity attribute, set the user name to "administrator", and set the password to "youPassword".
3. In the default website, openBTSMyNameWSAttribute, modify the "application pool" attributeBTSMyNameAppPool.
4. OpenBTSMyNameWSProperties> Directory Security> authentication method. Make sure that anonymous access is not enabled and integrated Windows authentication is selected.
5. Open Computer Management-> local users and groups, and configure the user administrator to be affiliatedIIS_WPGGroup andBizTalk Isolated Host UsersGroup
6. The local SQL Server Authentication should adopt a hybrid method. In this way, the administrator user can access the BTS database.
This is the most basic configuration method. After the configuration is complete, your BizTalk Web Service can be used.
Note: Because the website is not accessed anonymously, when your program calls this Web service, add the following code to your program:
BTSMyNameWS ws = new BTSMyNameWS ();
...
Ws. Credentials = new System. Net. NetworkCredential ("administrator", "12345678 ");
...
After my registration, the above method can be used. The disadvantage is that the Administrator account is used, the permissions are too large, and the password is easy to be obtained by others.
2. Specify the execution User Configuration
In progress...
3. Configure Anonymous Access
To be continued...
Source: http://ms.mblogger.cn/xuzhong/posts/5176.aspx