public class SOAPExchange extends AbstractExchange
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOCUMENT_STYLE
Document SOAP style - "document"
|
static java.lang.String |
ENCODED_USE
Encoded SOAP use - "encoded"
|
static java.lang.String |
LITERAL_USE
Literal SOAP use - "literal"
|
static java.lang.String |
RPC_STYLE
RPC SOAP style - "rpc"
|
static java.lang.String |
UNKNOWN_STYLE
Unknown style
|
static java.lang.String |
UNKNOWN_USE
Unknown SOAP use
|
Constructor and Description |
---|
SOAPExchange(SOAPMessageFactory factory)
Creates the SOAPExchange.
|
SOAPExchange(SOAPMessageFactory factory,
SOAPVersion version)
Creates the SOAPExchange of the specified SOAP version.
|
Modifier and Type | Method and Description |
---|---|
SOAPMessage |
createFault(FaultInformation faultInfo,
javax.xml.transform.Source detail)
Creates a SOAP fault from the given content.
|
protected Message |
createMessage()
Creates a message using the version of the exchange.
|
java.lang.String |
getStyle()
Returns the style of the exchange which is dictated by the SOAP binding.
|
java.lang.String |
getUse()
Returns the use of the exchange which is dictated by the SOAP binding.
|
SOAPVersion |
getVersion()
Returns the SOAP version of the exchange.
|
void |
setFactory(SOAPMessageFactory factory)
Configures the SOAPMessageFactory used to create SOAP messages.
|
void |
setMessage(SOAPMessage msg,
ParameterType pType)
Adds a SOAP message to the exchange.
|
void |
setStyle(java.lang.String style)
Configures the style of the exchange which is dictated by the SOAP binding.
|
void |
setUse(java.lang.String use)
Configures the use of the exchange which is dictated by the SOAP binding.
|
void |
setVersion(SOAPVersion version)
Configures the SOAP version of the exchange.
|
addPart, arePartsEmpty, clearMessage, createMessage, getAuditLogger, getBinding, getEndpoint, getEndpointName, getError, getExchangeID, getFaultEndpoint, getFaultMessage, getInMessage, getInterfaceName, getOperationName, getOutMessage, getPart, getPartNames, getParts, getPattern, getProperties, getProperty, getPropertyNames, getResponseEndpoint, getServiceName, getStatus, isAsync, setAsync, setAuditLogger, setBinding, setEndpoint, setEndpointName, setError, setExchangeID, setFaultEndpoint, setFaultMessage, setInMessage, setInterfaceName, setMessage, setMessageImpl, setOperationName, setOutMessage, setPattern, setProperties, setProperty, setResponseEndpoint, setServiceName, setStatus
public static final java.lang.String DOCUMENT_STYLE
public static final java.lang.String RPC_STYLE
public static final java.lang.String UNKNOWN_STYLE
public static final java.lang.String LITERAL_USE
public static final java.lang.String ENCODED_USE
public static final java.lang.String UNKNOWN_USE
public SOAPExchange(SOAPMessageFactory factory, SOAPVersion version)
factory
- SOAPMessageFactory used to create messages in the
exchange.version
- SOAPVersion of the exchange.public SOAPExchange(SOAPMessageFactory factory)
factory
- SOAPMessageFactory used to create messages in the
exchange.public void setFactory(SOAPMessageFactory factory)
factory
- SOAPMessageFactory used to create SOAP messages.public SOAPVersion getVersion() throws GException
GException
- TODOpublic java.lang.String getStyle()
public void setStyle(java.lang.String style)
style
- Style of the exchange, see DOCUMENT_STYLE and RPC_STYLE.public java.lang.String getUse()
public void setUse(java.lang.String use)
use
- Use of the exchange, see LITERAL_USE and ENCODED_USE.public void setVersion(SOAPVersion version)
version
- SOAPVersion of the exchange.public SOAPMessage createFault(FaultInformation faultInfo, javax.xml.transform.Source detail) throws GException
faultInfo
- FaultInformation holding core fault parameters. Required.detail
- Source holding application fault information. Optional.GException
- Thrown if unable to create the fault.
Most likely caused by the absence of a fault
code or an invalid detail.public void setMessage(SOAPMessage msg, ParameterType pType) throws GException
msg
- SOAPMessage to add to the exchange.pType
- ParameterType of the message being added to the exchange.GException
- Thrown if unable to add the message to the exchange.protected Message createMessage() throws GException
createMessage
in class AbstractExchange
GException
- Thrown if unable to create the message.?? 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.