How to Run the Service Oriented Solution
The following steps describe how to run and validate the service oriented solution on a single computer. After starting the Payment Tracker simulator, you can send requests using either the SOAP or MQSeries transport (with separate procedures for the adapter and inline versions of the service oriented solution).
Send requests by SOAP transport using the client application (stub version)
Send requests using the client application (adapter version)
Send requests by SOAP transport using the client application (stub version)
To send requests by SOAP transport using the client application (stub version)
Open a command prompt, change the directory to the <BizTalk Server install Directory>\SDK\Scenarios\SO\BTSSoln\SimpleClient\bin\Release, and then run the BTSScnSOSimpleClient.exe.
Type any characters in the RequestType, RequestSource, and RequestID text boxes.
Type any 16-digit number in the Account Number text box.
Select SOAP (WS Call) and Stub in the Select Transport and Parameters group box.
Type the following URL in the URL text box, for example:
http://localhost/Microsoft.Samples.BizTalk.WoodgroveBank.OrchProxy.Stub/CustomerServicePort.asmx
Type
ZipCode
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Type
CustomerName
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Click Get my balance.
The response is displayed in the Response text box: SUCCESS appears if the request is handled successfully; an error message appears if the request fails.
Send requests using the client application (adapter version)
To send requests using the client application (adapter version)
Open a command prompt, change the directory to <BizTalk Server install Directory>\SDK\Scenarios\SO\BTSSoln\PaymentTracker\bin\Debug and, then run the following command to start the PaymentTracker simulator:
BTSScnSOPaymentTracker.exe LastPaymentsInputQueue LastPaymentsOutputQueue <
Queue Manager Name> 5 [<
Channel Definition>]
Note
The channel definition is optional if it is not remote MQSeries Server.
- Leave the Payment Tracker simulator running.
Open a command prompt, change the directory to the <BizTalk Server install Directory>\SDK\Scenarios\SO\BTSSoln\SimpleClient\bin\Release, and then run the BTSScnSOSimpleClient.exe.
In the BTSScnSOSimpleClient.exe, send a request by SOAP transport using the as follows:
Type any characters in the RequestType, RequestSource, and RequestID text boxes.
Type any 16-digit number in the Account Number text box.
Select SOAP (WS Call) and Adapter in the Select Transport and Parameters group box.
Type the following URL in the URL text box, for example:
http://localhost/Microsoft.Samples.BizTalk.WoodgroveBank.OrchProxy.Adapter/CustomerServicePort.asmx
Type
ZipCode
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Type
CustomerName
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Click Get my balance.
The response is displayed in the Response text box: SUCCESS appears if the request is handled successfully; an error message appears if the request fails.
In the BTSScnSOSimpleClient.exe, send requests by MQSeries transport as follows:
Type any characters in the RequestType, RequestSource, and RequestID text boxes.
Type a 16-digit number in the Account Number text box.
Select MQSeries in the Select Transport and Parameters group box.
Type <Queue Manager Name> in the Queue Manager text box. QM_<Your Computer Name> is the default value for <Queue Manager Name>.
Type
AdapterSOAInputQueue
in the Input Queue text box.Type
AdapterSOAOutputQueue
in the Output Queue text box.Type <Channel Definition> in the Channel Definition box. S_<Your Computer Name>/TCP/<Your Computer Name>(1414) is the default value for <Channel Definition>.
Type
ZipCode
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Type
CustomerName
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Click Get my balance.
The response is displayed in the Response text box: SUCCESS appears if the request is handled successfully; an error message appears if the request fails.
Send requests using the client application (inline version)
To send requests using the client application (inline version)
Open a command prompt, change the directory to <BizTalk Server install Directory>\SDK\Scenarios\SO\BTSSoln\PaymentTracker\bin\Debug, and then run the following command to start the PaymentTracker simulator:
BTSScnSOPaymentTracker.exe LastPaymentsInputQueue LastPaymentsOutputQueue <
Queue Manager Name> 5 [<
Channel Definition>]
Note
The channel definition is optional if it is not remote MQSeries Server.
Note
Skip this step if the PaymentTracker simulator is already running.
- Leave the Payment Tracker simulator running.
In the BizTalk Server Administration Console, expand BTSScn.SO.CustomerService, click Receive Locations, right-click PaymentTrackingSystemOutputQueue in the right pane, and then click Disable.
Note
The adapter version and inline version uses the same MQSeries queue, LastPaymentsOutputQueue. To avoid the race condition between two versions, disable the adapter version's receive location listening on the MQSeries queue.
Open a command prompt, change the directory to the <BizTalk Server install Directory>\SDK\Scenarios\SO\BTSSoln\SimpleClient\bin\Release, and then run the BTSScnSOSimpleClient.exe.
In the BTSScnSOSimpleClient.exe, send a request by SOAP transport using the as follows:
Type any characters in the RequestType, RequestSource, and RequestID text boxes.
Type any 16-digit number in the Account Number text box.
Select SOAP (WS Call) and Inline in the Select Transport and Parameters group box.
Type the following URL in the URL text box, for example:
http://localhost/Microsoft.Samples.BizTalk.WoodgroveBank.OrchProxy.Inline/CustomerServicePort.asmx
Type
ZipCode
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Type
CustomerName
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Click Get my balance.
The response is displayed in the Response text box: SUCCESS appears if the request is handled successfully; an error message appears if the request fails.
In the BTSScnSOSimpleClient.exe, send requests by MQSeries transport as follows:
Type any characters in the RequestType, RequestSource, and RequestID text boxes.
Type a 16-digit number in the Account Number text box.
Select MQSeries in the Select Transport and Parameters group box.
Type <Queue Manager Name> in the Queue Manager text box. QM_<Your Computer Name> is the default value for <Queue Manager Name>.
Type
InlineSOAInputQueue
in the Input Queue text box.Type
InlineSOAOutputQueue
in the Output Queue text box.Type <Channel Definition> in the Channel Definition box. S_<Your Computer Name>/TCP/<Your Computer Name>(1414) is the default value for <Channel Definition>.
Type
ZipCode
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Type
CustomerName
in the Name text box under Authentication Elements, and then type any characters in the Value text box.Click Get my balance.
The response is displayed in the Response text box: SUCCESS appears if the request is handled successfully; an error message appears if the request fails.
See Also
Before Installing the Service Oriented Solution
How to Install the Stub Version of the Service Oriented Solution
How to Install the Inline and Adapter Versions of the Service Oriented Solution
Developer Machine Setup for the Service Oriented Solution