You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ke...@apache.org on 2007/11/19 06:06:35 UTC
svn commit: r596201 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
Author: keithc
Date: Sun Nov 18 21:06:35 2007
New Revision: 596201
URL: http://svn.apache.org/viewvc?rev=596201&view=rev
Log:
Removing reduntant code and using the utility method
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java?rev=596201&r1=596200&r2=596201&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java Sun Nov 18 21:06:35 2007
@@ -143,21 +143,7 @@
}
// Add the documentation element
- String description;
- OMElement documentationElement =
- omFactory.createOMElement(WSDL2Constants.DOCUMENTATION, wsdl);
- if ((description = axisService.getDocumentation()) != null) {
- OMText omText;
- if (description.indexOf(WSDLSerializationUtil.CDATA_START) > -1) {
- description = description.replaceFirst(WSDLSerializationUtil.CDATA_START_REGEX, "");
- description = description.replaceFirst(WSDLSerializationUtil.CDATA_END_REGEX, "");
- omText = omFactory.createOMText(description, XMLStreamConstants.CDATA);
- } else {
- omText = omFactory.createOMText(description);
- }
- documentationElement.addChild(omText);
- descriptionElement.addChild(documentationElement);
- }
+ WSDLSerializationUtil.addWSDLDocumentationElement(axisService, descriptionElement, omFactory, wsdl);
// Add types element
OMElement typesElement = omFactory.createOMElement(WSDL2Constants.TYPES_LOCAL_NALE, wsdl);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org