# GWSMessage 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 GWSMessage class

## GWSMessage : NSObject

> Declared in:
>   GWSMessage.h

Encapsulates the WSDL message element... a description of a named message in terms of the data items (parts) transferred in the message.
Each part of the message has a name and is described by an element or type which specifies the kind of data being used.
Method summary

- -documentation
- -elementOfPartNamed:
- -name
- -partNames
- -setDocumentation:
- -setElement:forPartNamed:
- -setType:forPartNamed:
- -tree
- -typeOfPartNamed:

### documentation

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

### elementOfPartNamed:

- (NSString*) elementOfPartNamed: (NSString*)name;
Return the element of the specified part or `nil` if it does not exist.

### name

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

### partNames

- (NSArray*) partNames;
Return an array listing the names of all the parts defined for this message.

### setDocumentation:

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

### setElement: forPartNamed:

- (void) setElement: (NSString*)type forPartNamed: (NSString*)name;
Set the element of the specified part.

### setType: forPartNamed:

- (void) setType: (NSString*)type forPartNamed: (NSString*)name;
Set the type of the specified part.

### tree

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

### typeOfPartNamed:

- (NSString*) typeOfPartNamed: (NSString*)name;
Return the type of the specified part or `nil` if it does not exist.