electric.wsdl
Class MessageDecl

java.lang.Object
  extended byelectric.wsdl.MessageDecl
All Implemented Interfaces:
IWSDLConstants

public class MessageDecl
extends java.lang.Object
implements IWSDLConstants

MessageDecl

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.wsdl.IWSDLConstants
ADDRESS, BINDING, DEFINITIONS, DESCRIPTION, DOCUMENT, DOCUMENTATION, ELEMENT, ENCODED, ENCODING_STYLE, ENDPOINT, FAULT, FAULT_DETAIL, GET, GETPOST, HTTP, INPUT, LITERAL, LOCATION, MESSAGE, METHOD_NAMESPACE, MIME, NAME, NAMESPACE, OPERATION, OUTPUT, PARAMETER_ORDER, PARAMETERS, PART, PORT, PORT_TYPE, POST, RPC, SERVICE, SOAP, SOAP_ACTION, STYLE, TARGET_NAMESPACE, TARGET_NAMESPACE_PREFIX, TNS, TRANSPORT, TYPE, USE, VERB, WSDL_EXTENSION, WSDL_NAMESPACE, WSDL_PREFIX, WSDL_SOAP_NAMESPACE, WSDL_SOAP_PREFIX, WSDL_SOAP11_NAMESPACE, WSDL_SOAP11_PREFIX, WSDL_SOAP12_NAMESPACE, WSDL_SOAP12_PREFIX
 
Constructor Summary
MessageDecl(Message message, java.lang.String name, java.lang.String type)
          Create a MessageDecl based on the given parameters.
MessageDecl(Operation operation, Element messageReference, java.lang.String type)
          Create a MessageDecl based on a messageReference from a SOAP document represented in XML.
 
Method Summary
 void addDependencies(java.util.Vector dependencies)
           
 Message getMessage()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
static MessageDecl getVoid()
           
 boolean isVoid()
           
 void setMessage(Message message)
           
 void setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 void writeWSDL(Element operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDecl

public MessageDecl(Operation operation,
                   Element messageReference,
                   java.lang.String type)
            throws WSDLException,
                   SchemaException
Create a MessageDecl based on a messageReference from a SOAP document represented in XML. This constructor is generally used when creating a GLUE WSDL data structure based on an existing WSDL XML document.

Parameters:
operation -
messageReference - the <input>, <output> or <fault> element.
type - constant from IWSDLConstants: INPUT, OUTPUT, FAULT
Throws:
WSDLException
SchemaException

MessageDecl

public MessageDecl(Message message,
                   java.lang.String name,
                   java.lang.String type)
Create a MessageDecl based on the given parameters. This constructor is generally used when creating a GLUE WSDL object structure from a set of Java methods, or from scratch.

Parameters:
message -
name -
type -
Method Detail

addDependencies

public void addDependencies(java.util.Vector dependencies)
Parameters:
dependencies -

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)
Parameters:
name -

getMessage

public Message getMessage()
Returns:

setMessage

public void setMessage(Message message)
Parameters:
message -

getType

public java.lang.String getType()
Returns:
INPUT, OUTPUT or FAULT

setType

public void setType(java.lang.String type)
Parameters:
type - INPUT, OUTPUT or FAULT

writeWSDL

public void writeWSDL(Element operation)
Parameters:
operation -

isVoid

public boolean isVoid()

getVoid

public static MessageDecl getVoid()


copyright© 2001-2004 by webMethods All Rights Reserved.