public class WsdlGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ESB_SOAP_JMS_NAMESPACE |
protected static String |
ESB_SOAP_JNDI_NAMESPACE |
protected static String |
ESB_SOAP_JNDI_NAMESPACE_PREFIX |
protected static String |
ESB_SOAP_TNS_BASE_URI |
protected static List<String> |
excludeXsds |
protected org.apache.logging.log4j.Logger |
log |
protected static String |
SOAP_HTTP_NAMESPACE |
protected static String |
SOAP_JMS_NAMESPACE |
protected static String |
SOAP_JMS_NAMESPACE_PREFIX |
protected static String |
TARGET_NAMESPACE_PREFIX |
static String |
WSDL_EXTENSION |
protected static String |
WSDL_NAMESPACE |
protected static String |
WSDL_NAMESPACE_PREFIX |
protected static String |
WSDL_SOAP_NAMESPACE |
protected static String |
WSDL_SOAP_NAMESPACE_PREFIX |
protected static String |
WSDL_SOAP12_NAMESPACE |
protected static String |
WSDL_SOAP12_NAMESPACE_PREFIX |
protected static String |
XSD_NAMESPACE |
protected static String |
XSD_NAMESPACE_PREFIX |
Constructor and Description |
---|
WsdlGenerator(PipeLine pipeLine) |
WsdlGenerator(PipeLine pipeLine,
String generationInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
binding(XMLStreamWriter w) |
protected void |
documentation(XMLStreamWriter w)
Outputs a 'documentation' section of the WSDL
|
protected QName |
getBodyElement(IXmlValidator xmlValidator,
Set<IXSD> xsds,
String type) |
protected QName |
getBodyElement(IXmlValidator xmlValidator,
Set<IXSD> xsds,
String type,
boolean outputMode) |
String |
getDocumentation() |
String |
getFilename() |
protected QName |
getHeaderElement(IXmlValidator xmlValidator,
Set<IXSD> xsds) |
protected String |
getLocation(String defaultLocation) |
String |
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) |
String |
getTargetNamespace() |
String |
getTargetNamespacePrefix() |
Set<IXSD> |
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 |
isUseIncludes() |
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 |
messages(XMLStreamWriter w)
Outputs the 'messages' section.
|
protected void |
portType(XMLStreamWriter w) |
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 |
types(XMLStreamWriter w)
Output the 'types' section of the WSDL
|
protected void |
warn(String warning) |
protected void |
warn(String warning,
Exception e) |
protected void |
warnings(XMLStreamWriter w) |
protected void |
writeEsbSoapJndiContext(XMLStreamWriter w,
JmsListener listener) |
protected void |
writeSoapBody(XMLStreamWriter w,
QName bodyElement) |
protected void |
writeSoapHeader(XMLStreamWriter w,
String root,
QName headerElement,
boolean isHeaderOptional) |
protected void |
writeSoapOperation(XMLStreamWriter w,
IListener<?> listener) |
void |
wsdl(OutputStream out,
String defaultLocation)
Writes the WSDL to an output stream
|
void |
zip(OutputStream stream,
String defaultLocation)
Generates a zip file (and writes it to the given outputstream), containing
the WSDL and all referenced XSD's.
|
protected org.apache.logging.log4j.Logger log
protected static final String WSDL_NAMESPACE
protected static final String WSDL_NAMESPACE_PREFIX
protected static final String XSD_NAMESPACE
protected static final String XSD_NAMESPACE_PREFIX
protected static final String WSDL_SOAP_NAMESPACE
protected static final String WSDL_SOAP_NAMESPACE_PREFIX
protected static final String WSDL_SOAP12_NAMESPACE
protected static final String WSDL_SOAP12_NAMESPACE_PREFIX
protected static final String SOAP_HTTP_NAMESPACE
protected static final String SOAP_JMS_NAMESPACE
protected static final String SOAP_JMS_NAMESPACE_PREFIX
protected static final String ESB_SOAP_JMS_NAMESPACE
protected static final String ESB_SOAP_JNDI_NAMESPACE
protected static final String ESB_SOAP_JNDI_NAMESPACE_PREFIX
protected static final String ESB_SOAP_TNS_BASE_URI
protected static final String TARGET_NAMESPACE_PREFIX
public static final String WSDL_EXTENSION
public WsdlGenerator(PipeLine pipeLine)
public String getName()
public String getFilename()
public String getTargetNamespace()
public String getDocumentation()
public void setDocumentation(String documentation)
public boolean isIndent()
public void setIndent(boolean indent)
public boolean isUseIncludes()
public void setUseIncludes(boolean useIncludes)
public String getTargetNamespacePrefix()
public void setTargetNamespacePrefix(String targetNamespacePrefix)
public void init() throws ConfigurationException
ConfigurationException
protected boolean isHeaderOptional(IXmlValidator xmlValidator)
public Set<IXSD> getXsds(IXmlValidator xmlValidator) throws ConfigurationException
ConfigurationException
public void zip(OutputStream stream, String defaultLocation) throws IOException, ConfigurationException, XMLStreamException
public void wsdl(OutputStream out, String defaultLocation) throws XMLStreamException, IOException, ConfigurationException
protected void documentation(XMLStreamWriter w) throws XMLStreamException
XMLStreamException
protected void types(XMLStreamWriter w) throws XMLStreamException, IOException, ConfigurationException
w
- XMLStreamException
IOException
ConfigurationException
protected void messages(XMLStreamWriter w) throws XMLStreamException, IOException, ConfigurationException
w
- XMLStreamException
IOException
ConfigurationException
protected void message(XMLStreamWriter w, String root, Collection<QName> parts) throws XMLStreamException
XMLStreamException
protected void portType(XMLStreamWriter w) throws XMLStreamException
XMLStreamException
protected void binding(XMLStreamWriter w) throws XMLStreamException
XMLStreamException
protected void httpBinding(XMLStreamWriter w, String namePrefix) throws XMLStreamException
XMLStreamException
protected void writeSoapOperation(XMLStreamWriter w, IListener<?> listener) throws XMLStreamException
XMLStreamException
protected void writeSoapHeader(XMLStreamWriter w, String root, QName headerElement, boolean isHeaderOptional) throws XMLStreamException
XMLStreamException
protected void writeSoapBody(XMLStreamWriter w, QName bodyElement) throws XMLStreamException
XMLStreamException
protected void jmsBinding(XMLStreamWriter w, String namePrefix) throws XMLStreamException
XMLStreamException
protected void service(XMLStreamWriter w, String defaultLocation) throws XMLStreamException
XMLStreamException
protected void httpService(XMLStreamWriter w, String defaultLocation, String namePrefix) throws XMLStreamException
XMLStreamException
protected void jmsService(XMLStreamWriter w, JmsListener listener, String namePrefix) throws XMLStreamException
XMLStreamException
protected void writeEsbSoapJndiContext(XMLStreamWriter w, JmsListener listener) throws XMLStreamException
XMLStreamException
protected void warnings(XMLStreamWriter w) throws XMLStreamException
XMLStreamException
protected String getRoot(IXmlValidator xmlValidator)
protected String getRoot(IXmlValidator xmlValidator, boolean outputMode)
protected QName getHeaderElement(IXmlValidator xmlValidator, Set<IXSD> xsds)
protected QName getBodyElement(IXmlValidator xmlValidator, Set<IXSD> xsds, String type)
protected QName getBodyElement(IXmlValidator xmlValidator, Set<IXSD> xsds, String type, boolean outputMode)
protected void warn(String warning)
Copyright © 2023 Frank!Framework. All rights reserved.