org.apache.beehive.wsm.jsr181.model.wsdl
Class XmlBeanWSDLProcessor

Object
  extended by XmlBeanWSDLProcessor
All Implemented Interfaces:
WSDLProcessor

public class XmlBeanWSDLProcessor
extends Object
implements WSDLProcessor

An Implementation of WSDLProcessor that uses XmlBeans to convert the WSDL into the WSM Object Model.


Field Summary
static String SOAPENCODING
           
static String TRANSPORT
           
static String WSDLNS
           
static String WSDLSOAPNS
           
 
Constructor Summary
XmlBeanWSDLProcessor()
           
 
Method Summary
 BeehiveWsTypeMetadata createObjectModel(InputStream wsdlStream)
          Converts a WSDL document in the provided InputStream into the WSM Model.
static TAddress[] getSOAPAddress(TPort port)
           
static TBinding[] getSOAPBinding(TBinding b)
           
static TBody[] getSOAPBody(TBindingOperationMessage bom)
           
static TOperation[] getSOAPOperations(TBindingOperation bo)
           
 TypeMappingUtil getTypeMappingUtil()
           
 BeehiveWsTypeMetadata loadWebServiceMetadataFromWSDL(String wsdlLocation)
           
static DefinitionsDocument parseWSDL(File wsdlFile)
           
static DefinitionsDocument parseWSDL(InputStream wsdlStream)
           
static DefinitionsDocument parseWSDL(String wsdlLocation)
           
static DefinitionsDocument parseWSDL(URL wsdlURL)
           
 void setTypeMappingUtil(TypeMappingUtil tmu)
           
 BeehiveWsTypeMetadata toWebServiceMetadata(DefinitionsDocument defDoc)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSPORT

public static final String TRANSPORT
See Also:
Constant Field Values

SOAPENCODING

public static final String SOAPENCODING
See Also:
Constant Field Values

WSDLNS

public static final String WSDLNS
See Also:
Constant Field Values

WSDLSOAPNS

public static final String WSDLSOAPNS
See Also:
Constant Field Values
Constructor Detail

XmlBeanWSDLProcessor

public XmlBeanWSDLProcessor()
Method Detail

createObjectModel

public BeehiveWsTypeMetadata createObjectModel(InputStream wsdlStream)
                                        throws Exception
Description copied from interface: WSDLProcessor
Converts a WSDL document in the provided InputStream into the WSM Model.

Specified by:
createObjectModel in interface WSDLProcessor
Parameters:
wsdlStream - an InputStream containing a WSDL document.
Returns:
a WSM Object model representing the service in the provided WSDL.
Throws:
Exception

setTypeMappingUtil

public void setTypeMappingUtil(TypeMappingUtil tmu)

getTypeMappingUtil

public TypeMappingUtil getTypeMappingUtil()

toWebServiceMetadata

public BeehiveWsTypeMetadata toWebServiceMetadata(DefinitionsDocument defDoc)
                                           throws Exception
Throws:
Exception

loadWebServiceMetadataFromWSDL

public BeehiveWsTypeMetadata loadWebServiceMetadataFromWSDL(String wsdlLocation)
                                                     throws Exception
Throws:
Exception

parseWSDL

public static DefinitionsDocument parseWSDL(String wsdlLocation)
                                     throws IOException,
                                            MalformedURLException,
                                            XmlException
Throws:
IOException
MalformedURLException
XmlException

parseWSDL

public static DefinitionsDocument parseWSDL(File wsdlFile)
                                     throws IOException,
                                            XmlException
Throws:
IOException
XmlException

parseWSDL

public static DefinitionsDocument parseWSDL(URL wsdlURL)
                                     throws IOException,
                                            MalformedURLException,
                                            XmlException
Throws:
IOException
MalformedURLException
XmlException

parseWSDL

public static DefinitionsDocument parseWSDL(InputStream wsdlStream)
                                     throws IOException,
                                            MalformedURLException,
                                            XmlException
Throws:
IOException
MalformedURLException
XmlException

getSOAPOperations

public static TOperation[] getSOAPOperations(TBindingOperation bo)
                                      throws IllegalAccessException,
                                             NoSuchFieldException
Throws:
IllegalAccessException
NoSuchFieldException

getSOAPBinding

public static TBinding[] getSOAPBinding(TBinding b)
                                 throws IllegalAccessException,
                                        NoSuchFieldException
Throws:
IllegalAccessException
NoSuchFieldException

getSOAPBody

public static TBody[] getSOAPBody(TBindingOperationMessage bom)
                           throws IllegalAccessException,
                                  NoSuchFieldException
Throws:
IllegalAccessException
NoSuchFieldException

getSOAPAddress

public static TAddress[] getSOAPAddress(TPort port)
                                 throws IllegalAccessException,
                                        NoSuchFieldException
Throws:
IllegalAccessException
NoSuchFieldException