cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r905745 - /cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js
Date Tue, 02 Feb 2010 18:56:31 GMT
Author: dkulp
Date: Tue Feb  2 18:56:30 2010
New Revision: 905745

URL: http://svn.apache.org/viewvc?rev=905745&view=rev
Log:
Update js sample to define the namespace for the element

Modified:
    cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js

Modified: cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js?rev=905745&r1=905744&r2=905745&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js (original)
+++ cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js Tue Feb  2 18:56:30
2010
@@ -30,6 +30,8 @@
     var name = list.item(0).getFirstChild().getNodeValue();
     var newDoc = document.getImplementation().createDocument(ns4, "ns4:greetMeResponse",
null);
     var el = newDoc.createElementNS(ns4, "ns4:responseType");
+    el.setAttributeNS("http://www.w3.org/2000/xmlns/", 
+                      "xmlns:ns4", ns4);
     var txt = newDoc.createTextNode("Hi " + name);
     el.insertBefore(txt, null);
     newDoc.getDocumentElement().insertBefore(el, null);



Mime
View raw message