Package org.mule.soap.api
Class SoapWebServiceConfigurationBuilder
java.lang.Object
org.mule.soap.api.SoapWebServiceConfigurationBuilder
Builder pattern implementation that creates
SoapWebServiceConfiguration instances.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()enableMtom(boolean mtomEnabled) Specifies that the Web Service is MTOM enabled.includeRMOperations(boolean includeRMOperations) Deprecated.withAddress(String address) Sets the address of the Web Service, if none specified it will be fetched from the wsdl file, if possible.withEncoding(String encoding) Sets the encoding of the messages send and retrieved by the .Sets the port of the service that describes the set of operations that can be performed.withReliableMessaging(ReliableMessagingConfiguration reliableMessaging) Specifies the Reliable Messaging configuration.Sets aTransportResourceLocatorinstance to fetch the wsdl resources.withSecurities(List<SecurityStrategy> security) Sets a list ofSecurityStrategiesto connect with a Secured Soap Web Service.withSecurity(SecurityStrategy security) Sets a newSecurityStrategyto connect with a Secured Soap Web Service.withService(String service) Sets the service of the WSDL we want to perform operations from.withVersion(SoapVersion version) Sets theSoapVersionof the Web Service. defaults to SOAP 1.1withWsdlLocation(String wsdlLocation) Sets the location of the WSDL that describes the SOAP web service.
-
Method Details
-
withWsdlLocation
Sets the location of the WSDL that describes the SOAP web service. This can be an URL to an external resource (e.g http://somewsdl.com/hit?wsdl), just a reference to a local file or an application resource name.- Returns:
- this builder.
-
withAddress
Sets the address of the Web Service, if none specified it will be fetched from the wsdl file, if possible.- Returns:
- this builder.
-
withService
Sets the service of the WSDL we want to perform operations from.- Returns:
- this builder.
-
withPort
Sets the port of the service that describes the set of operations that can be performed.- Returns:
- this builder.
-
withEncoding
Sets the encoding of the messages send and retrieved by the .- Returns:
- this builder.
-
withVersion
Sets theSoapVersionof the Web Service. defaults to SOAP 1.1- Returns:
- this builder.
-
enableMtom
Specifies that the Web Service is MTOM enabled.- Returns:
- this builder.
-
withSecurity
Sets a newSecurityStrategyto connect with a Secured Soap Web Service.Multiple
Security Strategiescan be configured.- Returns:
- this builder.
-
withSecurities
Sets a list ofSecurityStrategiesto connect with a Secured Soap Web Service.- Returns:
- this builder.
-
withResourceLocator
Sets aTransportResourceLocatorinstance to fetch the wsdl resources.- Returns:
- this builder
-
includeRMOperations
@Deprecated public SoapWebServiceConfigurationBuilder includeRMOperations(boolean includeRMOperations) Deprecated.withReliableMessaging(ReliableMessagingConfiguration)must be used to set RM configuration.Specifies the Reliable Messaging operations must be included or not.- Returns:
- this builder
- Since:
- 1.5
-
withReliableMessaging
public SoapWebServiceConfigurationBuilder withReliableMessaging(ReliableMessagingConfiguration reliableMessaging) Specifies the Reliable Messaging configuration.- Returns:
- this builder
- Since:
- 1.6
-
build
- Returns:
- a new
SoapWebServiceConfigurationinstance with the attributes specified.
-
withReliableMessaging(ReliableMessagingConfiguration)must be used to set RM configuration.