Versions Compared

Key

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

...

We need 2 JavaBean classes. We will implement the TrackingNumber bean for storing data extracted from the incoming XML request and we will implement the History bean to store data extracted from the response. These beans will then be used by the XSLT/StringTemplate templates to perform the transformations.

...

Anchor
History
History

Note how the History bean setTrackingNumbers method (below) parses the tracking-number history list from the endpoint response to produce a list of the TrackingNumber bean instances that can later be retrieved from the History bean via the getTrackingNumbers method to help perform the endpoint response transformation. So, we're reusing the TrackingNumber bean - it will actually be used in both transformations (request and response).

...