org.apache.cocoon.components.flow.ws
Class WebServiceLoader

java.lang.Object
  extended byorg.apache.cocoon.components.flow.ws.WebServiceLoader
All Implemented Interfaces:
Contextualizable, Disposable, LogEnabled, Serviceable, ThreadSafe

public class WebServiceLoader
extends Object
implements Contextualizable, ThreadSafe, Serviceable, Disposable, LogEnabled

Given a WSDL URL generates and compiles client bindings for the requested service endpoint.


Field Summary
protected  Logger logger
           
protected  SourceResolver resolver
           
protected  ServiceManager serviceManager
           
protected  String sourcePath
           
 
Constructor Summary
WebServiceLoader()
           
 
Method Summary
 void contextualize(Context context)
           
 void dispose()
           
 void enableLogging(Logger logger)
           
 Remote load(String wsdlURL)
          Loads a SOAP endpoint using the first service definition with a SOAP binding found in the referenced WSDL document.
 Remote load(String wsdlURL, String serviceName, String portName)
          Loads a SOAP endpoint using the endpoint identified by the given service/port combination.
 void service(ServiceManager serviceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger

serviceManager

protected ServiceManager serviceManager

sourcePath

protected String sourcePath

resolver

protected SourceResolver resolver
Constructor Detail

WebServiceLoader

public WebServiceLoader()
Method Detail

enableLogging

public void enableLogging(Logger logger)
Specified by:
enableLogging in interface LogEnabled
See Also:
LogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)

load

public Remote load(String wsdlURL)
            throws Exception,
                   LoadException
Loads a SOAP endpoint using the first service definition with a SOAP binding found in the referenced WSDL document.

Parameters:
wsdlURL -
Returns:
@throws Exception
Throws:
InvalidServiceException
LoadException
Exception

load

public Remote load(String wsdlURL,
                   String serviceName,
                   String portName)
            throws LoadException
Loads a SOAP endpoint using the endpoint identified by the given service/port combination.

Parameters:
wsdlURL -
serviceName -
portName -
Returns:
@throws LoadException
Throws:
LoadException

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException
See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

dispose

public void dispose()
Specified by:
dispose in interface Disposable
See Also:
Disposable.dispose()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.