Configuring the .NET Client to use the WSAS Business Service
- In a browser, navigate to the URL: http://localhost/trade/Configuration.aspx
- In the Business Service list, select WSAS_BS, and then click Set.
Configuring the .NET Client to use the WSAS Order Processor Service
- In a browser, navigate to the URL: http://localhost/trade/Configuration.aspx
- In the Order Processing Service list, select WSAS_OPS, and then click Set.
Configuring the .NET Client to use WSO2 Identity Server as the Passive STS
- In a text/xml editor, open C:\StockTraderDemo\trader_client\Trade\web.config.
- Locate the <federatedAuthentication> node.
- Replace the child <wsFederation> node with the following:
Code Block <wsFederation passiveRedirectEnabled="true" issuer="https://localhost:9443/passivests" realm="http://localhost/Trade/" requireHttps="false"/>
- Locate the <issuerNameRegistry> node.
- Under the child <trustedIssuers> node, add the following child node:
Code Block <add thumbprint="79af6b15468e02ef01e0d7e320a071e23d6e3ac2" name="CN=localhost" />
Info title Note This is the thumbprint for the Identity Server certificate.
- Save, and close web.config.
- Navigate to C:\stonehenge\stocktrader\wsas\identity\resources
- Double-click localhost.crt.
- In the Certificate window, on the General tab, click the Install Certificate... button.
- In the Certificate Import Wizard click Next.
- On the Certificate Store page, click Place all certificates in the following store and then click Browse...
- In the Select Certificate Store window, check the Show physical stores box.
- In the list, expand Trusted Root Certification Authorities and then click Local Computer.
- In the Select Certificate Store window, click OK.
- On the Certificate Store page click Next, and then click Finish on the following page.
- Repeat the import process, but import to the Trusted People > Local Computer store.
- Start WSO2 Identity Server.
Verifying the Configuration
- In a browser, navtigate to the URL: http://localhost/trade/Portfolio.aspx
Note title Warning An error here likely indicates that either the Business Service, or the Active STS are not configured or functioning properly
- If prompted, log-in with the following credentials:
Item
Value
User Id
uid:0
Password
xxx
Note title Warning If you are not prompted, you are already logged in. An error during log-in likely indicates that the Passive STS is not configured or functioning properly
- In the table, under the Trade column, click the Sell button next to one of the stocks listed.
- On the Trade Confirmation page, click the Sell button to confirm the trade.
- In the toolbar, click the Account button.
Info title Note A Trade Alert message should appear at the top of the page indicating that the order has been processed successfully.
Note title Warning If a Trade Alert message does not appear, the Order Processor Service is likely not configured or functioning properly.
- Verify that the Order Status for the trade you just made is completed.
Note title Warning If the Order Status remains open for a long period of time, the Order Processor Service is likely not configured or functioning properly.