org.apache.cocoon.components.flow.ws
Class WebServiceLoader
java.lang.Object
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
serviceManager
protected ServiceManager serviceManager
sourcePath
protected String sourcePath
resolver
protected SourceResolver resolver
WebServiceLoader
public WebServiceLoader()
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.