SoapService Class Reference

Provides a base class for all services.

Inherits from NSObject*

Properties

For more about Objective-C properties, see “Properties” in The Objective-C Programming Language.

serviceUrl

The URL of the service binding.

@property (retain) NSString* serviceUrl

namespace

The namespace of the web service.

@property (retain) NSString* namespace

username

The username used to authenticate each web service request.

@property (retain) NSString* username

password

The password used to authenticate each web service request.

@property (retain) NSString* password

headers

The SOAP headers passed with each request.

@property (retain) NSDictionary* headers

logging

Determines if console logging is turned on or off.

@property BOOL logging

defaultHandler

The default handler of the request.

@property (nonatomic, retain) id defaultHandler

Discussion

This handler is used when the one specified does not handle methods.

Instance methods

initWithUrl:

Initializes the service with a URL.

- (id) initWithUrl: (NSString*) url

Parameters

url
The URL of the web service.

initWithUsername:andPassword:

Initializes the service with a username and password.

- (id) initWithUsername: (NSString*) username andPassword: (NSString*) password

Parameters

username
The username used to autheticate against the service.
password
The password used to autheticate against the service.

service

Returns an instance of the service.

+ (SoapService*) service

serviceWithUsername:andPassword:

Creates an instance of the service with a username and password.

+ (SoapService*) serviceWithUsername: (NSString*) username andPassword: (NSString*) password
username
The username used to autheticate against the service.
password
The password used to autheticate against the service.