Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Configuring the .NET Client to use the WSAS Business Service

  1. In a browser, navigate to the URL: http://localhost/trade/Configuration.aspx
  2. In the Business Service list, select WSAS_BS, and then click Set.

Configuring the .NET Client to use the WSAS Order Processor Service

  1. In a browser, navigate to the URL: http://localhost/trade/Configuration.aspx
  2. 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

  1. In a text/xml editor, open C:\StockTraderDemo\trader_client\Trade\web.config.
  2. Locate the <federatedAuthentication> node.
  3. Replace the child <wsFederation> node with the following:
    Code Block
    <wsFederation passiveRedirectEnabled="true" issuer="https://localhost:9443/passivests" realm="http://localhost/Trade/" requireHttps="false"/>
    
  4. Locate the <issuerNameRegistry> node.
  5. Under the child <trustedIssuers> node, add the following child node:
    Code Block
    <add thumbprint="79af6b15468e02ef01e0d7e320a071e23d6e3ac2" name="CN=localhost" />
    
    Info
    titleNote

    This is the thumbprint for the Identity Server certificate.

  6. Save, and close web.config.
  7. Navigate to C:\stonehenge\stocktrader\wsas\identity\resources
  8. Double-click localhost.crt.
  9. In the Certificate window, on the General tab, click the Install Certificate... button.
  10. In the Certificate Import Wizard click Next.
  11. On the Certificate Store page, click Place all certificates in the following store and then click Browse...
  12. In the Select Certificate Store window, check the Show physical stores box.
  13. In the list, expand Trusted Root Certification Authorities and then click Local Computer.
  14. In the Select Certificate Store window, click OK.
  15. On the Certificate Store page click Next, and then click Finish on the following page.
  16. Repeat the import process, but import to the Trusted People > Local Computer store.
  17. Start WSO2 Identity Server.

Verifying the Configuration

  1. In a browser, navtigate to the URL: http://localhost/trade/Portfolio.aspx
    Note
    titleWarning

    An error here likely indicates that either the Business Service, or the Active STS are not configured or functioning properly

  2. If prompted, log-in with the following credentials:

    Item

    Value

    User Id

    uid:0

    Password

    xxx

    Note
    titleWarning

    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

  3. In the table, under the Trade column, click the Sell button next to one of the stocks listed.
  4. On the Trade Confirmation page, click the Sell button to confirm the trade.
  5. In the toolbar, click the Account button.
    Info
    titleNote

    A Trade Alert message should appear at the top of the page indicating that the order has been processed successfully.

    Note
    titleWarning

    If a Trade Alert message does not appear, the Order Processor Service is likely not configured or functioning properly.

  6. Verify that the Order Status for the trade you just made is completed.
    Note
    titleWarning

    If the Order Status remains open for a long period of time, the Order Processor Service is likely not configured or functioning properly.