Running the Namespace Component Tests
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The following procedure shows how you can run all four of the test scenarios for the Microsoft ESB Guidance Namespace Component sample.
To run the Namespace Component sample test scenarios
- Before you run this sample for the first time, make sure that the receive location and send port URL point to the appropriate subfolders in the source distribution files. Specify the subfolder \Source\Samples\Namespace\Test\Filedrop\In for the receive location and the subfolder \Source\Samples\Namespace\Test\Filedrop\Out for the send port URL.
- If the GlobalBank.ESB application is not already running, use the BizTalk Administration Console to start it.
- Make a copy of the file named TEST_Add_to_PassThrough.0000.ns.xml (located in the \Source\Samples\Namespace\Test\Data\ subfolder of your ESB installation folder), and rename the copy by removing the "TEST_" prefix.
- Copy the renamed file into the \Source\Samples\Namespace\Test\Filedrop\In subfolder.
- The ESB picks up the message, adds a namespace to it, and drops the updated message into the \Source\Samples\Namespace\Test\Filedrop\Out subfolder. Open the input and output files in a text editor to see the effect of this test.
- Now run the second test. Make a copy of the file named TEST_Add_to_Remove.0000.ns.xml and rename it by removing the "TEST_" prefix.
- Copy the renamed file into the \Source\Samples\Namespace\Test\Filedrop\In subfolder.
- The ESB picks up the message, adds a namespace to it, removes the new namespace, and drops the updated message into the \Source\Samples\Namespace\Test\Filedrop\Out subfolder. Open the input and output files in a text editor to see the effect of this test.
- Now run the third test. Make a copy of the file named TEST_PassThrough_to_Remove.0000.ns.xml and rename it by removing the "TEST_" prefix.
- Copy the renamed file into the \Source\Samples\Namespace\Test\Filedrop\In subfolder.
- The ESB picks up the message, removes the existing namespace, and drops the updated message into the \Source\Samples\Namespace\Test\Filedrop\Out subfolder. Open the input and output files in a text editor to see the effect of this test.
- Finally, run the fourth test. Make a copy of the file named TEST_AddViaExtraction_to_PassThrough.0000.ns.xml and rename it by removing the "TEST_" prefix.
- Copy the renamed file into the \Source\Samples\Namespace\Test\Filedrop\In subfolder.
- The ESB picks up the message, extracts the element specified in the ExtractionNodeXPath property, creates a message from this element with the specified namespace values, and drops the updated message into the \Source\Samples\Namespace\Test\Filedrop\Out subfolder. Open the input and output files in a text editor to see the effect of this test.