Authors
- Richard Frith-Macdonald (
rfm@gnu.org
)
-
Date: Generated at 2024-11-17 22:25:37 -0700
Copyright: (C) 2008 Free Software Foundation, Inc.
- Declared in:
- GWSDocument.h
A GWSDocument instance manages a collection of web
services. It is equivalent to a WSDL document, and
is intended to provide a mechanism for reading, writing,
editing and creating web services definitions.
Method summary
+ (
GWSExtensibility*)
extensibilityForNamespace: (NSString*)namespaceURL;
Return a previously registered extensibility object.
+ (void)
registerExtensibility: (
GWSExtensibility*)extensibility
forNamespace: (NSString*)namespaceURL;
Registers an extensibility object to
be used to handle extensibility elements with
the specified namespace.
New registrations
replace older ones for the same namespace URL.
Registering a nil
object removes
registrations for the namespace URL.
NB. Changes to the registered extensibilities do not
effect any document instances created bnefore the
change took place.
- (NSArray*)
bindingNames;
Returns the names of all WSDL bindings currently
defined in this document.
- (
GWSBinding*)
bindingWithName: (NSString*)name
create: (BOOL)shouldCreate;
Returns the named WSDL binding, creating a new
instance if the named binding does not exist and
the shouldCreate flag is YES
.
- (NSData*)
data;
Returns the receiver serialised as an XML (WSDL)
document.
- (
GWSElement*)
documentation;
Returns the receiver's documentation.
- (NSArray*)
extensibility;
Returns the receiver's extensibility elements.
- (
GWSExtensibility*)
extensibilityForNamespace: (NSString*)namespaceURL;
Returns the registered exrtensibility object for
the namespace.
- (id)
initWithContentsOfFile: (NSString*)file;
Initialises the receiver by parsing the WSDL
file.
- (id)
initWithContentsOfURL: (NSURL*)url;
Initialises the receiver by parsing the WSDL
file at the url.
- (id)
initWithData: (NSData*)xml;
Initialises the receiver by parsing the WSDL
document specified.
- (id)
initWithTree: (
GWSElement*)tree;
Initialises the receiver by traversing the WSDL
document in the supplied tree.
- (
GWSElement*)
initializing;
Returns the current element when initializing the
document from a tree of elements, nil
otherwise. This is intended for use by companion
classes which are initializing themselves from this
document.
- (NSArray*)
messageNames;
Returns the names of all WSDL messages currently
defined in this document.
- (
GWSMessage*)
messageWithName: (NSString*)name
create: (BOOL)shouldCreate;
Returns the named WSDL message, creating a new
instance if the named message does not exist and
the shouldCreate flag is YES
.
- (NSString*)
name;
Returns the receiver's name.
- (NSString*)
namespaceForPrefix: (NSString*)prefix;
Returns the namespace URI mapped to by the
specified prefix, or nil
if there is no such prefix known.
- (NSString*)
namespacePrefix;
Returns the namespace prefix used for the WSDL
namespace in this document, or nil
if there is no namespace prefix used.
- (NSArray*)
portTypeNames;
Returns the names of all WSDL port types currently
defined in this document.
- (
GWSPortType*)
portTypeWithName: (NSString*)name
create: (BOOL)shouldCreate;
Returns the named WSDL port type, creating a new
instance if the named port type does not exist and
the shouldCreate flag is YES
.
- (NSString*)
prefixForNamespace: (NSString*)url;
Returns the prefix for the specified namespace (if
defined).
- (NSString*)
qualify: (NSString*)name;
Given an element name which is in the WSDL
namespace, return the qualified version of the
name appropriate for use in this document.
- (void)
removeBindingNamed: (NSString*)name;
Removes the named WSDL binding from the document.
- (void)
removeMessageNamed: (NSString*)name;
Removes the named WSDL message from the document.
- (void)
removePortTypeNamed: (NSString*)name;
Removes the named WSDL port type from the document.
- (void)
removeServiceNamed: (NSString*)name;
Removes the named WSDL service from the document.
- (void)
removeTypeNamed: (NSString*)name;
Removes the named WSDL type from the document.
- (NSArray*)
serviceNames;
Returns the names of all WSDL services currently
defined in this document.
- (
GWSService*)
serviceWithName: (NSString*)name
create: (BOOL)shouldCreate;
Returns the named WSDL service, creating a new
instance if the named service does not exist and
the shouldCreate flag is YES
.
- (void)
setDocumentation: (
GWSElement*)documentation;
Set the documentation of this document.
- (void)
setExtensibility: (NSArray*)extensibility;
Set the extensibility elements for this
document.
- (void)
setName: (NSString*)name;
Set the name of this document.
- (void)
setTargetNamespace: (NSString*)uri;
Set the target namespace of this document.
- (NSString*)
targetNamespace;
Return the target namespace of this document.
- (
GWSElement*)
tree;
Returns a tree of elements describing the WSDL
documnet represented by the receiver.
- (NSArray*)
typeNames;
Returns the names of all WSDL types currently
defined in this document.
- (
GWSType*)
typeWithName: (NSString*)name
create: (BOOL)shouldCreate;
Returns the named WSDL type, creating a new
instance if the named type does not exist and the
shouldCreate flag is YES
.
- (BOOL)
writeToFile: (NSString*)file
atomically: (BOOL)atomically;
Writes the contents of the receiver to the specified
file as a WSDL document.
- (BOOL)
writeToURL: (NSURL*)anURL
atomically: (BOOL)atomically;
Writes the contents of the receiver to the specified
URL as a WSDL document.