The Java API for XML Messaging ("JAXM") provides a set of tools to construct and send Simple Object Access Protocol (SOAP) messages. The API provides two main ways to construct SOAP messages: creating an object tree where each object represents part of the message (for example, SOAPBody, SOAPBodyElement) or using the setContents (javax.xml.transform.Source) method on the SOAPPart object. The javax.xml.transform.Source object of setContent is a handle on an XML input source - for example, an XML file. However, this XML input source must represent a valid SOAP message. This paper illustrates a way to use an existing XML file as part of the SOAP message's body.
Related white papers
Why energy efficiency matters for midsized company growth
This paper looks at what green means to your business and looks at the major operational concerns. Addresses what your company can do to be greener.
IT Optimisation: the low fat approach to IT
A typical business spends 80% of its IT budget - managing and operating its IT infrastructure, rather than investing in it.This paper looks at ways you can optimise your IT...
IDC Executive Brief: The Rising Concerns Over Endpoint Security
Today's IT environment is increasingly vulnerable to threats and attacks, both from within and without. The most vulnerable node in the enterprise network is the endpoint. This IDC executive brief...
IBM Think Tank: Insights for Your Business
Think Tank has been designed specifically for businesses like yours. We aim to give you simple, clear advice and information that gets to the point fast. Our insights could make...
Protecting key assets (security)
Key infrastructure elements must be secured against outages, damage and sabotage. Siemens offers comprehensive solutions from healthcare and power generation to water supply, transportation, and industrial production, to telecommunications.
Identity and Security Management and Strong Information Technology Goverance
A total identity and access management (IAM) – driven goverance, risk and compliance (GRC) solution should ensure foolproof and accurate measurements of policies and practises across the enterprise. This IDC...
Ensuring Data Protection for Growing Business
Small and midsize businesses have become increasingly reliant on IT. In this paper, we look at how SMBs often progress through the IT adoption cycle, and some of the operational...

