org.apache.soap.rpc
Class Response
java.lang.Object
|
+--org.apache.soap.rpc.RPCMessage
|
+--org.apache.soap.rpc.Response
- All Implemented Interfaces:
- Serializer
- public class Response
- extends RPCMessage
A Response
object represents an RPC response. Both
the client and the server use Response
objects to represent
the result of a method invocation.
- Author:
- Matthew J. Duftler (duftler@us.ibm.com), Sanjiva Weerawarana (sanjiva@watson.ibm.com)
Constructor Summary |
Response(java.lang.String targetObjectURI,
java.lang.String methodName,
Fault fault,
java.util.Vector params,
Header header,
java.lang.String encodingStyleURI)
Use this constructor when things didn't go so well. |
Response(java.lang.String targetObjectURI,
java.lang.String methodName,
Parameter returnValue,
java.util.Vector params,
Header header,
java.lang.String encodingStyleURI)
Use this constructor when everything went well. |
Methods inherited from class org.apache.soap.rpc.RPCMessage |
buildEnvelope, extractFromEnvelope, getEncodingStyleURI, getFullTargetObjectURI, getHeader, getMethodName, getParams, getTargetObjectURI, marshall, setEncodingStyleURI, setHeader, setMethodName, setParams, setTargetObjectURI, toString, unmarshall |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Response
public Response(java.lang.String targetObjectURI,
java.lang.String methodName,
Parameter returnValue,
java.util.Vector params,
Header header,
java.lang.String encodingStyleURI)
- Use this constructor when everything went well.
Response
public Response(java.lang.String targetObjectURI,
java.lang.String methodName,
Fault fault,
java.util.Vector params,
Header header,
java.lang.String encodingStyleURI)
- Use this constructor when things didn't go so well.
setReturnValue
public void setReturnValue(Parameter returnValue)
getReturnValue
public Parameter getReturnValue()
setFault
public void setFault(Fault fault)
getFault
public Fault getFault()
generatedFault
public boolean generatedFault()
buildEnvelope
public Envelope buildEnvelope()
extractFromEnvelope
public static Response extractFromEnvelope(Envelope env,
SOAPMappingRegistry smr)
throws java.lang.IllegalArgumentException
Copyright © 2001 Oracle SOAP. All Rights Reserved.