public class SoapResponseArguments extends ResponseArguments
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isField
Flag indicating that we are not writing a table field.
|
private org.apache.axiom.om.OMNamespace |
nsXSD
The XSD namespace.
|
private org.apache.axiom.om.OMNamespace |
nsXSI
The XSI namespace.
|
private javax.wsdl.Output |
output
The output defined in this operation's WSDL.
|
private java.lang.String |
requestID
The request ID for the SOAP request to which these arguments belong.
|
private org.apache.axiom.soap.SOAPEnvelope |
response
The envelope holding the response.
|
private org.apache.axiom.soap.SOAPFactory |
soapFactory
SOAP factory to create new elements.
|
private java.util.Map<java.lang.String,WsdlConfig.BaseSchemaType> |
soapParams
The SOAP output parameters' schema, by their name.
|
private org.apache.axiom.om.OMElement |
soapResponse
The root element defining the response, in the SOAP body.
|
private WsdlConfig |
wsdlConfig
The WSDL configuration.
|
| Constructor and Description |
|---|
SoapResponseArguments(javax.wsdl.Operation soapOperation,
WsdlConfig wsdlConfig,
boolean pasoe)
Initialize this instance, to write output parameters for the SOAP operation.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushArguments(java.io.OutputStream stream,
javax.servlet.http.HttpServletResponse response)
Flush the arguments to the response stream (i.e.
|
protected boolean |
ignoreUnknown()
Determine if unknown values must be ignored.
|
(package private) void |
setRequestId(java.lang.String requestID)
Set the request ID for the executed SOAP service, to which this response belongs.
|
protected java.lang.String |
toString(BaseDataType bdt)
Get the string representation of this instance.
|
protected void |
writeArgumentInt(java.io.OutputStream stream,
java.lang.String target,
java.lang.String sval,
java.lang.Object val,
javax.servlet.http.HttpServletResponse response)
Serialize this argument's value, considering the target format.
|
protected java.lang.Object |
writeDataSet(java.lang.String target,
DataSetContainer val)
Serialize the specified dataset.
|
protected java.lang.Object |
writeDataSet(java.lang.String target,
DatasetWrapper val)
Serialize the specified dataset.
|
java.lang.String |
writeError(LegacyError err)
Serialize the error, to be included in the response.
|
void |
writeError(RequestArgumentError err,
boolean pasoe)
Serialize the error, to be included in the response.
|
void |
writeError(java.lang.String msg,
java.lang.String reason)
Serialize the error, to be included in the response.
|
void |
writeError(java.lang.String returnValue,
java.lang.String reason,
boolean server)
Serialize the error, to be included in the response.
|
protected void |
writeExtentArgument(java.io.OutputStream stream,
java.lang.String target,
java.lang.Object val,
javax.servlet.http.HttpServletResponse response)
Serialize this argument's values, considering the target format.
|
void |
writeProcedureID(java.lang.String connectionID,
java.lang.String resourceID,
int agentId,
javax.wsdl.BindingOperation binding)
Write the persistent procedure ID to the SOAP header, as a response for a persistent procedure
request.
|
protected java.lang.Object |
writeTable(java.lang.String target,
TableWrapper val)
Serialize the specified table.
|
writeArgument, writeArguments, writeArguments, writeArgumentsprivate final org.apache.axiom.soap.SOAPEnvelope response
private final org.apache.axiom.om.OMElement soapResponse
private final org.apache.axiom.om.OMNamespace nsXSI
private final org.apache.axiom.om.OMNamespace nsXSD
private final java.util.Map<java.lang.String,WsdlConfig.BaseSchemaType> soapParams
private final org.apache.axiom.soap.SOAPFactory soapFactory
private final javax.wsdl.Output output
private final WsdlConfig wsdlConfig
private java.lang.String requestID
private boolean isField
public SoapResponseArguments(javax.wsdl.Operation soapOperation,
WsdlConfig wsdlConfig,
boolean pasoe)
soapOperation - The SOAP operation as defined in the WSDL.wsdlConfig - The WSDL configuration.pasoe - Flag indicating that the remote appserver is in PASOE mode.public void writeError(RequestArgumentError err, boolean pasoe)
err - The request argument error.pasoe - Flag indicating that the remote appserver is in PASOE mode.public java.lang.String writeError(LegacyError err)
writeError in class ResponseArgumentserr - The error.public void writeError(java.lang.String msg,
java.lang.String reason)
msg - The message to be used as the SOAP fault code ('faultString').reason - The message to be used as the SOAP fault detail.public void writeError(java.lang.String returnValue,
java.lang.String reason,
boolean server)
returnValue - The message to be used as the SOAP fault code ('faultString').reason - The message to be used as the SOAP fault detail.server - Flag indicating if this is a server error.public void writeProcedureID(java.lang.String connectionID,
java.lang.String resourceID,
int agentId,
javax.wsdl.BindingOperation binding)
connectionID - The connection ID used by this request.resourceID - The persistent procedure ID.agentId - The agent ID where this remote procedure was created.binding - The operation definition in the WSDL binding, for the response.protected java.lang.String toString(BaseDataType bdt)
toString in class ResponseArgumentsbdt - The instance.DatatypeConverter.protected boolean ignoreUnknown()
ignoreUnknown in class ResponseArgumentsfalse.protected void writeExtentArgument(java.io.OutputStream stream,
java.lang.String target,
java.lang.Object val,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
writeExtentArgument in class ResponseArgumentsstream - The response stream.target - The argument's encoded target.val - The argument's value.response - The HTTP response.java.io.IOExceptionprotected void writeArgumentInt(java.io.OutputStream stream,
java.lang.String target,
java.lang.String sval,
java.lang.Object val,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
writeArgumentInt in class ResponseArgumentsstream - The response stream.target - The argument's encoded target.sval - The argument's string-converted value.val - The argument's value.response - The HTTP response.java.io.IOExceptionprotected void flushArguments(java.io.OutputStream stream,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
flushArguments in class ResponseArgumentsstream - The stream to write the parameters.response - The servlet response.java.io.IOExceptionprotected java.lang.Object writeTable(java.lang.String target,
TableWrapper val)
writeTable in class ResponseArgumentstarget - The target OUTPUT parameter.val - The table result set, as received from the remote side.protected java.lang.Object writeDataSet(java.lang.String target,
DatasetWrapper val)
writeDataSet in class ResponseArgumentstarget - The target OUTPUT parameter.val - The dataset, as received from the remote side.protected java.lang.Object writeDataSet(java.lang.String target,
DataSetContainer val)
writeDataSet in class ResponseArgumentstarget - The target OUTPUT parameter.val - The dataset, as received from the remote side.void setRequestId(java.lang.String requestID)
requestID - The request ID.