org.mule.module.ws.construct
Class WSProxy
java.lang.Object
org.mule.construct.AbstractFlowConstruct
org.mule.construct.AbstractPipeline
org.mule.construct.AbstractConfigurationPattern
org.mule.module.ws.construct.WSProxy
- All Implemented Interfaces:
- AnnotatedObject, FlowConstruct, Pipeline, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, NamedObject
public class WSProxy
- extends AbstractConfigurationPattern
This class is implemented to act as a Proxy for a Web Service. It listens for requests on the inbound endpoint and if
it encounters the "WSDL" property in the address, it will fetch the WSDL from the original web service and return it
back. In case the wsdlFile property is set, when the WSProxyService encounters a request for the wsdl, instead of
fetching the WSDL from the original web service, it will return back the file expressed in the property. When a
normal SOAP request is encountered, it will forward the call to the web service with no modifications to the SOAP
message. The outbound router of this class must include the address of the webservice to be proxied. No need to
include the method name as a parameter in the address, since it will be in the SOAP message as well. Furthermore a
property named uriWsdl can optionally be set which as the name suggests, indicate the URL of the WSDL for the
service. If this property is not set, the address of the WSDL will be assumed to be the value of uriWebservice
followed by "?WSDL".
Constructor Summary |
WSProxy(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
List<MessageProcessor> transformers,
List<MessageProcessor> responseTransformers)
|
WSProxy(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
List<MessageProcessor> transformers,
List<MessageProcessor> responseTransformers,
String wsdlContents)
|
WSProxy(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
List<MessageProcessor> transformers,
List<MessageProcessor> responseTransformers,
URI wsdlUri)
|
Methods inherited from class org.mule.construct.AbstractPipeline |
configurePostProcessors, createPipeline, doDispose, doInitialise, doStart, doStop, getMessageProcessors, getMessageSource, getProcessingStrategy, isRedeliveryPolicyConfigured, setMessageProcessors, setMessageSource |
Methods inherited from class org.mule.construct.AbstractFlowConstruct |
configureStatistics, dispose, disposeIfDisposable, getAnnotation, getAnnotations, getExceptionListener, getInitialState, getLifecycleState, getMessageInfoMapping, getMuleContext, getName, getStatistics, initialise, initialiseIfInitialisable, injectFlowConstructMuleContext, isStarted, isStopped, isStopping, setAnnotations, setExceptionListener, setInitialState, setMessageInfoMapping, start, startIfStartable, stop, stopIfStoppable |
WSProxy
public WSProxy(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
List<MessageProcessor> transformers,
List<MessageProcessor> responseTransformers)
throws MuleException
- Throws:
MuleException
WSProxy
public WSProxy(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
List<MessageProcessor> transformers,
List<MessageProcessor> responseTransformers,
String wsdlContents)
throws MuleException
- Throws:
MuleException
WSProxy
public WSProxy(String name,
MuleContext muleContext,
MessageSource messageSource,
OutboundEndpoint outboundEndpoint,
List<MessageProcessor> transformers,
List<MessageProcessor> responseTransformers,
URI wsdlUri)
throws MuleException
- Throws:
MuleException
configureMessageProcessorsBeforeTransformation
protected void configureMessageProcessorsBeforeTransformation(MessageProcessorChainBuilder builder)
- Specified by:
configureMessageProcessorsBeforeTransformation
in class AbstractConfigurationPattern
configureMessageProcessorsAfterTransformation
protected void configureMessageProcessorsAfterTransformation(MessageProcessorChainBuilder builder)
- Specified by:
configureMessageProcessorsAfterTransformation
in class AbstractConfigurationPattern
validateConstruct
protected void validateConstruct()
throws FlowConstructInvalidException
- Description copied from class:
AbstractFlowConstruct
- Validates configured flow construct
- Overrides:
validateConstruct
in class AbstractPipeline
- Throws:
FlowConstructInvalidException
- if the flow construct does not pass
validation
toString
public String toString()
- Overrides:
toString
in class AbstractFlowConstruct
getConstructType
public String getConstructType()
- Specified by:
getConstructType
in class AbstractFlowConstruct
- Returns:
- the type of construct being created, e.g. "Flow"
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.