org.apache.axis.wsdl.fromJava

Class Emitter


public class Emitter
extends java.lang.Object

This class emits WSDL from Java classes. It is used by the ?WSDL Axis browser function and Java2WSDL commandline utility. See Java2WSDL and Java2WSDLFactory for more information.
Authors:
Glen Daniels (gdaniels@apache.org)
Rich Scheuerle (scheu@us.ibm.com)

Field Summary

static int
MODE_ALL
Field MODE_ALL
static int
MODE_DOCUMENT
DEPRECATED - Indicates style=document use=literal
static int
MODE_DOC_WRAPPED
DEPRECATED - Indicates style=wrapped use=literal
static int
MODE_IMPLEMENTATION
Field MODE_IMPLEMENTATION
static int
MODE_INTERFACE
Field MODE_INTERFACE
static int
MODE_RPC
DEPRECATED - Indicates style=rpc use=encoded
protected static Log
log
Field log
protected static TypeMapping
standardTypes
Field standardTypes
protected Types
types
Field types

Constructor Summary

Emitter()
Construct Emitter.

Method Summary

protected Definition
createDefinition()
Build a Definition from the input wsdl file or create a new Definition
protected Element
createDocumentationElement(String documentation)
Create a documentation element
protected QName
createMessageName(Definition def, String methodName)
Method createMessageName
protected Types
createTypes(Definition def)
Build a Types object and load the input wsdl types
void
emit(String filename)
Generates a complete WSDL document for a given Class
void
emit(String filename1, String filename2)
Generates WSDL documents for a given Class
void
emit(String filename, int mode)
Generates a WSDL document for a given Class.
Document
emit(int mode)
Generates a WSDL document for a given Class.
String
emitToString(int mode)
Generates a String containing the WSDL for a given Class.
Vector
getAllowedMethods()
Returns a vector of methods to export
String
getBindingName()
Returns the String representation of the binding name
Class
getCls()
Returns the Class to export
TypeMapping
getDefaultTypeMapping()
Deprecated. Use getTypeMappingRegistry instead
String
getDescription()
Returns the service description
Vector
getDisallowedMethods()
Return list of methods that should not be exported
Class[]
getExtraClasses()
Return the list of extra classes that the emitter will produce WSDL for.
Class
getImplCls()
Returns the implementation Class if set
String
getImplNamespace()
Returns the implementation namespace
Definition
getImplWSDL()
Get implementation WSDL Definition for the current configuration parameters
String
getImportUrl()
Returns the String representation of the interface import location URL
String
getInputSchema()
String
getInputWSDL()
Get the name of the input WSDL
String
getIntfNamespace()
Returns the interface namespace
Definition
getIntfWSDL()
Get a interface WSDL Definition for the current configuration parameters
String
getLocationUrl()
Returns the String representation of the service endpoint URL
int
getMode()
Deprecated. (use getStyle and getUse)
Map
getNamespaceMap()
get the packagename to namespace map
String
getPortTypeName()
Returns the String representation of the portType name
HashMap
getQName2ClassMap()
Return the type qname to java type mapping
protected QName
getRequestQName(OperationDesc oper)
Method getRequestQName
protected QName
getResponseQName(OperationDesc oper)
Method getResponseQName
ServiceDesc
getServiceDesc()
Method getServiceDesc
String
getServiceElementName()
Returns the String representation of the service element name
String
getServicePortName()
Returns the String representation of the service port name
String
getSoapAction()
Returns the soapAction option value
ArrayList
getStopClasses()
Return the list of classes which stop inhertance searches
Style
getStyle()
getStyle
String
getTargetService()
Returns the target service name
TypeMapping
getTypeMapping()
Returns the TypeMapping used by the service
Use
getUse()
getUse
boolean
getUseInheritedMethods()
Indicates if the emitter will search classes for inherited methods
String
getVersionMessage()
Return the version message
Definition
getWSDL()
Get a Full WSDL Definition for the current configuration parameters
protected void
init(int mode)
Invoked prior to building a definition to ensure parms and data are set up.
protected void
prettyDocumentToFile(Document doc, String filename)
Write a prettified document to a file.
void
setAllowedMethods(String text)
Add a list of methods to export
void
setAllowedMethods(Vector allowedMethods)
Add a Vector of methods to export
void
setBindingName(String bindingName)
Set the String representation of the binding name
void
setCls(Class cls)
Sets the Class to export
void
setCls(String className)
Sets the Class to export
void
setClsSmart(Class cls, String location)
Sets the Class to export.
void
setDefaultTypeMapping(TypeMapping tm)
Deprecated. Use setTypeMappingRegistry instead
void
setDescription(String description)
Set the service description
void
setDisallowedMethods(String text)
Add a list of methods NOT to export
void
setDisallowedMethods(Vector disallowedMethods)
Add a list of methods NOT to export
void
setEmitAllTypes(boolean emitAllTypes)
void
setExtraClasses(Class[] extraClasses)
Provide a list of classes which the emitter will produce WSDL type definitions for.
void
setExtraClasses(String text)
Provide a comma or space seperated list of classes which the emitter will produce WSDL type definitions for.
void
setImplCls(Class implCls)
Sets the implementation Class
void
setImplCls(String className)
Sets the implementation Class
void
setImplNamespace(String ns)
Set the implementation namespace
void
setImportUrl(String importUrl)
Set the String representation of the interface location URL for importing
void
setInputSchema(String inputSchema)
Set the name of the input schema
void
setInputWSDL(String inputWSDL)
Set the name of the input WSDL
void
setIntfNamespace(String ns)
Set the interface namespace
void
setLocationUrl(String locationUrl)
Set the String representation of the service endpoint URL
void
setMode(int mode)
Deprecated. (use setStyle and setUse)
void
setNamespaceMap(Map map)
Set the packagename to namespace map with the given map
void
setPortTypeName(String portTypeName)
Set the String representation of the portType name
void
setServiceDesc(ServiceDesc serviceDesc)
Method setServiceDesc
void
setServiceElementName(String serviceElementName)
Set the String representation of the service element name
void
setServicePortName(String servicePortName)
Set the String representation of the service port name
void
setSoapAction(String value)
Sets the soapAction option value
void
setStopClasses(ArrayList stopClasses)
Adds a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generation
void
setStopClasses(String text)
Add a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generation
void
setStyle(String value)
setStyle
void
setStyle(Style value)
setStyle
void
setTargetService(String targetService)
Set the target service name
void
setTypeMapping(TypeMapping tm)
Sets the TypeMapping used by the service
void
setTypeMappingRegistry(TypeMappingRegistry tmr)
Set the TypeMappingRegistry for this Emitter.
void
setUse(String value)
setUse
void
setUse(Use value)
setUse
void
setUseInheritedMethods(boolean useInheritedMethods)
Turn on or off inherited method WSDL generation.
void
setVersionMessage(String versionMessage)
Set the version message that appears at the top of the WSDL If not set, we use the default version message.
protected Binding
writeBinding(Definition def, boolean add)
Create the binding.
protected BindingOperation
writeBindingOperation(Definition def, Binding binding, Operation oper, OperationDesc desc)
Create a Binding Operation
protected void
writeDefinitions(Definition def, String tns)
Create the definition header information.
protected Message
writeFaultMessage(Definition def, FaultDesc exception)
Create a Fault Message
protected void
writeImport(Definition def, String tns, String loc)
Create and add an import
protected void
writeMessages(Definition def, Operation oper, OperationDesc desc, BindingOperation bindingOper)
Create a Message
protected BindingOperation
writeOperation(Definition def, Binding binding, OperationDesc desc)
Create a Operation
String
writePartToMessage(Definition def, Message msg, boolean request, ParameterDesc param)
Create a Part
protected void
writePortType(Definition def, Binding binding)
Create a PortType
protected Message
writeRequestMessage(Definition def, OperationDesc oper, BindingOperation bindop)
Create a Request Message
protected Message
writeResponseMessage(Definition def, OperationDesc desc, BindingOperation bindop)
Create a Response Message
protected ExtensibilityElement
writeSOAPBody(QName operQName)
Method writeSOAPBody
protected SOAPFault
writeSOAPFault(FaultDesc faultDesc)
Method writeSOAPFault
protected SOAPHeader
writeSOAPHeader(ParameterDesc p, QName messageQName, String partName)
Create a SOAPHeader element
protected void
writeService(Definition def, Binding binding)
Create the service.
String
writeWrapperPart(Definition def, Message msg, OperationDesc oper, boolean request)
Write out the schema definition for a WRAPPED operation request or response.

Field Details

MODE_ALL

public static final int MODE_ALL
Field MODE_ALL
Field Value:
0

MODE_DOCUMENT

public static final int MODE_DOCUMENT
DEPRECATED - Indicates style=document use=literal
Field Value:
1

MODE_DOC_WRAPPED

public static final int MODE_DOC_WRAPPED
DEPRECATED - Indicates style=wrapped use=literal
Field Value:
2

MODE_IMPLEMENTATION

public static final int MODE_IMPLEMENTATION
Field MODE_IMPLEMENTATION
Field Value:
2

MODE_INTERFACE

public static final int MODE_INTERFACE
Field MODE_INTERFACE
Field Value:
1

MODE_RPC

public static final int MODE_RPC
DEPRECATED - Indicates style=rpc use=encoded
Field Value:
0

log

protected static Log log
Field log

standardTypes

protected static TypeMapping standardTypes
Field standardTypes

types

protected Types types
Field types

Constructor Details

Emitter

public Emitter()
Construct Emitter. Set the contextual information using set* methods Invoke emit to emit the code

Method Details

createDefinition

protected Definition createDefinition()
            throws WSDLException,
                   SAXException,
                   IOException,
                   ParserConfigurationException
Build a Definition from the input wsdl file or create a new Definition
Returns:
WSDL Definition

createDocumentationElement

protected Element createDocumentationElement(String documentation)
Create a documentation element
Parameters:
documentation -
Returns:

createMessageName

protected QName createMessageName(Definition def,
                                  String methodName)
Method createMessageName
Parameters:
def -
methodName -
Returns:

createTypes

protected Types createTypes(Definition def)
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Build a Types object and load the input wsdl types
Parameters:
def - Corresponding wsdl Definition
Returns:
Types object

emit

public void emit(String filename)
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Generates a complete WSDL document for a given Class
Parameters:
filename - WSDL

emit

public void emit(String filename1,
                 String filename2)
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Generates WSDL documents for a given Class
Parameters:
filename1 - interface WSDL
filename2 - implementation WSDL

emit

public void emit(String filename,
                 int mode)
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Generates a WSDL document for a given Class. The WSDL generated is controlled by the mode parameter mode 0: All mode 1: Interface mode 2: Implementation
Parameters:
filename - WSDL
mode - generation mode - all, interface, implementation

emit

public Document emit(int mode)
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Generates a WSDL document for a given Class. The WSDL generated is controlled by the mode parameter mode 0: All mode 1: Interface mode 2: Implementation
Parameters:
mode - generation mode - all, interface, implementation
Returns:
Document

emitToString

public String emitToString(int mode)
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Generates a String containing the WSDL for a given Class. The WSDL generated is controlled by the mode parameter mode 0: All mode 1: Interface mode 2: Implementation
Parameters:
mode - generation mode - all, interface, implementation
Returns:
String

getAllowedMethods

public Vector getAllowedMethods()
Returns a vector of methods to export
Returns:
a space separated list of methods to export

getBindingName

public String getBindingName()
Returns the String representation of the binding name
Returns:
String representation of the binding name

getCls

public Class getCls()
Returns the Class to export
Returns:
the Class to export

getDefaultTypeMapping

public TypeMapping getDefaultTypeMapping()

Deprecated. Use getTypeMappingRegistry instead

Returns the defaultTypeMapping used by the service
Returns:
the defaultTypeMapping used by the service

getDescription

public String getDescription()
Returns the service description
Returns:
service description String

getDisallowedMethods

public Vector getDisallowedMethods()
Return list of methods that should not be exported
Returns:

getExtraClasses

public Class[] getExtraClasses()
Return the list of extra classes that the emitter will produce WSDL for.
Returns:

getImplCls

public Class getImplCls()
Returns the implementation Class if set
Returns:
the implementation Class or null

getImplNamespace

public String getImplNamespace()
Returns the implementation namespace
Returns:
implementation target namespace

getImplWSDL

public Definition getImplWSDL()
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Get implementation WSDL Definition for the current configuration parameters
Returns:
WSDL Definition

getImportUrl

public String getImportUrl()
Returns the String representation of the interface import location URL
Returns:
String representation of the interface import location URL

getInputSchema

public String getInputSchema()
Returns:
the name of the input schema, or null

getInputWSDL

public String getInputWSDL()
Get the name of the input WSDL
Returns:
name of the input wsdl or null

getIntfNamespace

public String getIntfNamespace()
Returns the interface namespace
Returns:
interface target namespace

getIntfWSDL

public Definition getIntfWSDL()
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Get a interface WSDL Definition for the current configuration parameters
Returns:
WSDL Definition

getLocationUrl

public String getLocationUrl()
Returns the String representation of the service endpoint URL
Returns:
String representation of the service endpoint URL

getMode

public int getMode()

Deprecated. (use getStyle and getUse)

getMode (gets the mode based on the style setting)
Returns:
returns the mode (-1 if invalid)

getNamespaceMap

public Map getNamespaceMap()
get the packagename to namespace map
Returns:
Map

getPortTypeName

public String getPortTypeName()
Returns the String representation of the portType name
Returns:
String representation of the portType name

getQName2ClassMap

public HashMap getQName2ClassMap()
Return the type qname to java type mapping
Returns:
mapping of type qname to its corresponding java type

getRequestQName

protected QName getRequestQName(OperationDesc oper)
Method getRequestQName
Parameters:
oper -
Returns:

getResponseQName

protected QName getResponseQName(OperationDesc oper)
Method getResponseQName
Parameters:
oper -
Returns:

getServiceDesc

public ServiceDesc getServiceDesc()
Method getServiceDesc
Returns:

getServiceElementName

public String getServiceElementName()
Returns the String representation of the service element name
Returns:
String representation of the service element name

getServicePortName

public String getServicePortName()
Returns the String representation of the service port name
Returns:
String representation of the service port name

getSoapAction

public String getSoapAction()
Returns the soapAction option value
Returns:
the String DEFAULT, NONE or OPERATION

getStopClasses

public ArrayList getStopClasses()
Return the list of classes which stop inhertance searches
Returns:

getStyle

public Style getStyle()
getStyle
Returns:
Style setting (Style.RPC, Style.DOCUMENT, Style.WRAPPED, etc.)

getTargetService

public String getTargetService()
Returns the target service name
Returns:
the target service name

getTypeMapping

public TypeMapping getTypeMapping()
Returns the TypeMapping used by the service
Returns:
the TypeMapping used by the service

getUse

public Use getUse()
getUse
Returns:
Use setting (Use.ENCODED, Use.LITERAL)

getUseInheritedMethods

public boolean getUseInheritedMethods()
Indicates if the emitter will search classes for inherited methods
Returns:

getVersionMessage

public String getVersionMessage()
Return the version message
Returns:
message or null if emitter will use the default

getWSDL

public Definition getWSDL()
            throws IOException,
                   WSDLException,
                   SAXException,
                   ParserConfigurationException
Get a Full WSDL Definition for the current configuration parameters
Returns:
WSDL Definition

init

protected void init(int mode)
Invoked prior to building a definition to ensure parms and data are set up.
Parameters:
mode -

prettyDocumentToFile

protected void prettyDocumentToFile(Document doc,
                                    String filename)
            throws IOException
Write a prettified document to a file.
Parameters:
doc - the Document to write
filename - the name of the file to be written

setAllowedMethods

public void setAllowedMethods(String text)
Add a list of methods to export
Parameters:
text -

setAllowedMethods

public void setAllowedMethods(Vector allowedMethods)
Add a Vector of methods to export
Parameters:
allowedMethods - a vector of methods to export

setBindingName

public void setBindingName(String bindingName)
Set the String representation of the binding name
Parameters:
bindingName - the String representation of the binding name

setCls

public void setCls(Class cls)
Sets the Class to export
Parameters:
cls - the Class to export

setCls

public void setCls(String className)
            throws ClassNotFoundException
Sets the Class to export
Parameters:
className - the name of the Class to export

setClsSmart

public void setClsSmart(Class cls,
                        String location)
Sets the Class to export.
Parameters:
cls - the Class to export
location -

setDefaultTypeMapping

public void setDefaultTypeMapping(TypeMapping tm)

Deprecated. Use setTypeMappingRegistry instead

Sets the defaultTypeMapping used by the service
Parameters:
tm - the defaultTypeMapping used by the service

setDescription

public void setDescription(String description)
Set the service description
Parameters:
description - service description String

setDisallowedMethods

public void setDisallowedMethods(String text)
Add a list of methods NOT to export
Parameters:
text - space separated list of method names

setDisallowedMethods

public void setDisallowedMethods(Vector disallowedMethods)
Add a list of methods NOT to export
Parameters:
disallowedMethods - vector of method name strings

setEmitAllTypes

public void setEmitAllTypes(boolean emitAllTypes)

setExtraClasses

public void setExtraClasses(Class[] extraClasses)
Provide a list of classes which the emitter will produce WSDL type definitions for.
Parameters:
extraClasses -

setExtraClasses

public void setExtraClasses(String text)
            throws ClassNotFoundException
Provide a comma or space seperated list of classes which the emitter will produce WSDL type definitions for. The classes will be added to the current list.
Parameters:
text -

setImplCls

public void setImplCls(Class implCls)
Sets the implementation Class
Parameters:
implCls - the Class to export

setImplCls

public void setImplCls(String className)
Sets the implementation Class
Parameters:
className - the name of the implementation Class

setImplNamespace

public void setImplNamespace(String ns)
Set the implementation namespace
Parameters:
ns - implementation target namespace

setImportUrl

public void setImportUrl(String importUrl)
Set the String representation of the interface location URL for importing
Parameters:
importUrl - the String representation of the interface location URL for importing

setInputSchema

public void setInputSchema(String inputSchema)
Set the name of the input schema
Parameters:
inputSchema - the name of the input schema

setInputWSDL

public void setInputWSDL(String inputWSDL)
Set the name of the input WSDL
Parameters:
inputWSDL - the name of the input WSDL

setIntfNamespace

public void setIntfNamespace(String ns)
Set the interface namespace
Parameters:
ns - interface target namespace

setLocationUrl

public void setLocationUrl(String locationUrl)
Set the String representation of the service endpoint URL
Parameters:
locationUrl - the String representation of the service endpoint URL

setMode

public void setMode(int mode)

Deprecated. (use setStyle and setUse)

setMode (sets style and use)
Parameters:
mode -

setNamespaceMap

public void setNamespaceMap(Map map)
Set the packagename to namespace map with the given map
Parameters:
map - packagename/namespace Map

setPortTypeName

public void setPortTypeName(String portTypeName)
Set the String representation of the portType name
Parameters:
portTypeName - the String representation of the portType name

setServiceDesc

public void setServiceDesc(ServiceDesc serviceDesc)
Method setServiceDesc
Parameters:
serviceDesc -

setServiceElementName

public void setServiceElementName(String serviceElementName)
Set the String representation of the service element name
Parameters:
serviceElementName - the String representation of the service element name

setServicePortName

public void setServicePortName(String servicePortName)
Set the String representation of the service port name
Parameters:
servicePortName - the String representation of the service port name

setSoapAction

public void setSoapAction(String value)
Sets the soapAction option value
Parameters:
value - must be DEFAULT, NONE, or OPERATION

setStopClasses

public void setStopClasses(ArrayList stopClasses)
Adds a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generation
Parameters:
stopClasses - vector of class name strings

setStopClasses

public void setStopClasses(String text)
Add a list of classes (fully qualified) that will stop the traversal of the inheritance tree if encounter in method or complex type generation
Parameters:
text - space separated list of class names

setStyle

public void setStyle(String value)
setStyle
Parameters:
value - String representing a style ("document", "rpc", "wrapped") Note that the case of the string is not important. "document" and "DOCUMENT" are both treated as document style. If the value is not a know style, the default setting is used. See org.apache.axis.constants.Style for a description of the interaction between Style/Use
NOTE: If style is specified as "wrapped", use is set to literal.

setStyle

public void setStyle(Style value)
setStyle
Parameters:
value - Style setting

setTargetService

public void setTargetService(String targetService)
Set the target service name
Parameters:
targetService - the target service name

setTypeMapping

public void setTypeMapping(TypeMapping tm)
Sets the TypeMapping used by the service
Parameters:
tm - the TypeMapping used by the service

setTypeMappingRegistry

public void setTypeMappingRegistry(TypeMappingRegistry tmr)
Set the TypeMappingRegistry for this Emitter.

setUse

public void setUse(String value)
setUse
Parameters:
value - String representing a use ("literal", "encoded") Note that the case of the string is not important. "literal" and "LITERAL" are both treated as literal use. If the value is not a know use, the default setting is used. See org.apache.axis.constants.Style for a description of the interaction between Style/Use

setUse

public void setUse(Use value)
setUse
Parameters:
value - Use setting

setUseInheritedMethods

public void setUseInheritedMethods(boolean useInheritedMethods)
Turn on or off inherited method WSDL generation.
Parameters:
useInheritedMethods -

setVersionMessage

public void setVersionMessage(String versionMessage)
Set the version message that appears at the top of the WSDL If not set, we use the default version message. If set to an empty string, no version message will be emitted
Parameters:
versionMessage - the message to emit

writeBinding

protected Binding writeBinding(Definition def,
                               boolean add)
Create the binding.
Parameters:
def - Definition
add - true if binding should be added to the def
Returns:

writeBindingOperation

protected BindingOperation writeBindingOperation(Definition def,
                                                 Binding binding,
                                                 Operation oper,
                                                 OperationDesc desc)
Create a Binding Operation
Parameters:
def -
binding -
oper -
desc -
Returns:

writeDefinitions

protected void writeDefinitions(Definition def,
                                String tns)
Create the definition header information.
Parameters:
def - Definition
tns - target namespace

writeFaultMessage

protected Message writeFaultMessage(Definition def,
                                    FaultDesc exception)
            throws WSDLException,
                   AxisFault
Create a Fault Message
Parameters:
def -
exception - (an ExceptionRep object)
Returns:
Throws:
AxisFault -

writeImport

protected void writeImport(Definition def,
                           String tns,
                           String loc)
Create and add an import
Parameters:
def - Definition
tns - target namespace
loc - target location

writeMessages

protected void writeMessages(Definition def,
                             Operation oper,
                             OperationDesc desc,
                             BindingOperation bindingOper)
            throws WSDLException,
                   AxisFault
Create a Message
Parameters:
def - Definition, the WSDL definition
oper - Operation, the wsdl operation
desc - OperationDesc, the Operation Description
bindingOper - BindingOperation, corresponding Binding Operation
Throws:
AxisFault -

writeOperation

protected BindingOperation writeOperation(Definition def,
                                          Binding binding,
                                          OperationDesc desc)
Create a Operation
Parameters:
def -
binding -
desc -
Returns:

writePartToMessage

public String writePartToMessage(Definition def,
                                 Message msg,
                                 boolean request,
                                 ParameterDesc param)
            throws WSDLException,
                   AxisFault
Create a Part
Parameters:
def -
msg -
request - message is for a request
param - ParamRep object
Returns:
The parameter name added or null
Throws:
AxisFault -

writePortType

protected void writePortType(Definition def,
                             Binding binding)
            throws WSDLException,
                   AxisFault
Create a PortType
Parameters:
def -
binding -
Throws:
AxisFault -

writeRequestMessage

protected Message writeRequestMessage(Definition def,
                                      OperationDesc oper,
                                      BindingOperation bindop)
            throws WSDLException,
                   AxisFault
Create a Request Message
Parameters:
def -
oper -
Returns:
Throws:
AxisFault -

writeResponseMessage

protected Message writeResponseMessage(Definition def,
                                       OperationDesc desc,
                                       BindingOperation bindop)
            throws WSDLException,
                   AxisFault
Create a Response Message
Parameters:
def -
desc -
Returns:
Throws:
AxisFault -

writeSOAPBody

protected ExtensibilityElement writeSOAPBody(QName operQName)
Method writeSOAPBody
Parameters:
operQName -
Returns:

writeSOAPFault

protected SOAPFault writeSOAPFault(FaultDesc faultDesc)
Method writeSOAPFault
Parameters:
faultDesc -
Returns:

writeSOAPHeader

protected SOAPHeader writeSOAPHeader(ParameterDesc p,
                                     QName messageQName,
                                     String partName)
Create a SOAPHeader element

writeService

protected void writeService(Definition def,
                            Binding binding)
Create the service.
Parameters:
def -
binding -

writeWrapperPart

public String writeWrapperPart(Definition def,
                               Message msg,
                               OperationDesc oper,
                               boolean request)
            throws AxisFault
Write out the schema definition for a WRAPPED operation request or response.
Parameters:
def -
msg -
oper -
request -
Returns:
the name of the part the was written
Throws:
AxisFault -

Copyright © 2005 Apache Web Services Project. All Rights Reserved.