LOBWebApplication
You use the LOBWebApplication utility to submit an action or response message from an ASPX page to a trading partner, simulating an actual line-of-business Web application.
After you have set up the ASPX page, you start the page, and enter the parameters for a message: the home and partner organizations; the PIP code, version, and instance ID; and the message category. You can then modify the service content, and submit the message.
Location in SDK
<drive>\Program Files (86)\Microsoft BizTalk <version> Accelerator for RosettaNet\SDK\LOBWebApplication
Adding a Virtual Server for LOBWebApplication
To add a virtual server
Click Start, point to AllPrograms, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
In Information Services Manager, expand <Computer name> (local computer), expand Web Sites, and then right-click Default Web Site.
Point to New, and then click Virtual Directory.
On the Virtual Directory Creation Wizard page, click Next, and then type an alias for the site, such as LOBWebApplication.
On the Web Site Content Directory page, click Browse, move to <drive>\Program Files (x86)\Microsoft BizTalk <version> Accelerator for RosettaNet\SDK\LOBWebApplication, click OK, and then click Next.
On the Virtual Directory Access Permissions page, select Read and Run scripts, and then click Next. Click Finish.
Add the service account user that was used to configure BTARN, for example, hostsvc, to the STS_WPG.
Delete all files from C:\WINDOWS\Microsoft.NET\Framework\v2.0.\Temporary ASP.NET Files. You may have to run the iisreset program to unlock the files before you can delete them.
In IIS Manager, set the LOBWebApplication to run under the Application Pool BTARNHTTPReceivePool.
In IIS Manager, in the Directory Security Properties section for the LOBWebApplication utility, disable the option for the virtual directory to run as anonymous.
Building LOBWebApplication
To build LOBWebApplication
Start Visual Studio.
On the File, point to Open, and then click Open Solution.
Move to <drive>\Program Files (x86)\Microsoft BizTalk <version> Accelerator for RosettaNet\SDK\LOBWebApplication, select LOBWebApplication.sln, and then click Open.
Note
If you have not added a virtual server for LOBWebApplication, the solution will not open correctly in Visual Studio.
Right-click References, and then click Add Reference.
In the Add Reference dialog box, click Browse, move to <drive>:\Program Files (x86)\Microsoft BizTalk <version> Accelerator for RosettaNet\Bin, select the Microsoft.Solutions.BTARN.ConfigurationManager.dll and Microsoft.Solutions.BTARN.Shared.dll files, and then click Open.
Right-click LOBWebApplication, and then click Build.
Running LOBWebApplication
To run LOBWebApplication and submit a message
Click Start, point to All Programs, and then click Internet Explorer.
In Internet Explorer, in the Address box, type http://localhost/LOBWebApplication, and then click Go.
In the Submit Message dialog box, type the home organization, the partner organization, the PIP code, the PIP version, the PIP Instance ID, and the message category.
Modify the service content as needed.
Click Submit.
Remarks
The LOBWebApplication utility generates an instance of the message from the specified PIP, and enters service content from the generated message instance into the ASPX page. To do this, the utility uses the same technique that it uses to generate a well-formed message instance directly from a PIP. For more information, see Creating a Well-Formed Message Instance from a PIP. You can populate any field of the service content in the ASPX page with actual data to generate an actual message instance.
You use the LOBWebApplication utility to simulate a line-of-business Web application submitting a message. You use the LOBApplication utility to simulate a line-of-business desktop application submitting a message.