axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r149249 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis: encoding/OutObjectImpl.java impl/llom/util/StreamWriterToContentHandlerConverter.java impl/providers/SimpleJavaProvider.java om/OMConstants.java
Date Mon, 31 Jan 2005 12:58:08 GMT
Author: ajith
Date: Mon Jan 31 04:58:07 2005
New Revision: 149249

URL: http://svn.apache.org/viewcvs?view=rev&rev=149249
Log:
Added the functionality to handle the namespaces correctly

Modified:
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/encoding/OutObjectImpl.java
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/util/StreamWriterToContentHandlerConverter.java
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/providers/SimpleJavaProvider.java
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/om/OMConstants.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/encoding/OutObjectImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/encoding/OutObjectImpl.java?view=diff&r1=149248&r2=149249
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/encoding/OutObjectImpl.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/encoding/OutObjectImpl.java
Mon Jan 31 04:58:07 2005
@@ -48,10 +48,13 @@
                 String[] strs = (String[])obj;
                 char[] str = null;
                 for (int i = 0; i < strs.length; i++) {
-                    cHandler.startElement(OMConstants.ARRAY_ITEM_NSURI,OMConstants.ARRAY_ITEM_LOCALNAME,"",null);
+                    cHandler.startElement(OMConstants.ARRAY_ITEM_NSURI,
+                            OMConstants.ARRAY_ITEM_LOCALNAME,
+                            OMConstants.ARRAY_ITEM_QNAME ,
+                            null);
                     str = strs[i].toCharArray();
                     cHandler.characters(str,0,str.length);
-                    cHandler.endElement(OMConstants.ARRAY_ITEM_NSURI,OMConstants.ARRAY_ITEM_LOCALNAME,"");
+                    cHandler.endElement(OMConstants.ARRAY_ITEM_NSURI,OMConstants.ARRAY_ITEM_LOCALNAME,
OMConstants.ARRAY_ITEM_QNAME );
                 }
 
             }else{

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/util/StreamWriterToContentHandlerConverter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/util/StreamWriterToContentHandlerConverter.java?view=diff&r1=149248&r2=149249
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/util/StreamWriterToContentHandlerConverter.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/util/StreamWriterToContentHandlerConverter.java
Mon Jan 31 04:58:07 2005
@@ -68,7 +68,11 @@
     }
 
     public void startPrefixMapping(String prefix, String uri) throws SAXException {
-        //throw new UnsupportedOperationException();
+//         try {
+//            writer.setPrefix(prefix,uri);
+//        } catch (XMLStreamException e) {
+//            throw new SAXException(e);
+//        }
     }
 
     public void endElement(String namespaceURI, String localName, String qName) throws SAXException
{

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/providers/SimpleJavaProvider.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/providers/SimpleJavaProvider.java?view=diff&r1=149248&r2=149249
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/providers/SimpleJavaProvider.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/providers/SimpleJavaProvider.java
Mon Jan 31 04:58:07 2005
@@ -161,7 +161,7 @@
             responseMethodName.addChild(returnelement);
 
             returnelement.setBuilder(new ObjectToOMBuilder(returnelement,outobj));
-            returnelement.declareNamespace(OMConstants.ARRAY_ITEM_NSURI,"arrays");
+            returnelement.declareNamespace(OMConstants.ARRAY_ITEM_NSURI,OMConstants.ARRAY_ITEM_NS_PREFIX);
             msgContext.setEnvelope(responseEnvelope);
             
             return msgContext;

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/om/OMConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/om/OMConstants.java?view=diff&r1=149248&r2=149249
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/om/OMConstants.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/om/OMConstants.java
Mon Jan 31 04:58:07 2005
@@ -46,4 +46,6 @@
 
     public static final String ARRAY_ITEM_NSURI = "http://axis.apache.org/encoding/Arrays";
     public static final String ARRAY_ITEM_LOCALNAME = "item";
+    public static final String ARRAY_ITEM_NS_PREFIX = "arrays";
+    public static final String ARRAY_ITEM_QNAME = OMConstants.ARRAY_ITEM_NS_PREFIX + ":"
+OMConstants.ARRAY_ITEM_LOCALNAME;
 }



Mime
View raw message