# GWSBinding class documentation

### Authors

Richard Frith-Macdonald (`rfm@gnu.org`)

Version: 25485

Date: 2007-09-14 13:54:55 +0100 (Fri, 14 Sep 2007)

Copyright: (C) 2008 Free Software Foundation, Inc.

# Software documentation for the GWSBinding class

## GWSBinding : NSObject

> Declared in:
>   GWSBinding.h

Encapsulates a WSDL binding.
Method summary

- -documentation
- -extensibility
- -name
- -operationWithName:create:
- -operations
- -removeOperationNamed:
- -setDocumentation:
- -setExtensibility:
- -setTypeName:
- -tree
- -type

### documentation

- (GWSElement*) documentation;
Return the documentation for the receiver.

### extensibility

- (NSArray*) extensibility;
Returns the array of GWSElement objects representing the binding extensibility. Usually this is a soap:binding node.

### name

- (NSString*) name;
Returns the name of the receiver.

### operationWithName: create:

- (GWSElement*) operationWithName: (NSString*)name create: (BOOL)shouldCreate;
Return (and if required create) information about a particular operation (which must already be defined for the portType used by this binding.

### operations

- (NSDictionary*) operations;
Returns the dictionary of operations.

### removeOperationNamed:

- (void) removeOperationNamed: (NSString*)name;
Remoive named operation.

### setDocumentation:

- (void) setDocumentation: (GWSElement*)documentation;
Set the documentation for the receiver.

### setExtensibility:

- (void) setExtensibility: (NSArray*)extensibility;
Set the extensibility elements for this document.

### setTypeName:

- (void) setTypeName: (NSString*)type;
Sets the type of the binding. This should be the name of an existing GWSPortType instance owned by the same GWSDocument that owns the receiver, though this methods permits any value to be set (see -type).

### tree

- (GWSElement*) tree;
Return a tree representation of the receiver for output as part of a WSDL document.

### type

- (GWSPortType*) type;
Returns the port type of the receiver. If no type has been set or if the value previously set using the -setTypeName: method is not the name of a known GWSPortType instance, this method returns `nil`.