|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.fc.webservice.util.WsdlGenerator
public class WsdlGenerator
Generates WSDL from Java
Constructor Summary | |
---|---|
WsdlGenerator(AssemblyLineConfig aALConfig,
String aWebServiceLocation)
Class constructor |
|
WsdlGenerator(MetamergeConfig aMMConfig,
Vector aOperationNames,
String aWebServiceLocation,
String aThisNamespace,
String aDefinitionName)
Class constructor |
Method Summary | |
---|---|
protected void |
addService()
Adds Port , QName and Service to the definition |
protected javax.wsdl.Binding |
createBinding()
Creates Binding for the message Definition |
protected javax.wsdl.BindingOperation |
createBindingOperation(String aOperationName)
Create BindingOperation for the specified operation. |
protected void |
createDefinition()
Creates the Definition for the WSDL |
protected javax.wsdl.Input |
createInput(String aOperationName)
Creates Input for specified operation name |
protected javax.wsdl.Message |
createMessage(String aOperationName,
boolean aIsInputMessage)
Creates a Message for the specified operation name and boolean
parameter |
protected javax.wsdl.Operation |
createOperation(String aOperationName)
Creates Operation for the specified operation name |
protected javax.wsdl.Output |
createOutput(String aOperationName)
Creates Output for the specified operation name |
protected javax.wsdl.Part |
createPart(String aParameterName,
String aXsdType)
Creates a Part for the specified parameters |
protected javax.wsdl.Port |
createPort()
Creates Port |
protected javax.wsdl.PortType |
createPortType()
Creates a PortType for the Definition |
protected javax.wsdl.extensions.soap.SOAPBody |
createSoapBody()
Creates a SOAPBody for the message |
static void |
generateWsdl(BaseConfiguration aBaseConfig,
String aWsdlFileName,
String aWebServiceLocation)
Generates WSDL with the specified BaseConfiguration and location
of the web service in the specified file |
void |
writeToFile(String aWsdlFileName)
Writes the WSDL to a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WsdlGenerator(AssemblyLineConfig aALConfig, String aWebServiceLocation) throws Exception
aALConfig
- the configuration of the Assembly lineaWebServiceLocation
- String
Exception
- if parameter type is not supportedpublic WsdlGenerator(MetamergeConfig aMMConfig, Vector aOperationNames, String aWebServiceLocation, String aThisNamespace, String aDefinitionName) throws Exception
aMMConfig
- MetamergeConfig
aOperationNames
- VectoraWebServiceLocation
- StringaThisNamespace
- namespaceaDefinitionName
- definition name of the message
Exception
- if parameter type is not supportedMethod Detail |
---|
public void writeToFile(String aWsdlFileName) throws javax.wsdl.WSDLException, FileNotFoundException
aWsdlFileName
- String , file name
javax.wsdl.WSDLException
- if the file stream cannot be closed
FileNotFoundException
- If the file exists but is a directory rather than a regular
file, does not exist but cannot be created, or cannot be
opened for any other reason then a FileNotFoundException is
thrown.protected void createDefinition() throws Exception
Exception
- if error occursprotected void addService() throws Exception
Port
, QName
and Service
to the definition
Exception
- if error occursprotected javax.wsdl.Port createPort() throws Exception
Port
Exception
- if error occursprotected javax.wsdl.Binding createBinding() throws Exception
Binding
for the message Definition
Exception
- if error occursprotected javax.wsdl.PortType createPortType() throws Exception
PortType
for the Definition
Exception
- if error occursprotected javax.wsdl.Operation createOperation(String aOperationName) throws Exception
Operation
for the specified operation name
aOperationName
- String
Exception
- if parameter is not supportedprotected javax.wsdl.Input createInput(String aOperationName) throws Exception
Input
for specified operation name
aOperationName
- String
Exception
- if parameter type is not supportedprotected javax.wsdl.Output createOutput(String aOperationName) throws Exception
Output
for the specified operation name
aOperationName
- String
Exception
- if parameter is not supportedprotected javax.wsdl.Message createMessage(String aOperationName, boolean aIsInputMessage) throws Exception
Message
for the specified operation name and boolean
parameter
aOperationName
- name of the operation.aIsInputMessage
- boolean, input/output suffix
Exception
- if the parameter type is not supportedprotected javax.wsdl.Part createPart(String aParameterName, String aXsdType)
Part
for the specified parameters
aParameterName
- String , name of the partaXsdType
- String
protected javax.wsdl.BindingOperation createBindingOperation(String aOperationName)
BindingOperation
for the specified operation.
aOperationName
- name of the operation.
protected javax.wsdl.extensions.soap.SOAPBody createSoapBody()
SOAPBody
for the message
public static void generateWsdl(BaseConfiguration aBaseConfig, String aWsdlFileName, String aWebServiceLocation) throws Exception
BaseConfiguration
and location
of the web service in the specified file
aBaseConfig
- BaseConfiguration
aWsdlFileName
- String , file nameaWebServiceLocation
- String , location of the web service
Exception
- if parameters are not valid
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |