pp108 : Definition

Definition

Represents a WSDL definition.

Method

Description

getTargetNamespace

Returns the targetNamespace of the WSDL

getSchemas

Creates a Schema object for each schema in the WSDL and returns a collection of Schema objects

getMessages

Creates a Message object for each message in the WSDL and returns a collection of Message objects. This API uses the message name as the index for the message object.

Note:
This is now deprecated and it is recommended to use getMessagesByNamespaceAndName instead. The getMessages API creates a Message object for each message in the WSDL and returns a collection of Message objects using the message name as an index of Message object. But if WSDL imports more than one WSDL with the same message name, the message from the first WSDL are overwritten by the message from the second WSDL while binding the definition object. To avoid this use the getMessagesByNamespaceAndName.

getMessagesByNamespaceAndName

Creates a Message object for each message in the WSDL and returns a collection of Message objects. It uses the message namespace and name as an index of the Message object

getMessage(QName)

Returns the appropriate Message object for the QName specified

getPortTypes

Creates a PortType object for each portType in the WSDL and returns a collection of PortType objects

getPortType(QName)

Returns the appropriate PortType object for the QName specified

getBindings

Creates a Binding object for each binding in the WSDL and returns a collection of Binding objects

getBinding(QName)

Returns the appropriate Binding object for the QName specified

getServices

Creates a Service object for each service in the WSDL and returns a collection of Service objects

getService(name)

Returns the appropriate Service object for the name specified

getXMLNode

Returns the XML node corresponding to this Definition object

getSchemasForNamespace(namespace)

Returns an array of schema objects whose targetNamespace matches with the namespace

getDocumentation

Returns the documentation node containing human readable documentation

getItemType

Returns 100 indicating that it is a Definition

getImportedWSDLs

Returns an array of imported wsdls.