org.globus.ogsa
Class WSDLGenerator

java.lang.Object
  extended byorg.globus.ogsa.WSDLGenerator

public class WSDLGenerator
extends java.lang.Object

The WSDLGenerator generates a WSDL document (GSR) for a given service and a schema template. The protocol of the exposed service is taken from the WSDL template. The port is resolved in the following order:


Constructor Summary
WSDLGenerator()
           
 
Method Summary
static void clearCache(ServiceProperties properties)
          clears the WSDL meta data cache to make sure that the next WSDL generation will result in the template being fetched again
static void getInstanceWSDL(GridServiceBase properties)
          generates the WSDL definition for the instances created by a service and sets it in the ServiceProperties.INSTANCE_WSDL property of the same service.
static void getPortTypes(javax.wsdl.Definition wsdlDefinition, java.util.Vector portTypes)
          gets QNames of all WSDL PortTypes in a WSDL definition, including all of its imported definitions
static void getWSDL(ServiceProperties properties)
          generates the WSDL definition for a service and sets it in the ServiceProperties.WSDL property of the same service
static void getWSDL(java.lang.String wsdlPath, java.lang.String servicePath, ServiceProperties properties)
          generates the WSDL definition for a service and sets it in the ServiceProperties.WSDL property of the same service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLGenerator

public WSDLGenerator()
Method Detail

getWSDL

public static void getWSDL(ServiceProperties properties)
                    throws GridServiceException
generates the WSDL definition for a service and sets it in the ServiceProperties.WSDL property of the same service

Parameters:
properties - service properties of a service for which a new WSDL definition should be generated
Throws:
GridServiceException - if the WSDL could not be generated

getInstanceWSDL

public static void getInstanceWSDL(GridServiceBase properties)
                            throws GridServiceException
generates the WSDL definition for the instances created by a service and sets it in the ServiceProperties.INSTANCE_WSDL property of the same service. The instance WSDL can later be used as a cahce from which WSDL for the individual service instance can be constructed

Parameters:
properties - Grid service for which instances a new WSDL definition should be generated
Throws:
GridServiceException - if the WSDL could not be generated

getWSDL

public static void getWSDL(java.lang.String wsdlPath,
                           java.lang.String servicePath,
                           ServiceProperties properties)
                    throws GridServiceException
generates the WSDL definition for a service and sets it in the ServiceProperties.WSDL property of the same service

Parameters:
wsdlPath - the path where the template schema of the service can be found, for example the schemaPath configuration property
servicePath - path in the internal registry where the service is deployed
properties - service properties of a service for which a new WSDL definition should be generated
Throws:
GridServiceException - if the WSDL could not be generated

clearCache

public static void clearCache(ServiceProperties properties)
clears the WSDL meta data cache to make sure that the next WSDL generation will result in the template being fetched again

Parameters:
properties - properties of service for which the relevant caches should be cleared

getPortTypes

public static void getPortTypes(javax.wsdl.Definition wsdlDefinition,
                                java.util.Vector portTypes)
gets QNames of all WSDL PortTypes in a WSDL definition, including all of its imported definitions

Parameters:
wsdlDefinition - wsdl definition to be searched for portType definitions
portTypes - vector to be populated with QNames of portTypes found


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.