public class WSDLSerializationUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CDATA_END |
static String |
CDATA_END_REGEX |
static String |
CDATA_START |
static String |
CDATA_START_REGEX |
Constructor and Description |
---|
WSDLSerializationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addExtensionElement(org.apache.axiom.om.OMFactory fac,
org.apache.axiom.om.OMElement element,
String name,
String att1Name,
String att1Value,
org.apache.axiom.om.OMNamespace soapNameSpace) |
static void |
addHTTPHeaderElements(org.apache.axiom.om.OMFactory omFactory,
ArrayList list,
org.apache.axiom.om.OMNamespace whttp,
org.apache.axiom.om.OMElement element,
Map nameSpaceMap)
Adds a HTTP header element to a given OMElement
|
static void |
addPoliciesAsExtensibleElement(AxisDescription description,
org.apache.axiom.om.OMElement descriptionElement) |
static void |
addSOAPHeaderElements(org.apache.axiom.om.OMFactory omFactory,
ArrayList list,
org.apache.axiom.om.OMNamespace wsoap,
org.apache.axiom.om.OMElement element,
Map nameSpaceMap)
Adds a soap header element to a given OMElement
|
static void |
addSOAPModuleElements(org.apache.axiom.om.OMFactory omFactory,
ArrayList list,
org.apache.axiom.om.OMNamespace wsoap,
org.apache.axiom.om.OMElement element)
Adds a soap module element to a given OMElement
|
static void |
addWSAddressingToBinding(String addressingFlag,
org.apache.axiom.om.OMFactory omFactory,
org.apache.axiom.om.OMElement bindingElement,
org.apache.axiom.om.OMNamespace wsaw) |
static void |
addWSAWActionAttribute(org.apache.axiom.om.OMElement element,
String action,
org.apache.axiom.om.OMNamespace wsaw) |
static void |
addWSDLDocumentationElement(AxisDescription axisDescription,
org.apache.axiom.om.OMElement omElement,
org.apache.axiom.om.OMFactory omFactory,
org.apache.axiom.om.OMNamespace wsdl) |
static String |
extractHostIP(String serviceURL) |
static org.apache.axiom.om.OMElement |
generateHTTPBinding(org.apache.axiom.om.OMFactory fac,
AxisService axisService,
org.apache.axiom.om.OMNamespace wsdl,
org.apache.axiom.om.OMNamespace whttp,
org.apache.axiom.om.OMNamespace tns,
String serviceName)
Generates a default HTTP Binding for a given AxisService
|
static org.apache.axiom.om.OMElement |
generateServiceElement(org.apache.axiom.om.OMFactory omFactory,
org.apache.axiom.om.OMNamespace wsdl,
org.apache.axiom.om.OMNamespace tns,
AxisService axisService,
boolean disableREST,
boolean disableSOAP12,
boolean disableSOAP11,
String serviceName)
Generates a default service element
|
static org.apache.axiom.om.OMElement |
generateServiceElement(org.apache.axiom.om.OMFactory omFactory,
org.apache.axiom.om.OMNamespace wsdl,
org.apache.axiom.om.OMNamespace tns,
AxisService axisService,
boolean disableREST,
boolean disableSOAP12,
boolean disableSOAP11,
String[] eprs,
String serviceName)
Generates a default service element
|
static org.apache.axiom.om.OMElement |
generateSOAP11Binding(org.apache.axiom.om.OMFactory fac,
AxisService axisService,
org.apache.axiom.om.OMNamespace wsdl,
org.apache.axiom.om.OMNamespace wsoap,
org.apache.axiom.om.OMNamespace tns,
String serviceName)
Generates a default SOAP 11 Binding for a given AxisService
|
static org.apache.axiom.om.OMElement |
generateSOAP12Binding(org.apache.axiom.om.OMFactory fac,
AxisService axisService,
org.apache.axiom.om.OMNamespace wsdl,
org.apache.axiom.om.OMNamespace wsoap,
org.apache.axiom.om.OMNamespace tns,
String serviceName)
Generates a default SOAP 12 Binding for a given AxisService
|
static String |
getElementName(AxisMessage axisMessage,
Map nameSpaceMap)
Gets the correct element name for a given message
|
static String |
getPrefix(String namespace,
Map<String,String> nameSpaceMap)
Given a namespace it returns the prefix for that namespace
|
static void |
populateNamespaces(org.apache.axiom.om.OMElement descriptionElement,
Map nameSpaceMap)
Adds the namespaces to the given OMElement
|
public static final String CDATA_START
public static final String CDATA_START_REGEX
public static final String CDATA_END
public static final String CDATA_END_REGEX
public static String getPrefix(String namespace, Map<String,String> nameSpaceMap)
namespace
- - The namespace that the prefix is needed fornameSpaceMap
- - The namespaceMappublic static String getElementName(AxisMessage axisMessage, Map nameSpaceMap)
axisMessage
- - The axisMessagenameSpaceMap
- - The namespaceMappublic static void addSOAPHeaderElements(org.apache.axiom.om.OMFactory omFactory, ArrayList list, org.apache.axiom.om.OMNamespace wsoap, org.apache.axiom.om.OMElement element, Map nameSpaceMap)
omFactory
- - An OMFactorylist
- - The arraylist of soapHeaderMessageswsoap
- - The WSDL 2.0 SOAP namespaceelement
- - The element that the header should be added tonameSpaceMap
- - The namespaceMappublic static void addSOAPModuleElements(org.apache.axiom.om.OMFactory omFactory, ArrayList list, org.apache.axiom.om.OMNamespace wsoap, org.apache.axiom.om.OMElement element)
omFactory
- - An OMFactorylist
- - The arraylist of soapModuleMessageswsoap
- - The WSDL 2.0 SOAP namespaceelement
- - The element that the header should be added topublic static void addHTTPHeaderElements(org.apache.axiom.om.OMFactory omFactory, ArrayList list, org.apache.axiom.om.OMNamespace whttp, org.apache.axiom.om.OMElement element, Map nameSpaceMap)
omFactory
- - An OMFactorylist
- - The arraylist of HTTPHeaderMessageswhttp
- - The WSDL 2.0 HTTP namespaceelement
- - The element that the header should be added tonameSpaceMap
- - The namespaceMappublic static org.apache.axiom.om.OMElement generateSOAP11Binding(org.apache.axiom.om.OMFactory fac, AxisService axisService, org.apache.axiom.om.OMNamespace wsdl, org.apache.axiom.om.OMNamespace wsoap, org.apache.axiom.om.OMNamespace tns, String serviceName)
fac
- - The OMFactoryaxisService
- - The AxisServicewsdl
- the WSDL namespacewsoap
- - The WSDL 2.0 SOAP namespacetns
- - The target namespacepublic static org.apache.axiom.om.OMElement generateSOAP12Binding(org.apache.axiom.om.OMFactory fac, AxisService axisService, org.apache.axiom.om.OMNamespace wsdl, org.apache.axiom.om.OMNamespace wsoap, org.apache.axiom.om.OMNamespace tns, String serviceName)
fac
- - The OMFactoryaxisService
- - The AxisServicewsdl
- the WSDL namespacewsoap
- - The WSDL 2.0 SOAP namespacetns
- - The target namespacepublic static org.apache.axiom.om.OMElement generateHTTPBinding(org.apache.axiom.om.OMFactory fac, AxisService axisService, org.apache.axiom.om.OMNamespace wsdl, org.apache.axiom.om.OMNamespace whttp, org.apache.axiom.om.OMNamespace tns, String serviceName)
fac
- - The OMFactoryaxisService
- - The AxisServicewsdl
- the WSDL namespacewhttp
- - The WSDL 2.0 HTTP namespacetns
- - The target namespacepublic static org.apache.axiom.om.OMElement generateServiceElement(org.apache.axiom.om.OMFactory omFactory, org.apache.axiom.om.OMNamespace wsdl, org.apache.axiom.om.OMNamespace tns, AxisService axisService, boolean disableREST, boolean disableSOAP12, boolean disableSOAP11, String serviceName) throws AxisFault
omFactory
- - The OMFactorywsdl
- the WSDL namespacetns
- - The targetnamespaceaxisService
- - The AxisServicedisableREST
- only generate REST endpoint if this is falsedisableSOAP12
- only generate SOAP 1.2 endpoint if this is falseAxisFault
- - Thrown in case an exception occurspublic static org.apache.axiom.om.OMElement generateServiceElement(org.apache.axiom.om.OMFactory omFactory, org.apache.axiom.om.OMNamespace wsdl, org.apache.axiom.om.OMNamespace tns, AxisService axisService, boolean disableREST, boolean disableSOAP12, boolean disableSOAP11, String[] eprs, String serviceName) throws AxisFault
omFactory
- - The OMFactorywsdl
- the WSDL namespacetns
- - The targetnamespaceaxisService
- - The AxisServicedisableREST
- only generate REST endpoint if this is falsedisableSOAP12
- only generate SOAP 1.2 endpoint if this is falseAxisFault
- - Thrown in case an exception occurspublic static void populateNamespaces(org.apache.axiom.om.OMElement descriptionElement, Map nameSpaceMap)
descriptionElement
- - The OMElement that the namespaces should be added tonameSpaceMap
- - The namespaceMappublic static void addWSAWActionAttribute(org.apache.axiom.om.OMElement element, String action, org.apache.axiom.om.OMNamespace wsaw)
public static void addExtensionElement(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMElement element, String name, String att1Name, String att1Value, org.apache.axiom.om.OMNamespace soapNameSpace)
public static void addWSAddressingToBinding(String addressingFlag, org.apache.axiom.om.OMFactory omFactory, org.apache.axiom.om.OMElement bindingElement, org.apache.axiom.om.OMNamespace wsaw)
public static void addWSDLDocumentationElement(AxisDescription axisDescription, org.apache.axiom.om.OMElement omElement, org.apache.axiom.om.OMFactory omFactory, org.apache.axiom.om.OMNamespace wsdl)
public static void addPoliciesAsExtensibleElement(AxisDescription description, org.apache.axiom.om.OMElement descriptionElement)
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.