Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Performs a shallow copy of the SOAPMessage.
|
SOAPElement |
createHeader(org.w3c.dom.Element value)
Inserts the given Element as a SOAP header.
|
SOAPElement |
createHeader(javax.xml.namespace.QName name)
Creates an empty SOAP header holder that can be filled and then
attached to the SOAP message using
createHeader.
|
SOAPElement |
createHeader(javax.xml.namespace.QName name,
java.lang.String prefix)
Creates an empty SOAP header holder that can be filled and then
attached to the SOAP message using
createHeader.
|
SOAPElement |
getBody()
Returns the body of the SOAP message.
|
SOAPPartsIterator |
getBodyPartNames()
Gets the names of the body parts of the message.
|
java.util.Iterator |
getBodyParts()
Get the body parts of the message as an iterator across all SOAPElements
in the message.
|
javax.xml.transform.Source |
getEnvelope()
Returns a Source representation of the SOAP envelope.
|
SOAPElement |
getHeader(javax.xml.namespace.QName name)
Returns the SOAP header with the given eleemnt QName.
|
java.util.Set |
getHeaderNames()
Returns the names of all SOAP headers.
|
java.lang.String |
getMessageName()
Returns the name of the message in WSDL.
|
javax.xml.namespace.QName |
getMessageType()
Returns the QName of the schema type of the message.
|
java.lang.String |
getStyle()
Returns the encoding style, RPC or DOCUMENT, of the message.
|
java.lang.Object |
getTransportProperty(java.lang.String propertyName)
Returns the transport specific property with the given name.
|
SOAPVersion |
getVersion()
Returns the SOAP version.
|
boolean |
hasChanged()
Returns whether the message has changed since it was constructed.
|
boolean |
isFault()
Returns whether or not this SOAP message is a fault.
|
boolean |
isVersionKnown()
Returns whether the version of the message is known at this time.
|
SOAPElement |
removeHeader(javax.xml.namespace.QName name)
Removes the SOAP header with the given QName.
|
void |
setEnvelope(javax.xml.transform.Source envelope)
Replaces the SOAP envelope entirely.
|
void |
setEnvelope(javax.xml.transform.Source envelope,
SOAPVersion version)
Replaces the SOAP envelope entirely.
|
void |
setMessageName(java.lang.String messageName)
Sets the name of the message in WSDL.
|
void |
setMessageType(javax.xml.namespace.QName messageType)
Sets the QName of the schema type of the message.
|
void |
setPartNames(java.util.List<java.lang.String> partNames)
Sets the names of the parts in the message.
|
void |
setStyle(java.lang.String style)
Sets the encoding style, RPC or DOCUMENT, of the message.
|
void |
setTransportProperties(java.util.Map properties)
Performs a one step replacement of transport properties.
|
void |
setTransportProperty(java.lang.String propertyName,
java.lang.Object property)
Associates a transport specific property with the message.
|
void |
setVersion(SOAPVersion version)
Changes the version of the message.
|
addAttachment, addPart, arePartsEmpty, canCarryBindingHeaders, canNormalize, copy, getAttachments, getBindingURI, getContent, getContentPartName, getContentType, getCorrelationID, getID, getPart, getPartNames, getParts, getProperties, getProperty, getPropertyNames, getSecuritySubject, getTransportHeaders, isNormalized, normalize, normalizeCopy, normalizeCopyToXML, normalizeToXML, setAttachments, setContent, setContentPartName, setContentType, setCorrelationID, setID, setProperties, setProperty, setSecuritySubject, setTransportHeaders
boolean isVersionKnown()
SOAPVersion getVersion() throws GException
GException
- Thrown if parsing was required to find the version
and an error was encountered during that process.void setVersion(SOAPVersion version) throws GException
version
- SOAPVersion.GException
- Thrown if an attempt is made to change the known
version of the message.SOAPElement getBody() throws GException
GException
- Thrown if unable to return the body. Maybe be caused
by a badly formed SOAP message.java.util.Iterator getBodyParts() throws GException
GException
- Thrown if unable to return the parts. Maybe
caused by a badly formed SOAP message.SOAPPartsIterator getBodyPartNames() throws GException
GException
- Thrown if unable to return the part names. Maybe
caused by a badly formed SOAP message.SOAPElement createHeader(javax.xml.namespace.QName name) throws GException
QName
- QName of the header element.GException
- if unable to create the header.SOAPElement createHeader(javax.xml.namespace.QName name, java.lang.String prefix) throws GException
name
- QName of the header element.prefix
- Prefix of the header's namespace.GException
- if unable to create the header.SOAPElement createHeader(org.w3c.dom.Element value) throws GException
value
- Element to be used as header.GException
- Thrown if unable to create the header.SOAPElement getHeader(javax.xml.namespace.QName name) throws GException
name
- QName of the header to return.GException
- Thrown if an error occured trying to return the
header. Probably due to a badly formed SOAP message.SOAPElement removeHeader(javax.xml.namespace.QName name) throws GException
name
- QName of the header to remove.GException
- Thrown if unable to remove the header. Probably due
to a badly formed SOAP message.java.util.Set getHeaderNames() throws GException
GException
- Thrown if unable to return the list. Probably due
to a badly formed SOAP message.java.lang.Object getTransportProperty(java.lang.String propertyName)
propertyName
- Name of the property.void setTransportProperty(java.lang.String propertyName, java.lang.Object property)
propertyName
- Name of the transport specific property.property
- Value of the property.void setTransportProperties(java.util.Map properties)
properties
- Map of transport properties.boolean hasChanged()
javax.xml.transform.Source getEnvelope() throws GException
GException
- Thrown if unable to create the Source. Probably
due to a badly formed SOAP message.void setEnvelope(javax.xml.transform.Source envelope) throws GException
envelope
- Source holding the new SOAP envelope.GException
- Thrown if unable to replace the envelope. Most
likely due to an invalid SOAP envelope being input.void setEnvelope(javax.xml.transform.Source envelope, SOAPVersion version) throws GException
envelope
- Source holding the new SOAP envelope.version
- SOAP version of the envelope.GException
- Thrown if unable to replace the envelope. Most
likely due to an invalid SOAP envelope being input.boolean isFault() throws GException
void setStyle(java.lang.String style)
style
- RPC or DOCUMENT.java.lang.String getStyle()
void setMessageType(javax.xml.namespace.QName messageType)
messageType
- QName of the schema type.void setPartNames(java.util.List<java.lang.String> partNames)
partNames
- List of part names.javax.xml.namespace.QName getMessageType()
void setMessageName(java.lang.String messageName)
messageName
- Name of the message.java.lang.String getMessageName()
java.lang.Object clone()
?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.