|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SoapMessage
Represents an abstraction for SOAP messages, providing access to a SOAP Envelope. The contents of the SOAP body can
be retrieved by getPayloadSource() and getPayloadResult() on
WebServiceMessage, the super-interface of this interface.
WebServiceMessage.getPayloadSource(),
WebServiceMessage.getPayloadResult(),
getEnvelope()| Method Summary | |
|---|---|
Attachment |
addAttachment(java.io.File file)
Add an attachment to the SoapMessage, taking the content from a java.io.File. |
Attachment |
addAttachment(org.springframework.core.io.InputStreamSource inputStreamSource,
java.lang.String contentType)
Add an attachment to the SoapMessage, taking the content from an
org.springframework.core.io.InputStreamResource. |
java.util.Iterator |
getAttachments()
Returns an Iterator over all Attachments that are part of this
SoapMessage. |
SoapEnvelope |
getEnvelope()
Returns the SoapEnvelope associated with this SoapMessage. |
java.lang.String |
getSoapAction()
Get the SOAP Action for this messaage, or null if not present. |
SoapBody |
getSoapBody()
Returns the SoapBody associated with this SoapMessage. |
SoapHeader |
getSoapHeader()
Returns the SoapHeader associated with this SoapMessage. |
SoapVersion |
getVersion()
Returns the SOAP version of this message. |
| Methods inherited from interface org.springframework.ws.WebServiceMessage |
|---|
getPayloadResult, getPayloadSource, writeTo |
| Method Detail |
|---|
SoapEnvelope getEnvelope()
SoapEnvelope associated with this SoapMessage.
java.lang.String getSoapAction()
null if not present.
SoapBody getSoapBody()
SoapBody associated with this SoapMessage. This is a convenience method for
getEnvelope().getBody().
SoapEnvelope.getBody()SoapHeader getSoapHeader()
SoapHeader associated with this SoapMessage. This is a convenience method
for getEnvelope().getHeader().
SoapEnvelope.getHeader()SoapVersion getVersion()
SoapVersion.SOAP_11,
SoapVersion.SOAP_12java.util.Iterator getAttachments()
Iterator over all Attachments that are part of this
SoapMessage.
Iterator over all AttachmentsAttachment
Attachment addAttachment(java.io.File file)
throws AttachmentException
SoapMessage, taking the content from a java.io.File.
The content type will be determined by the name of the given content file. Do not use this for temporary files
with arbitrary filenames (possibly ending in ".tmp" or the like)!
file - the File resource to take the content from
AttachmentException - in case of errorsaddAttachment(InputStreamSource, String)
Attachment addAttachment(org.springframework.core.io.InputStreamSource inputStreamSource,
java.lang.String contentType)
SoapMessage, taking the content from an
org.springframework.core.io.InputStreamResource.
Note that the InputStream returned by the source needs to be a fresh one on each call, as
underlying implementations can invoke getInputStream() multiple times.
inputStreamSource - the resource to take the content from (all of Spring's Resource implementations can be
passed in here)contentType - the content type to use for the element
AttachmentException - in case of errorsaddAttachment(java.io.File),
Resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||