/** * Generates a WSDL 2.0 document for this web service * @return The WSDL2 document element * @throws Exception - Thrown in case an exception occurs */ public OMElement generateOM() throws Exception { OMFactory omFactory = OMAbstractFactory.getOMFactory(); OMElement descriptionElement = generateDescription(omFactory); // Add the documentation element OMElement documentation = generateDocumentation(omFactory); if (documentation != null) { descriptionElement.addChild(documentation); } OMElement types = generateTypes(omFactory); if (types != null) { descriptionElement.addChild(types); } OMElement interfaces = generateInterface(omFactory); if (interfaces != null) { descriptionElement.addChild(interfaces); } generateService(omFactory, descriptionElement, isDisableREST(), isDisableSOAP12(), isDisableSOAP11()); addPoliciesToDescriptionElement(getPoliciesInDefinitions(), descriptionElement); return descriptionElement; }
/** * Generates a WSDL 2.0 document for this web service * @return The WSDL2 document element * @throws Exception - Thrown in case an exception occurs */ public OMElement generateOM() throws Exception { OMFactory omFactory = OMAbstractFactory.getOMFactory(); OMElement descriptionElement = generateDescription(omFactory); // Add the documentation element OMElement documentation = generateDocumentation(omFactory); if (documentation != null) { descriptionElement.addChild(documentation); } OMElement types = generateTypes(omFactory); if (types != null) { descriptionElement.addChild(types); } OMElement interfaces = generateInterface(omFactory); if (interfaces != null) { descriptionElement.addChild(interfaces); } generateService(omFactory, descriptionElement, isDisableREST(), isDisableSOAP12(), isDisableSOAP11()); addPoliciesToDescriptionElement(getPoliciesInDefinitions(), descriptionElement); return descriptionElement; }