Skip to main content

Using Source objects with JAX-WS Dispatch

A Dispatch object can accept and return objects that are derived from the javax.xml.transform.Source interface. Source objects are low level objects that hold XML documents. Each Source implementation provides methods that access the stored XML documents and manipulate its contents. The following objects implement the Source interface:

  • DOMSource

  • SAXSource

  • StreamSource

    Information noteNote: When using Source objects the developer is responsible for ensuring that all required binding specific wrappers are added to the message. For example, when interacting with a service expecting SOAP messages, the developer must ensure that the required SOAP envelope is added to the outgoing request and that the SOAP envelope's contents are correct.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!