A representation of a method invocation on a web service.
 An instance of this interface is returned as a result of making
 an asynchronous call and can be queried for status of the
 call.
[scriptable, uuid(87d87900-f102-4a15-b345-7b77a49d2df2)]
interface nsIWebServiceCallContext : nsISupports

Constants

 
 Possible values of the <code>status</code> attribute. A pending
 call has a status of PENDING. A completed call has a status of
 SUCCEEDED or FAILED depending on the result of the call.
const PRUint32 PENDING = 0

          
const PRUint32 SUCCEEDED = 1

          
const PRUint32 FAILED = 2

          
const PRUint32 ABORTED = 3

Attributes

 The name of the method that was invoked.
readonly attribute AString methodName
 The WSDL operation that correpsonds to the method being invoked.

 @see nsIWSDLOperation
readonly attribute nsIWSDLOperation operation
 The exception generated by the call if the status is FAILURE.
 The exception object can be introspected for more information.
 The <code>data</code> member can be QIed to a 
 <code>nsISOAPFault</code> instance for calls that use a
 SOAP binding.
readonly attribute nsIException pendingException
 The proxy object on which the call was made.
 
 @see nsIWebServiceProxy
readonly attribute nsIWebServiceProxy proxy
 The status of the call, whether pending, completed successfully
 or completed with a fault.
readonly attribute PRUint32 status

Methods

 Called to abort a pending call. If the call is still pending,
 its callback instance's <code>onError</code> will be invoked,
 passing in the specified exception.

 @param error The exception passed to the callback instance's
              <code>onError</code> method.
void abort(in nsIException error)