Class JAXWSRIWSDLGenerator
java.lang.Object
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator
- All Implemented Interfaces:
org.apache.axis2.dataretrieval.SchemaSupplier,org.apache.axis2.dataretrieval.WSDLSupplier
public class JAXWSRIWSDLGenerator
extends Object
implements org.apache.axis2.dataretrieval.SchemaSupplier, org.apache.axis2.dataretrieval.WSDLSupplier
This class will implement an interface that is defined by the
MDQ code. It will be registered within the MDQ framework, and the
MDQ code will call this when it finds an application that was
deployed without WSDL. This class will use the WsGen tool to
generate a WSDL Definition based on the Java source for the application.
-
Constructor Summary
ConstructorsConstructorDescriptionJAXWSRIWSDLGenerator(org.apache.axis2.description.AxisService axisService) JAXWSRIWSDLGenerator(org.apache.axis2.description.AxisService axisService, org.apache.axis2.engine.AxisConfiguration axisConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringexpandDirs(String dirPaths) Expand a directory path or list of directory paths (File.pathSeparator delimited) into a list of file paths of all the jar files in those directories.voidgenerateWsdl(String className, String bindingType) This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL.voidgenerateWsdl(String className, String bindingType, JAXWSCatalogManager catalogManager) This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL.static JAXWSCatalogManagergetCatalogManager(org.apache.axis2.description.AxisService service) Get the CatalogManager associated with an AxisServicegetDefaultClasspath(String webBase) Get the default classpath from various thingies in the message contextorg.apache.ws.commons.schema.XmlSchemajavax.wsdl.DefinitiongetWSDL(org.apache.axis2.description.AxisService service) static booleanisJar(InputStream is) Check if this inputstream is a jar/zip
-
Constructor Details
-
JAXWSRIWSDLGenerator
public JAXWSRIWSDLGenerator(org.apache.axis2.description.AxisService axisService) -
JAXWSRIWSDLGenerator
public JAXWSRIWSDLGenerator(org.apache.axis2.description.AxisService axisService, org.apache.axis2.engine.AxisConfiguration axisConfig)
-
-
Method Details
-
generateWsdl
public void generateWsdl(String className, String bindingType) throws jakarta.xml.ws.WebServiceException This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL. We will then read this file in from disk and create a Definition. After we are done with the file we will remove it from disk.- Throws:
jakarta.xml.ws.WebServiceException
-
generateWsdl
public void generateWsdl(String className, String bindingType, JAXWSCatalogManager catalogManager) throws jakarta.xml.ws.WebServiceException This method will drive the call to WsGen to generate a WSDL file for applications deployed without WSDL. We will then read this file in from disk and create a Definition. After we are done with the file we will remove it from disk. This method accepts a CatalogManager as a parameter for the eventual use in by an XMLSchemaCollection.- Throws:
jakarta.xml.ws.WebServiceException
-
getWSDL
public javax.wsdl.Definition getWSDL(org.apache.axis2.description.AxisService service) throws org.apache.axis2.AxisFault - Specified by:
getWSDLin interfaceorg.apache.axis2.dataretrieval.WSDLSupplier- Throws:
org.apache.axis2.AxisFault
-
getSchema
public org.apache.ws.commons.schema.XmlSchema getSchema(org.apache.axis2.description.AxisService service, String xsd) throws org.apache.axis2.AxisFault - Specified by:
getSchemain interfaceorg.apache.axis2.dataretrieval.SchemaSupplier- Throws:
org.apache.axis2.AxisFault
-
expandDirs
Expand a directory path or list of directory paths (File.pathSeparator delimited) into a list of file paths of all the jar files in those directories.- Parameters:
dirPaths- The string containing the directory path or list of directory paths.- Returns:
- The file paths of the jar files in the directories. This is an empty string if no files were found, and is terminated by an additional pathSeparator in all other cases.
-
isJar
Check if this inputstream is a jar/zip- Parameters:
is-- Returns:
- true if inputstream is a jar
-
getCatalogManager
public static JAXWSCatalogManager getCatalogManager(org.apache.axis2.description.AxisService service) Get the CatalogManager associated with an AxisService- Returns:
- the CatalogManager in use for this AxisService
-
getDefaultClasspath
Get the default classpath from various thingies in the message context- Parameters:
msgContext-- Returns:
- default classpath
-