Package org.mule.soapkit.soap.api.server
Class SoapServerConfigurationBuilder
java.lang.Object
org.mule.soapkit.soap.api.server.SoapServerConfigurationBuilder
Builder pattern implementation that creates
SoapServerConfiguration instances.- Since:
- 4.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()enableMtom(boolean mtomEnabled) Specifies that the Web Service is MTOM enabled.enableResponseXMLDeclaration(boolean responseXMLDeclarationEnabled) Specifies that the Web Service has response XML Declaration enabled.enableValidation(boolean validationEnabled) Specifies that the Web Service has inbound validation enabled.withNamespaces(Map<String, String> namespaces) Sets the port of the service that describes the set of operations that can be performed.withService(String service) Sets the service of the WSDL we want to perform operations from.withValidationErrorLevel(ValidationLevel validationLevel) withVersion(org.mule.soap.api.SoapVersion version) Sets theSoapVersionof the Web Service. defaults to SOAP 1.1withWsdlLocation(URL wsdlLocation) Sets the location of the WSDL that describes the SOAP web service.
-
Method Details
-
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.
-
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.
-
enableValidation
Specifies that the Web Service has inbound validation enabled.- Returns:
- this builder.
-
enableResponseXMLDeclaration
public SoapServerConfigurationBuilder enableResponseXMLDeclaration(boolean responseXMLDeclarationEnabled) Specifies that the Web Service has response XML Declaration enabled.- Returns:
- this builder.
-
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.
-
withNamespaces
-
withValidationErrorLevel
-
build
- Returns:
- a new
SoapServerConfigurationinstance with the attributes specified.
-