it.imolinfo.jbi4cics.webservices.runtime
Class ServiceCreator

java.lang.Object
  extended by it.imolinfo.jbi4cics.webservices.runtime.ServiceCreator

public final class ServiceCreator
extends java.lang.Object

Helper class to create XFire service starting from ServiceDescriptor.


Constructor Summary
ServiceCreator()
          Creates an instance of this class.
 
Method Summary
 org.codehaus.xfire.service.Service createJbiService(ServiceDescriptor desc, org.codehaus.xfire.XFire xfire, javax.xml.namespace.QName interfaceName)
          Creates the JBI XFire service from specified parameters.
 org.codehaus.xfire.service.Service createService(ServiceDescriptor desc, org.codehaus.xfire.XFire xfire)
          Creates the XFire service from specified parameters.
 javax.wsdl.Definition createWsdlFromCopyCobol(java.lang.String copyCobol, java.lang.String outputCopyCobol, ServiceDescriptor desc)
          Creates a WSDL object from specified copy Cobol.
static org.codehaus.xfire.XFire createXFire(javax.jbi.component.ComponentContext componentContext)
          Creates a new XFire instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceCreator

public ServiceCreator()
Creates an instance of this class.

Method Detail

createService

public org.codehaus.xfire.service.Service createService(ServiceDescriptor desc,
                                                        org.codehaus.xfire.XFire xfire)
Creates the XFire service from specified parameters.

Parameters:
desc - the service descriptor.
xfire - the XFire instance to use for creation.
Returns:
the newly created XFire service.

createJbiService

public org.codehaus.xfire.service.Service createJbiService(ServiceDescriptor desc,
                                                           org.codehaus.xfire.XFire xfire,
                                                           javax.xml.namespace.QName interfaceName)
Creates the JBI XFire service from specified parameters.

Parameters:
desc - the service descriptor.
xfire - the XFire instance to use for creation.
interfaceName - the interface qualified name.
Returns:
the newly created JBI XFire service.

createWsdlFromCopyCobol

public javax.wsdl.Definition createWsdlFromCopyCobol(java.lang.String copyCobol,
                                                     java.lang.String outputCopyCobol,
                                                     ServiceDescriptor desc)
                                              throws Jbi4cicsException
Creates a WSDL object from specified copy Cobol. This method may be used to generate a WSDL (file) starting from a CPY file, for example.

Parameters:
copyCobol - the copy Cobol to generates the WSDL. Must be not null.
outputCopyCobol - the optional output copy Cobol to generates the WSDL. If null or blank, is like to not specify this parameter, so only copyCobol will be considered and will be used for input and for output during CICS call.
desc - the WSDL descriptor. Must be not null.
Returns:
the WSDL document corresponding to the copy Cobol received.
Throws:
Jbi4cicsException - in case of errors that prevent WSDL creation.

createXFire

public static org.codehaus.xfire.XFire createXFire(javax.jbi.component.ComponentContext componentContext)
Creates a new XFire instance.

Parameters:
componentContext - the JBI component context. May be null.
Returns:
the newly created XFire instance, with a JBI transport related to componentContext.


Copyright © 2005-2008 Imola Informatica. All Rights Reserved.