Running the Poll scenario

  1. Start
    • WebSphere Interchange Server if not already running.
    • XML Adapter.
    • Web server.
    • Start one instance of the Visual Test Connector.
  2. Simulate the Port connector:

    Using the Test Connector, define a profile for the "PortConnector". Select FILE -> CONNECT AGENT from the Test Connector's menu to begin simulating the agent.

  3. Poll sample data:
    • For NT/2000:

      The PollFrequency has already been set to key. From the command window in which the XML Adapter was started, type the letter 'p' followed by the Enter key.

    • For UNIX:

      Stop the XML Adapter. Open the XML Adapter Controller, change the PollFrequency to a number like 30000 (polls/millisecond). Restart the connector, and wait 30 seconds for the connector to poll.

  4. Accept the request using the Port connector:

    The XMLConnector will receive an XML document, convert it to a CrossWorlds business object and pass it to WebSphere InterChange Server. WebSphere ICS passes the event to two different collaborations that have subscriptions for this event. The collaborations will pass the events to the PortConnector. Accept the requests using the Test Connector, and reply with a successful response to both of the events.

  5. Check for successful processing:

    To ensure successful processing, check that the data in the accepted request in the Test Connector and the Archive Directory correspond to the events from the SamplePollingInput.xml file provided in the sample.

Summary:

If you've performed all the above steps successfully, you should have a working sample scenario that uses the XML Adapter and XML DataHandler to exchange XML documents between IBM WebSphere ICS and a Webserver.

Copyright IBM Corporation 1997, 2004. All Rights Reserved.