ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r535031 - /webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/RegistryImpl.java
Date Thu, 03 May 2007 23:56:06 GMT
Author: kstam
Date: Thu May  3 16:56:05 2007
New Revision: 535031

URL: http://svn.apache.org/viewvc?view=rev&rev=535031
Log:
Reverting back some more code since it was constructing the wrong object, which can not be
serialized.

Modified:
    webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/RegistryImpl.java

Modified: webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/RegistryImpl.java
URL: http://svn.apache.org/viewvc/webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/RegistryImpl.java?view=diff&rev=535031&r1=535030&r2=535031
==============================================================================
--- webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/RegistryImpl.java
(original)
+++ webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/RegistryImpl.java
Thu May  3 16:56:05 2007
@@ -247,7 +247,19 @@
 	public XmlObject execute(XmlObject uddiRequest, URI endPointURI)
 			throws RegistryException {
 
-        Document doc = (Document) uddiRequest.newDomNode();
+        Document doc;
+        try {
+            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
+            docBuilderFactory.setNamespaceAware(true);
+            DocumentBuilder docBuilder= docBuilderFactory.newDocumentBuilder();
+            doc = docBuilder.parse(uddiRequest.newInputStream());
+        } catch (SAXException saxe) {
+            throw (new RegistryException(saxe));
+        } catch (ParserConfigurationException pce) {
+            throw (new RegistryException(pce));
+        } catch (IOException ioe) {
+            throw (new RegistryException(ioe));
+        }
 		Element request = doc.getDocumentElement();
 
 		request.setAttribute("generic", this.getUddiVersion());



---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org


Mime
View raw message