The SoapRequest class is responsible for creating, managing and processing requests made to web services. It creates the connection, and once results are retrieved, deserializes the results into objects. In the event that an error occurs, it will send an NSError* object to the handler's onerror method. In the event of a SOAP fault, it will send a SoapFault object to the handler's onfault method. Otherwise, the request is successful and the resulting object is sent to the handler's onsuccess method.
The URL of the current SOAP request.
@property (retain, nonatomic) NSURL* url
The name of the SOAP action to be performed
@property (retain, nonatomic) NSString* soapAction;
Sets or gets the username used to authenticate the request.
@property (retain, nonatomic) NSString* username
Sets or gets the password used to authenticate the request.
@property (retain, nonatomic) NSString* password
The XML data posted to the request.
@property (retain, nonatomic) id postData
The stored data as it is received by the request.
@property (retain, nonatomic) NSMutableData* receivedData
The object that will handle the request.
@property (retain, nonatomic) SoapHandler* handler
The name of or the allocation instance of the object into which the results are deserialized.
@property (retain, nonatomic) id deserializeTo
The selector to be performed once results are received.
@property SEL action
Turns logging of the request on or off.
@property BOOL logging
The default handler to use if another is not specified or if that handler's methods are not implemented.
@property (retain, nonatomic) id<SoapDelegate> defaultHandler
Cancels the current request.
- (BOOL)cancel
Sends the request.
- (void)send
Handles the error if encountered once the response is received.
- (void)handleError:(NSError*)error
Handles a SOAP fault if one is received from the response.
- (void)handleFault:(SoapFault*)fault
Creates a new SoapRequest and returns it.
+ (SoapRequest*) create: (SoapHandler*) handler urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo
Creates a new SoapRequest and returns it.
+ (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo;
Creates a new SoapRequest and returns it.
+ (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action service: (SoapService*) service soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo;