Package org.apache.axis2.description
Class AxisService2WSDL11
java.lang.Object
org.apache.axis2.description.AxisService2WSDL11
- All Implemented Interfaces:
Java2WSDLConstants
- Direct Known Subclasses:
WSDL11SupplierTemplate
-
Field Summary
FieldsFields inherited from interface org.apache.axis2.description.java2wsdl.Java2WSDLConstants
ATTR_FORM_DEFAULT_OPTION, ATTR_FORM_DEFAULT_OPTION_LONG, ATTRIBUTE_NAME, AXIS2_NAMESPACE_PREFIX, AXIS2_XSD, BINDING_LOCAL_NAME, BINDING_NAME_SUFFIX, CLASSNAME_OPTION, CLASSNAME_OPTION_LONG, CLASSPATH_OPTION, CLASSPATH_OPTION_LONG, COLON_SEPARATOR, CUSTOM_SCHEMA_LOCATION, CUSTOM_SCHEMA_LOCATION_LONG, DEFAULT_LOCATION_URL, DEFAULT_SCHEMA_NAMESPACE_PREFIX, DEFAULT_TARGET_NAMESPACE, DEFAULT_TARGET_NAMESPACE_PREFIX, DEFAULT_WSDL_NAMESPACE_PREFIX, DISABLE_BINDING_REST, DISABLE_BINDING_SOAP11, DISABLE_BINDING_SOAP12, DISALLOW_ANON_TYPES_OPTION, DISALLOW_ANON_TYPES_OPTION_LONG, DISALLOW_NILLABLE_ELEMENTS_OPTION, DISALLOW_NILLABLE_ELEMENTS_OPTION_LONG, DISALLOW_OPTIONAL_ELEMENTS_OPTION, DISALLOW_OPTIONAL_ELEMENTS_OPTION_LONG, DOC_LIT_BARE, DOC_LIT_BARE_LONG, DOC_LIT_BARE_PARAMETER, DOCUMENT, ELEMENT_ATTRIBUTE_NAME, ELEMENT_FORM_DEFAULT_OPTION, ELEMENT_FORM_DEFAULT_OPTION_LONG, EXTRA_CLASSES_DEFAULT_OPTION, EXTRA_CLASSES_DEFAULT_OPTION_LONG, FAULT_LOCAL_NAME, FAULT_MESSAGE, FORM_DEFAULT_QUALIFIED, FORM_DEFAULT_UNQUALIFIED, HTTP_BINDING, HTTP_NAMESPACE, HTTP_PORT, HTTP_PREFIX, IN_PUT_LOCAL_NAME, JAVA_PKG_2_NSMAP_OPTION, JAVA_PKG_2_NSMAP_OPTION_LONG, JAX_WS_SERVICE_OPTION, JAX_WS_SERVICE_OPTION_LONG, LITERAL, LOCATION, LOCATION_OPTION, LOCATION_OPTION_LONG, MESSAGE_LOCAL_NAME, MESSAGE_PART_NAME_OPTION, MESSAGE_PART_NAME_OPTION_LONG, MESSAGE_SUFFIX, MIME_NAMESPACE, MIME_PREFIX, NAMESPACE_GENERATOR_OPTION, NAMESPACE_GENERATOR_OPTION_LONG, OPERATION_LOCAL_NAME, OUT_PUT_LOCAL_NAME, OUTPUT_FILENAME_OPTION, OUTPUT_FILENAME_OPTION_LONG, OUTPUT_LOCATION_OPTION, OUTPUT_LOCATION_OPTION_LONG, PARAMETERS, PART_ATTRIBUTE_NAME, PORT, PORT_NAME_SUFFIX, PORT_TYPE_LOCAL_NAME, PORT_TYPE_NAME_OPTION, PORT_TYPE_NAME_OPTION_LONG, PORT_TYPE_SUFFIX, REQUEST, REQUEST_ELEMENT_SUFFIX_OPTION, REQUEST_ELEMENT_SUFFIX_OPTION_LONG, REQUEST_MESSAGE, RESPONSE, RESPONSE_MESSAGE, REST_BINDING_NAME_OPTION_LONG, RESULT, SCHEMA_GENERATOR_OPTION, SCHEMA_GENERATOR_OPTION_LONG, SCHEMA_MAPPING_FILE_LOCATION, SCHEMA_MAPPING_FILE_LOCATION_LONG, SCHEMA_NAMESPACE_PRFIX, SCHEMA_TARGET_NAMESPACE_OPTION, SCHEMA_TARGET_NAMESPACE_OPTION_LONG, SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION, SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION_LONG, SERVICE_LOCAL_NAME, SERVICE_NAME_OPTION, SERVICE_NAME_OPTION_LONG, SOAP_ACTION, SOAP_ADDRESS, SOAP_BODY, SOAP_USE, SOAP11_BINDING_NAME_OPTION_LONG, SOAP11_PREFIX, SOAP11PORT, SOAP12_BINDING_NAME_OPTION_LONG, SOAP12_PREFIX, SOAP12BINDING_NAME_SUFFIX, SOAP12PORT, SOLE_INPUT, STYLE, STYLE_OPTION, STYLE_OPTION_LONG, TARGET_NAMESPACE_OPTION, TARGET_NAMESPACE_OPTION_LONG, TARGET_NAMESPACE_PREFIX_OPTION, TARGET_NAMESPACE_PREFIX_OPTION_LONG, TARGETNAMESPACE_PREFIX, TRANSPORT, TRANSPORT_URI, URI_2001_SCHEMA_XSD, URI_WSDL11_SOAP, URI_WSDL12_SOAP, URN_PREFIX, USE_OPTION, USE_OPTION_LONG, WSAD_NS, WSDL_NAMESPACE, WSDL_VERSION_1, WSDL_VERSION_2, WSDL_VERSION_2_OPTIONAL, WSDL_VERSION_OPTION, WSDL_VERSION_OPTION_LONG -
Constructor Summary
ConstructorsConstructorDescriptionAxisService2WSDL11(AxisService service) AxisService2WSDL11(AxisService service, String serviceName) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPoliciesToDefinitionElement(Iterator iterator, org.apache.axiom.om.OMElement definitionElement) protected org.apache.axiom.om.OMElementgenerateDefinition(org.apache.axiom.om.OMFactory fac) protected org.apache.axiom.om.OMElementgenerateDocumentation(org.apache.axiom.om.OMFactory fac) protected List<org.apache.axiom.om.OMElement>generateMessages(org.apache.axiom.om.OMFactory fac) org.apache.axiom.om.OMElementBuild the OM structure of the WSDL documentprotected org.apache.axiom.om.OMElementgeneratePortType(org.apache.axiom.om.OMFactory fac) Builds the <portType> element in the passed WSDL definition.org.apache.axiom.om.OMElementgenerateService(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMElement defintions, boolean disableREST, boolean disableSOAP12, boolean disableSOAP11) Generate the WSDL <service> elementprotected org.apache.axiom.om.OMElementgenerateSoap11Binding(org.apache.axiom.om.OMFactory fac, AxisBinding axisBinding) protected org.apache.axiom.om.OMElementgenerateTypes(org.apache.axiom.om.OMFactory fac) getStyle()getUse()protected voidinit()protected booleanprotected booleanprotected booleanprotected org.apache.axiom.om.OMElementmodifyBinding(org.apache.axiom.om.OMElement binding) protected org.apache.axiom.om.OMElementmodifyPort(org.apache.axiom.om.OMElement port) voidsetCheckIfEndPointActive(boolean flag) Sets whether to make a check if endpoint is active before adding the endpoint to the WSDL.voidvoid
-
Field Details
-
axisService
-
serviceName
-
-
Constructor Details
-
Method Details
-
setCheckIfEndPointActive
public void setCheckIfEndPointActive(boolean flag) Sets whether to make a check if endpoint is active before adding the endpoint to the WSDL. By default an endpoint is not added if a transport for the endpoint is not found.- Parameters:
flag- true=check if endpoint is active before adding endpoint. false=add endpoint independent of whether endpoint is active.
-
init
- Throws:
AxisFault
-
generateOM
Build the OM structure of the WSDL document- Returns:
- an OMElement containing a WSDL document
- Throws:
Exception
-
generateMessages
-
generatePortType
protected org.apache.axiom.om.OMElement generatePortType(org.apache.axiom.om.OMFactory fac) throws Exception Builds the <portType> element in the passed WSDL definition. When this returns successfully, there will be a new child element under definitons for the portType.- Parameters:
fac- the active OMFactorydefintions- the WSDL <definitions> element- Returns:
- Throws:
Exception- if there's a problem
-
generateService
public org.apache.axiom.om.OMElement generateService(org.apache.axiom.om.OMFactory fac, org.apache.axiom.om.OMElement defintions, boolean disableREST, boolean disableSOAP12, boolean disableSOAP11) throws Exception Generate the WSDL <service> element- Parameters:
fac- the active OMFactorydefintions- the WSDL <definitions> element under which to put the servicedisableREST- if false, generate REST binding, if true, don'tdisableSOAP12- if false, generate SOAP 1.2 binding, if true, don't- Returns:
- Throws:
Exception- if there's a problem
-
addPoliciesToDefinitionElement
protected void addPoliciesToDefinitionElement(Iterator iterator, org.apache.axiom.om.OMElement definitionElement) throws Exception - Throws:
Exception
-
getStyle
-
setStyle
-
getUse
-
setUse
-
generateSoap11Binding
protected org.apache.axiom.om.OMElement generateSoap11Binding(org.apache.axiom.om.OMFactory fac, AxisBinding axisBinding) throws Exception - Throws:
Exception
-
generateDocumentation
protected org.apache.axiom.om.OMElement generateDocumentation(org.apache.axiom.om.OMFactory fac) -
generateTypes
protected org.apache.axiom.om.OMElement generateTypes(org.apache.axiom.om.OMFactory fac) -
generateDefinition
protected org.apache.axiom.om.OMElement generateDefinition(org.apache.axiom.om.OMFactory fac) -
isDisableREST
protected boolean isDisableREST() -
isDisableSOAP11
protected boolean isDisableSOAP11() -
isDisableSOAP12
protected boolean isDisableSOAP12() -
getPoliciesInDefinitions
-
modifyPort
protected org.apache.axiom.om.OMElement modifyPort(org.apache.axiom.om.OMElement port) -
modifyBinding
protected org.apache.axiom.om.OMElement modifyBinding(org.apache.axiom.om.OMElement binding)
-