org.mule.module.cxf
Class WSProxyService

java.lang.Object
  extended by org.mule.module.cxf.WSProxyService
All Implemented Interfaces:
org.mule.api.lifecycle.Callable, org.mule.api.lifecycle.EventListener, org.mule.api.lifecycle.Initialisable, org.mule.api.service.ServiceAware

Deprecated. WSProxyService only works for Services, to proxy web services in flows use CXF's proxy service and client message processors or the ws proxy pattern.

@Deprecated
public class WSProxyService
extends Object
implements org.mule.api.lifecycle.Callable, org.mule.api.service.ServiceAware, org.mule.api.lifecycle.Initialisable

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". It is important to note that both urls' of the webservice to be proxied and the WSDL address must contain no cxf or axis endpoints, just plain http endpoints. Even the inbound endpoint of the WSProxyService must be residing on an http protocol (with no cxf or axis).


Field Summary
protected static org.apache.commons.logging.Log logger
          Deprecated.  
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
WSProxyService()
          Deprecated.  
 
Method Summary
 String getWsdlEndpoint()
          Deprecated.  
 String getWsdlFile()
          Deprecated.  
 void initialise()
          Deprecated.  
protected  boolean isInitialized()
          Deprecated.  
 Object onCall(org.mule.api.MuleEventContext eventContext)
          Deprecated.  
 void setService(org.mule.api.service.Service service)
          Deprecated.  
 void setWsdlEndpoint(String urlWsdl)
          Deprecated.  
 void setWsdlFile(String wsdlFile)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient org.apache.commons.logging.Log logger
Deprecated. 
Constructor Detail

WSProxyService

public WSProxyService()
Deprecated. 
Method Detail

getWsdlEndpoint

public String getWsdlEndpoint()
Deprecated. 
Returns:
returns the url of the WSDL

setWsdlEndpoint

public void setWsdlEndpoint(String urlWsdl)
Deprecated. 
Parameters:
urlWsdl - Sets the property urlWsdl (the url of the WSDL of the web service)

getWsdlFile

public String getWsdlFile()
Deprecated. 
Returns:
returns the location of the local wsdl

setWsdlFile

public void setWsdlFile(String wsdlFile)
Deprecated. 
Parameters:
wsdlFile - sets the location of the local wsdl file

isInitialized

protected boolean isInitialized()
Deprecated. 

onCall

public Object onCall(org.mule.api.MuleEventContext eventContext)
              throws Exception
Deprecated. 
Specified by:
onCall in interface org.mule.api.lifecycle.Callable
Throws:
Exception

setService

public void setService(org.mule.api.service.Service service)
Deprecated. 
Specified by:
setService in interface org.mule.api.service.ServiceAware

initialise

public void initialise()
                throws org.mule.api.lifecycle.InitialisationException
Deprecated. 
Specified by:
initialise in interface org.mule.api.lifecycle.Initialisable
Throws:
org.mule.api.lifecycle.InitialisationException


Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.