Package org.frankframework.pipes
Class WsdlXmlValidator
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasTransactionAttribute,IConfigurable,IDualModeValidator,IForwardTarget,IPipe,IScopeProvider,IValidator,IWithParameters,IXmlValidator,NameAware,EventThrowing,SchemasProvider,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle
- Direct Known Subclasses:
ApiWsdlXmlValidator,FxfXmlValidator
XmlValidator that will read the XSD's to use from a WSDL. As it extends the
SoapValidator is will also add the SOAP envelope XSD.
- Author:
- Michiel Meeuwissen, Jaco de Groot
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.pipes.XmlValidator
XmlValidator.ResponseValidatorWrapper -
Field Summary
FieldsFields inherited from class org.frankframework.soap.SoapValidator
addSoapEnvelopeToSchemaLocationFields inherited from class org.frankframework.pipes.Json2XmlValidator
INPUT_FORMAT_SESSION_KEY_PREFIX, READ_AHEAD_LIMITFields inherited from class org.frankframework.pipes.XmlValidator
configurationException, validatorFields inherited from class org.frankframework.pipes.AbstractPipe
parameterNamesMustBeUniqueFields inherited from class org.frankframework.core.TransactionAttributes
logFields inherited from interface org.frankframework.core.IPipe
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddNamespaces(javax.wsdl.extensions.schema.Schema schema, Map<String, String> namespaces) protected voidvoidConfigure the XmlValidatorprotected javax.wsdl.DefinitiongetDefinition(String wsdl) getXsds()voidsetSchemaLocationToAdd(String schemaLocationToAdd) Pairs of URI references which will be added to the WSDLvoidsetSoapBody(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,).voidsetSoapBodyNamespace(String soapBodyNamespace) CreatesschemaLocationattribute based on the WSDL and replaces the namespace of the soap body elementvoidThe WSDL to read the XSDs fromprotected PipeForwardvalidate(Message messageToValidate, PipeLineSession session, boolean responseMode, String messageRoot) Methods inherited from class org.frankframework.soap.SoapValidator
createRootValidation, getMessageRoot, getResponseRoot, getRoot, isConfiguredForMixedValidation, setAllowPlainXml, setIgnoreUnknownNamespaces, setNoNamespaceSchemaLocation, setOutputSoapBody, setRoot, setSchema, setSoapHeader, setSoapHeaderNamespace, setSoapVersionMethods inherited from class org.frankframework.pipes.Json2XmlValidator
addNamespace, alignJson, alignXml2Json, createJsonSchema, createJsonSchema, doPipe, getJsonRootValidations, getOutputFormat, setAcceptNamespacelessXml, setAcceptNamespaceLessXml, setAllowJson, setAutoFormat, setCompactJsonArrays, setDeepSearch, setFailOnWildcards, setIgnoreUndeclaredElements, setInputFormatSessionKey, setJsonWithRootElements, setOmitXmlDeclaration, setOutputFormat, setOutputFormatSessionKey, setProduceNamespacelessXml, setProduceNamespaceLessXml, setStrictJsonArraySyntax, setTargetNamespace, setValidateJsonToRootElementOnly, storeInputFormatMethods inherited from class org.frankframework.pipes.XmlValidator
addInvalidRootNamespaces, addRequestRootValidation, addResponseRootValidation, afterPropertiesSet, determineForward, getCharset, getConfigurationException, getDocumentation, getErrorResult, getIgnoreUnknownNamespaces, getInvalidRootNamespaces, getMessageRoot, getReasonSessionKey, getRequestRootValidations, getResponseRootValidations, getResponseValidator, getRootValidations, getSchema, getSchemas, getSchemas, getSchemas, getSchemasId, getSoapNamespace, getXmlReasonSessionKey, getXSModels, isFullSchemaChecking, isThrowException, isValidateFile, setAddNamespaceToSchema, setCharset, setFullSchemaChecking, setIgnoreCaching, setImplementation, setImportedNamespacesToIgnore, setImportedSchemaLocationsToIgnore, setReasonSessionKey, setResponseRoot, setRootElementSessionKey, setRootNamespaceSessionKey, setSchemaLocation, setSoapNamespace, setThrowException, setUseBaseImportedSchemaLocationsToIgnore, setValidateFile, setWarn, setXmlReasonSessionKey, setXmlSchemaVersion, start, stopMethods inherited from class org.frankframework.pipes.AbstractValidator
determineForward, doPipe, setForwardFailureToSuccess, setSchemaSessionKey, validate, validateMethods inherited from class org.frankframework.pipes.FixedForwardPipe
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipeMethods inherited from class org.frankframework.pipes.AbstractPipe
addForward, addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getParameterList, hasRegisteredForward, isRunning, registerEvent, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, sizeStatisticsEnabled, throwEventMethods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttributeMethods inherited from interface org.frankframework.core.IForwardTarget
getNameMethods inherited from interface org.frankframework.core.IPipe
addForward, consumesSessionVariable, doPipe, getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getForwards, getGetInputFromFixedValue, getGetInputFromSessionKey, getHideRegex, getLocker, getLogIntermediaryResults, getMaxThreads, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, registerEvent, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setPipeLine, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setStoreResultInSessionKey, setWriteToSecLog, sizeStatisticsEnabled, throwEvent, throwEventMethods inherited from interface org.frankframework.core.IValidator
setName, validateMethods inherited from interface org.frankframework.core.IXmlValidator
getSchemaLocationMethods inherited from interface org.springframework.context.Lifecycle
isRunning
-
Field Details
-
RESOURCE_INTERNAL_REFERENCE_PREFIX
- See Also:
-
-
Constructor Details
-
WsdlXmlValidator
public WsdlXmlValidator()
-
-
Method Details
-
configure
Description copied from class:XmlValidatorConfigure the XmlValidator- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classSoapValidator- Throws:
ConfigurationException- when:- the schema cannot be found
XmlValidator.isThrowException()isfalseand there is no forward defined for "failure"- when the parser does not accept setting the properties for validating
-
getDefinition
- Throws:
ConfigurationException
-
validate
protected PipeForward validate(Message messageToValidate, PipeLineSession session, boolean responseMode, String messageRoot) throws XmlValidatorException, PipeRunException, ConfigurationException - Overrides:
validatein classXmlValidator- Throws:
XmlValidatorExceptionPipeRunExceptionConfigurationException
-
checkSchemaSpecified
- Overrides:
checkSchemaSpecifiedin classXmlValidator- Throws:
ConfigurationException
-
addNamespaces
-
getSchemasId
- Specified by:
getSchemasIdin interfaceSchemasProvider- Overrides:
getSchemasIdin classXmlValidator
-
getXsds
- Specified by:
getXsdsin interfaceIXmlValidator- Overrides:
getXsdsin classXmlValidator- Throws:
ConfigurationException
-
toExtendedString
-
setWsdl
The WSDL to read the XSDs from -
setSoapBody
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,). In case the request contains SOAPAction header and the WSDL contains an element specific to that SOAPAction, it will use that element as SOAP body.- Overrides:
setSoapBodyin classSoapValidator
-
setSchemaLocationToAdd
Pairs of URI references which will be added to the WSDL -
setSoapBodyNamespace
CreatesschemaLocationattribute based on the WSDL and replaces the namespace of the soap body element
-