Package org.frankframework.soap
Class WsdlGenerator
java.lang.Object
org.frankframework.soap.WsdlGenerator
Utility class to generate the WSDL. Straight-forwardly implemented using stax only.
An object of this class represents the WSDL associated with one IBIS pipeline.
- Author:
- Michiel Meeuwissen, Jaco de Groot
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.logging.log4j.Logger
protected static final String
protected static final String
static final String
protected static final String
static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
ConstructorDescriptionWsdlGenerator
(PipeLine pipeLine) WsdlGenerator
(PipeLine pipeLine, String generationInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
Outputs a 'documentation' section of the WSDLprotected QName
getBodyElement
(IXmlValidator xmlValidator, Set<IXSD> xsds, String type) protected QName
getBodyElement
(IXmlValidator xmlValidator, Set<IXSD> xsds, String type, boolean outputMode) protected QName
getHeaderElement
(IXmlValidator xmlValidator, Set<IXSD> xsds) protected String
getLocation
(String defaultLocation) getName()
protected String
getRoot
(IXmlValidator xmlValidator) protected String
getRoot
(IXmlValidator xmlValidator, boolean outputMode) protected QName
getRootElement
(Set<IXSD> xsds, String root) protected QName
getRootElement
(Set<IXSD> xsds, String root, String namespace) protected String
getSoapAction
(IListener<?> listener) getXsds
(IXmlValidator xmlValidator) protected void
httpBinding
(XMLStreamWriter w, String namePrefix) protected void
httpService
(XMLStreamWriter w, String defaultLocation, String namePrefix) void
init()
protected boolean
isHeaderOptional
(IXmlValidator xmlValidator) boolean
isIndent()
boolean
protected void
jmsBinding
(XMLStreamWriter w, String namePrefix) protected void
jmsService
(XMLStreamWriter w, JmsListener listener, String namePrefix) protected void
message
(XMLStreamWriter w, String root, Collection<QName> parts) protected void
Outputs the 'messages' section.protected void
protected void
service
(XMLStreamWriter w, String defaultLocation) void
setDocumentation
(String documentation) void
setIndent
(boolean indent) void
setTargetNamespacePrefix
(String targetNamespacePrefix) void
setUseIncludes
(boolean useIncludes) protected void
Output the 'types' section of the WSDLprotected void
protected void
protected void
protected void
writeSoapBody
(XMLStreamWriter w, QName bodyElement) protected void
writeSoapHeader
(XMLStreamWriter w, String root, QName headerElement, boolean isHeaderOptional) void
writeSoapOperation
(XMLStreamWriter w, IListener<?> listener) void
wsdl
(OutputStream out, String defaultLocation) Writes the WSDL to an output streamvoid
zip
(OutputStream stream, String defaultLocation) Generates a zip file (and writes it to the given outputstream), containing the WSDL and all referenced XSD's.
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log -
WSDL_NAMESPACE
- See Also:
-
WSDL_NAMESPACE_PREFIX
- See Also:
-
XSD_NAMESPACE
- See Also:
-
XSD_NAMESPACE_PREFIX
- See Also:
-
WSDL_SOAP_NAMESPACE
- See Also:
-
WSDL_SOAP_NAMESPACE_PREFIX
- See Also:
-
WSDL_SOAP12_NAMESPACE
- See Also:
-
WSDL_SOAP12_NAMESPACE_PREFIX
- See Also:
-
SOAP_HTTP_NAMESPACE
- See Also:
-
SOAP_JMS_NAMESPACE
- See Also:
-
SOAP_JMS_NAMESPACE_PREFIX
- See Also:
-
TARGET_NAMESPACE_PREFIX
- See Also:
-
WSDL_EXTENSION
- See Also:
-
excludeXsds
-
-
Constructor Details
-
WsdlGenerator
-
WsdlGenerator
-
-
Method Details
-
getName
-
getFilename
-
getTargetNamespace
-
getDocumentation
-
setDocumentation
-
isIndent
public boolean isIndent() -
setIndent
public void setIndent(boolean indent) -
isUseIncludes
public boolean isUseIncludes() -
setUseIncludes
public void setUseIncludes(boolean useIncludes) -
getTargetNamespacePrefix
-
setTargetNamespacePrefix
-
init
- Throws:
ConfigurationException
-
isHeaderOptional
-
getXsds
- Throws:
ConfigurationException
-
zip
public void zip(OutputStream stream, String defaultLocation) throws IOException, ConfigurationException, XMLStreamException Generates a zip file (and writes it to the given outputstream), containing the WSDL and all referenced XSD's. -
wsdl
public void wsdl(OutputStream out, String defaultLocation) throws XMLStreamException, IOException, ConfigurationException Writes the WSDL to an output stream -
documentation
Outputs a 'documentation' section of the WSDL- Throws:
XMLStreamException
-
types
protected void types(XMLStreamWriter w) throws XMLStreamException, IOException, ConfigurationException Output the 'types' section of the WSDL- Parameters:
w
- Writer to which XML is written.- Throws:
XMLStreamException
- Thrown is there is an exception writing to stream.IOException
- Thrown if there's an IOException during writing.ConfigurationException
- Thrown if there's an error during configuration.
-
messages
Outputs the 'messages' section.- Parameters:
w
- Writer to which XML is written.- Throws:
XMLStreamException
- Thrown is there is an exception writing to stream.
-
message
protected void message(XMLStreamWriter w, String root, Collection<QName> parts) throws XMLStreamException - Throws:
XMLStreamException
-
portType
- Throws:
XMLStreamException
-
getSoapAction
-
getLocation
-
binding
- Throws:
XMLStreamException
-
httpBinding
- Throws:
XMLStreamException
-
writeSoapOperation
- Throws:
XMLStreamException
-
writeSoapHeader
protected void writeSoapHeader(XMLStreamWriter w, String root, QName headerElement, boolean isHeaderOptional) throws XMLStreamException - Throws:
XMLStreamException
-
writeSoapBody
- Throws:
XMLStreamException
-
jmsBinding
- Throws:
XMLStreamException
-
service
- Throws:
XMLStreamException
-
httpService
protected void httpService(XMLStreamWriter w, String defaultLocation, String namePrefix) throws XMLStreamException - Throws:
XMLStreamException
-
jmsService
protected void jmsService(XMLStreamWriter w, JmsListener listener, String namePrefix) throws XMLStreamException - Throws:
XMLStreamException
-
warnings
- Throws:
XMLStreamException
-
getRoot
-
getRoot
-
getRootElement
-
getRootElement
-
getHeaderElement
-
getBodyElement
-
getBodyElement
protected QName getBodyElement(IXmlValidator xmlValidator, Set<IXSD> xsds, String type, boolean outputMode) -
warn
-
warn
-