groovyx.net.ws.cxf
Class SoapHelper

java.lang.Object
  extended by groovyx.net.ws.cxf.AbstractSettingHelper
      extended by groovyx.net.ws.cxf.SoapHelper

public class SoapHelper
extends AbstractSettingHelper

Helper to configure the SOAP connection

Since:
0.5
Author:
Tog
See Also:
SettingConstants#SOAP_SERVICE_NAMESPACE, SettingConstants#SOAP_SERVICE_LOCALPART, SettingConstants#SOAP_PORT_NAMESPACE, SettingConstants#SOAP_PORT_LOCALPART

Field Summary
 
Fields inherited from class groovyx.net.ws.cxf.AbstractSettingHelper
properties
 
Constructor Summary
SoapHelper()
           
 
Method Summary
protected  void configureClientParameters(org.apache.cxf.endpoint.Client client)
          Sets the user and the password for the proxy authorization.
 org.apache.cxf.binding.soap.model.SoapBindingInfo getBinding()
           
protected  void setDefaultProperties()
          Select the default SOAP version in SoapVersion.SOAP_1_1, SoapVersion.SOAP_1_2, currently SoapVersion.SOAP_1_1 is used.
 void setPreferredSoapVersion(SoapVersion soapVersion)
          Sets the value of the SOAP version.
 
Methods inherited from class groovyx.net.ws.cxf.AbstractSettingHelper
enable, initialize, isConfigured, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapHelper

public SoapHelper()
Method Detail

setDefaultProperties

protected void setDefaultProperties()
Select the default SOAP version in SoapVersion.SOAP_1_1, SoapVersion.SOAP_1_2, currently SoapVersion.SOAP_1_1 is used.

Specified by:
setDefaultProperties in class AbstractSettingHelper

setPreferredSoapVersion

public void setPreferredSoapVersion(SoapVersion soapVersion)
Sets the value of the SOAP version.

Parameters:
soapVersion - value of the preferred SOAP version

getBinding

public org.apache.cxf.binding.soap.model.SoapBindingInfo getBinding()
Returns:
the Binding BindingInfo corresponding to the preferred SOAP version.

configureClientParameters

protected void configureClientParameters(org.apache.cxf.endpoint.Client client)
Sets the user and the password for the proxy authorization.

Specified by:
configureClientParameters in class AbstractSettingHelper
Parameters:
client - The client ro configure.