juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcunn...@apache.org
Subject svn commit: r822858 - in /webservices/juddi/trunk: juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java uddi-client/src/main/java/org/apache/juddi/v3/client/transport/wrapper/UDDIInquiryService.java
Date Wed, 07 Oct 2009 19:17:00 GMT
Author: tcunning
Date: Wed Oct  7 19:16:59 2009
New Revision: 822858

URL: http://svn.apache.org/viewvc?rev=822858&view=rev
Log:
JUDDI-203
Make sure we do a namespaceaware parser so that we can JAXB marshal
our elements.

Modified:
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
    webservices/juddi/trunk/uddi-client/src/main/java/org/apache/juddi/v3/client/transport/wrapper/UDDIInquiryService.java

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java?rev=822858&r1=822857&r2=822858&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
Wed Oct  7 19:16:59 2009
@@ -57,6 +57,11 @@
 	private InquiryServiceAsync inquiryService = (InquiryServiceAsync) GWT.create(InquiryService.class);
 	
 	private FlowPanel searchPanel = new FlowPanel();
+	
+	private final static String DEFAULT_QUERY = "<find_tModel xmlns=\"urn:uddi-org:api_v3\">"
+					+ "<name>uddi-org:v3_policy</name>"
+					+ "</find_tModel>";
+	
 	/**
 	 * This is the entry point method.
 	 */
@@ -68,6 +73,7 @@
 		
 	    queryTextArea.setCharacterWidth(55);
 	    queryTextArea.setVisibleLines(10);
+	    queryTextArea.setText(DEFAULT_QUERY);
 	    searchPanel.add(queryTextArea);
 
 		Label spacerLabel = new Label ("Query Result");

Modified: webservices/juddi/trunk/uddi-client/src/main/java/org/apache/juddi/v3/client/transport/wrapper/UDDIInquiryService.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/uddi-client/src/main/java/org/apache/juddi/v3/client/transport/wrapper/UDDIInquiryService.java?rev=822858&r1=822857&r2=822858&view=diff
==============================================================================
--- webservices/juddi/trunk/uddi-client/src/main/java/org/apache/juddi/v3/client/transport/wrapper/UDDIInquiryService.java
(original)
+++ webservices/juddi/trunk/uddi-client/src/main/java/org/apache/juddi/v3/client/transport/wrapper/UDDIInquiryService.java
Wed Oct  7 19:16:59 2009
@@ -84,7 +84,8 @@
 	public String inquire(UDDIInquiryPortType inquiry, String request) throws Exception {
 	    java.io.InputStream sbis = new StringBufferInputStream(request);
 	    javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory.newInstance();
-
+	    dbf.setNamespaceAware(true);
+	    dbf.setValidating(false);
 	    DocumentBuilder db = dbf.newDocumentBuilder();
 	    Document doc = db.parse(sbis);
 		Element reqElem = doc.getDocumentElement();



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


Mime
View raw message