This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Configuring .NET Client to use WSO2 WSAS Services
Skip to end of metadata
Go to start of metadata

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:
    <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:
    <add thumbprint="79af6b15468e02ef01e0d7e320a071e23d6e3ac2" name="CN=localhost" />
    

    Note

    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

    Warning

    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

    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

  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.

    Note

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

    Warning

    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.

    Warning

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

  • No labels