You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ke...@apache.org on 2007/11/19 06:07:01 UTC
svn commit: r596202 -
/webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
Author: keithc
Date: Sun Nov 18 21:07:01 2007
New Revision: 596202
URL: http://svn.apache.org/viewvc?rev=596202&view=rev
Log:
Removing redundant code and using the utility method
Modified:
webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
Modified: webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java?rev=596202&r1=596201&r2=596202&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java (original)
+++ webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java Sun Nov 18 21:07:01 2007
@@ -142,21 +142,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