public class SoapValidator extends Json2XmlValidator
outputSoapBody
attribute was introduced, two validators were used for a request-reply pattern (an inputValidator for the request and an outputValidator for the reply).
These inputValidator and outputValidator were identical except for the child element of the SOAP body. Because validators use relatively a lot of memory, the outputSoapBody
attribute was added which replaces the outputValidator.
Both the request and the reply are then validated by the inputValidator.
To generate a wsdl with a soap action included one of the following properties must be set to the expected soapAction
wsdl.${adapterName}.${listenerName}.soapAction |
wsdl.${adapterName}.soapAction |
wsdl.soapAction |
XmlValidator.ResponseValidatorWrapper
Modifier and Type | Field and Description |
---|---|
protected boolean |
addSoapEnvelopeToSchemaLocation |
static String |
SOAP_BODY |
static String |
SOAP_ENVELOPE |
static String |
SOAP_HEADER |
INPUT_FORMAT_SESSION_KEY_PREFIX
ABSTRACTXMLVALIDATOR, configurationException, validator
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
SoapValidator() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Configure the XmlValidator
|
protected RootValidations |
createRootValidation(String messageRoot) |
String |
getMessageRoot() |
String |
getResponseRoot() |
String |
getRoot() |
protected boolean |
isConfiguredForMixedValidation() |
void |
setAllowPlainXml(boolean allowPlainXml)
Allow plain XML, without a SOAP Envelope, too.
|
void |
setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation)
A uri reference as a hint as to the location of a schema document with no target namespace.
|
void |
setOutputSoapBody(String outputSoapBody)
Identical to the
soapBody attribute except that it's used for the output message instead of the input message. |
void |
setRoot(String r)
Deprecated.
|
void |
setSchema(String schema)
Deprecated.
|
void |
setSoapBody(String soapBody)
Name of the child element of the SOAP body, or a comma separated list of names to choose from (only one is allowed) (wsdl generator will use the first element) (use empty value to allow an empty soap body, for example to allow element x and an empty soap body use: x,)
|
void |
setSoapHeader(String soapHeader)
Name of the child element of the SOAP header, or a comma separated list of names to choose from (only one is allowed) (wsdl generator will use the first element) (use empty value to allow an empty soap header, for example to allow element x and an empty soap header use: x,)
|
void |
setSoapHeaderNamespace(String soapHeaderNamespace)
Can be used when the SOAP header element exists multiple times
|
void |
setSoapVersion(SoapVersion soapVersion)
SOAP envelope XSD version to use
|
addNamespace, alignJson, alignXml2Json, createJsonSchema, createJsonSchema, createJsonSchemaDefinitions, createRequestJsonSchema, createResponseJsonSchema, doPipe, getJsonRootValidations, getOutputFormat, getPhysicalDestinationName, setAcceptNamespacelessXml, setAcceptNamespaceLessXml, setAllowJson, setAutoFormat, setCompactJsonArrays, setDeepSearch, setFailOnWildcards, setIgnoreUndeclaredElements, setInputFormatSessionKey, setJsonWithRootElements, setOutputFormat, setOutputFormatSessionKey, setProduceNamespacelessXml, setProduceNamespaceLessXml, setStrictJsonArraySyntax, setTargetNamespace, setValidateJsonToRootElementOnly, storeInputFormat
addInvalidRootNamespaces, addRequestRootValidation, addResponseRootValidation, addRootValidation, afterPropertiesSet, checkSchemaSpecified, determineForward, getCharset, getConfigurationException, getDocumentation, getErrorResult, getIgnoreUnknownNamespaces, getInvalidRootNamespaces, getMessageRoot, getReasonSessionKey, getRequestRootValidations, getResponseRootValidations, getResponseValidator, getRootValidations, getSchema, getSchemas, getSchemas, getSchemas, getSchemasId, getSchemasId, getSoapNamespace, getSpecialDefaultValue, getXmlReasonSessionKey, getXsds, getXSModels, isFullSchemaChecking, isThrowException, isValidateFile, setAddNamespaceToSchema, setCharset, setFullSchemaChecking, setIgnoreCaching, setIgnoreUnknownNamespaces, setImplementation, setImportedNamespacesToIgnore, setImportedSchemaLocationsToIgnore, setReasonSessionKey, setResponseRoot, setRootElementSessionKey, setRootNamespaceSessionKey, setSchemaLocation, setSoapNamespace, setThrowException, setUseBaseImportedSchemaLocationsToIgnore, setValidateFile, setWarn, setXmlReasonSessionKey, setXmlSchemaVersion, start, stop, validate
determineForward, doPipe, setForwardFailureToSuccess, setSchemaSessionKey, validate, validate
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, getParameterOverriddenAttributeValue, getParameterValueList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomain
getSchemaLocation
setName, validate
consumesSessionVariable, doPipe, getForwards, getMaxThreads, registerForward
getName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getName
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public static final String SOAP_ENVELOPE
public static final String SOAP_BODY
public static final String SOAP_HEADER
protected boolean addSoapEnvelopeToSchemaLocation
public void configure() throws ConfigurationException
XmlValidator
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class Json2XmlValidator
ConfigurationException
- when:
XmlValidator.isThrowException()
is false and there is no forward defined
for "failure"protected RootValidations createRootValidation(String messageRoot)
createRootValidation
in class XmlValidator
protected boolean isConfiguredForMixedValidation()
isConfiguredForMixedValidation
in class XmlValidator
@Deprecated public void setSchema(String schema)
XmlValidator
setSchema
in class XmlValidator
public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation)
XmlValidator
setNoNamespaceSchemaLocation
in class XmlValidator
public String getMessageRoot()
getMessageRoot
in interface IXmlValidator
getMessageRoot
in class XmlValidator
public String getResponseRoot()
public String getRoot()
@Deprecated public void setRoot(String r)
setRoot
in class XmlValidator
public void setSoapBody(String soapBody)
public void setOutputSoapBody(String outputSoapBody)
soapBody
attribute except that it's used for the output message instead of the input message. For more information see note 1public void setSoapHeader(String soapHeader)
public void setSoapHeaderNamespace(String soapHeaderNamespace)
public void setSoapVersion(SoapVersion soapVersion)
public void setAllowPlainXml(boolean allowPlainXml)
Copyright © 2023 Frank!Framework. All rights reserved.