public class WsdlXmlValidator extends SoapValidator
XmlValidator.ResponseValidatorWrapper
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_INTERNAL_REFERENCE_PREFIX |
addSoapEnvelopeToSchemaLocation
INPUT_FORMAT_SESSION_KEY_PREFIX
configurationException, validator
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
WsdlXmlValidator() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addNamespaces(javax.wsdl.extensions.schema.Schema schema,
Map<String,String> namespaces) |
protected void |
checkSchemaSpecified() |
void |
configure()
Configure the XmlValidator
|
protected javax.wsdl.Definition |
getDefinition(String wsdl) |
String |
getSchemasId() |
Set<IXSD> |
getXsds() |
void |
setSchemaLocationToAdd(String schemaLocationToAdd)
Pairs of URI references which will be added to the WSDL
|
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 |
setSoapBodyNamespace(String soapBodyNamespace)
Creates
schemaLocation attribute based on the WSDL and replaces the namespace of the soap body element |
void |
setWsdl(String wsdl)
The WSDL to read the XSDs from
|
String |
toExtendedString() |
protected PipeForward |
validate(Message messageToValidate,
PipeLineSession session,
boolean responseMode,
String messageRoot) |
createRootValidation, getMessageRoot, getResponseRoot, getRoot, isConfiguredForMixedValidation, setAllowPlainXml, setIgnoreUnknownNamespaces, setNoNamespaceSchemaLocation, setOutputSoapBody, setRoot, setSchema, setSoapHeader, setSoapHeaderNamespace, setSoapVersion
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, afterPropertiesSet, determineForward, getCharset, getConfigurationException, getDocumentation, getErrorResult, getIgnoreUnknownNamespaces, getInvalidRootNamespaces, getMessageRoot, getReasonSessionKey, getRequestRootValidations, getResponseRootValidations, getResponseValidator, getRootValidations, getSchema, getSchemas, getSchemas, getSchemas, getSchemasId, getSoapNamespace, getSpecialDefaultValue, 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, stop
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, 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, throwEvent
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public static final String RESOURCE_INTERNAL_REFERENCE_PREFIX
public void configure() throws ConfigurationException
XmlValidator
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class SoapValidator
ConfigurationException
- when:
XmlValidator.isThrowException()
is false and there is no forward defined
for "failure"protected javax.wsdl.Definition getDefinition(String wsdl) throws ConfigurationException
ConfigurationException
protected PipeForward validate(Message messageToValidate, PipeLineSession session, boolean responseMode, String messageRoot) throws XmlValidatorException, PipeRunException, ConfigurationException
validate
in class XmlValidator
XmlValidatorException
PipeRunException
ConfigurationException
protected void checkSchemaSpecified() throws ConfigurationException
checkSchemaSpecified
in class XmlValidator
ConfigurationException
protected static void addNamespaces(javax.wsdl.extensions.schema.Schema schema, Map<String,String> namespaces)
public String getSchemasId()
getSchemasId
in interface SchemasProvider
getSchemasId
in class XmlValidator
public Set<IXSD> getXsds() throws ConfigurationException
getXsds
in interface IXmlValidator
getXsds
in class XmlValidator
ConfigurationException
public String toExtendedString()
public void setWsdl(String wsdl)
public void setSoapBody(String soapBody)
SoapValidator
setSoapBody
in class SoapValidator
public void setSchemaLocationToAdd(String schemaLocationToAdd)
public void setSoapBodyNamespace(String soapBodyNamespace)
schemaLocation
attribute based on the WSDL and replaces the namespace of the soap body elementCopyright © 2023 Frank!Framework. All rights reserved.