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 di...@apache.org on 2005/07/13 16:16:12 UTC
svn commit: r216161 - in
/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl:
builder/wsdl4j/WSDLPump.java codegen/emitter/MultiLanguageClientEmitter.java
Author: dims
Date: Wed Jul 13 07:16:11 2005
New Revision: 216161
URL: http://svn.apache.org/viewcvs?rev=216161&view=rev
Log:
Sigh! more crimson :(
Modified:
webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java?rev=216161&r1=216160&r2=216161&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java Wed Jul 13 07:16:11 2005
@@ -17,7 +17,6 @@
import com.ibm.wsdl.extensions.soap.SOAPConstants;
import org.apache.axis2.wsdl.builder.WSDLComponentFactory;
-import org.apache.crimson.tree.XmlDocument;
import org.apache.wsdl.Component;
import org.apache.wsdl.MessageReference;
import org.apache.wsdl.WSDLBinding;
@@ -65,6 +64,9 @@
import javax.wsdl.extensions.soap.SOAPBody;
import javax.wsdl.extensions.soap.SOAPOperation;
import javax.xml.namespace.QName;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
@@ -411,7 +413,13 @@
Element element = null;
WSDLTypes types = womDefinition.getTypes();
if (null == types) {
- XmlDocument newDoc = new XmlDocument();
+ DocumentBuilder documentBuilder = null;
+ try {
+ documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+ } catch (ParserConfigurationException e) {
+ throw new RuntimeException(e);
+ }
+ Document newDoc = documentBuilder.newDocument();
Element schemaElement = newDoc.createElement("schema");//http://www.w3.org/2001/XMLSchema
types = wsdlComponenetFactory.createTypes();
@@ -563,7 +571,7 @@
* Eventuall this will have to be fixed using user input since
*
* @param service
- * @return
+ * @return wsdl interface
*/
private WSDLInterface getBoundInterface(WSDLService service) {
@@ -608,7 +616,7 @@
* <code>Vector</code> if any and copy them to <code>Component</code>
*
* @param wsdl4jExtensibleElements
- * @param womExtensibleElements
+ * @param component
*/
private void copyExtensibleElements(List wsdl4jExtensibleElements,
Component component) {
Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java?rev=216161&r1=216160&r2=216161&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java Wed Jul 13 07:16:11 2005
@@ -18,7 +18,6 @@
import org.apache.axis2.wsdl.codegen.writer.TestServiceXMLWriter;
import org.apache.axis2.wsdl.codegen.writer.TestSkeletonImplWriter;
import org.apache.axis2.wsdl.databinding.TypeMapper;
-//import org.apache.crimson.tree.XmlDocument;
import org.apache.wsdl.MessageReference;
import org.apache.wsdl.WSDLBinding;
import org.apache.wsdl.WSDLBindingOperation;
@@ -467,7 +466,7 @@
Document doc = documentBuilder.newDocument();
return doc;
} catch (ParserConfigurationException e) {
- return null;
+ throw new RuntimeException(e);
}
}