From muse-jacobterry@example.net Wed May 09 14:52:00 2007
Return-Path: <muse-jacobterry@example.net>
Delivered-To: jacobterry@example.net
Received: (qmail 85977 invoked from network); 9 May 2007 14:52:00 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 9 May 2007 14:52:00 -0000
Received: (qmail 56059 invoked by uid 500); 9 May 2007 14:52:06 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 56027 invoked by uid 500); 9 May 2007 14:52:06 -0000
Mailing-List: contact jacobterry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:jacobterry@example.net>
List-Unsubscribe: <mailto:jacobterry@example.net>
List-Post: <mailto:jacobterry@example.net>
List-Id: <muse-commits.ws.apache.org>
Reply-To: jacobterry@example.net
Delivered-To: mailing list jacobterry@example.net
Received: (qmail 56016 invoked by uid 500); 9 May 2007 14:52:06 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 56013 invoked by uid 99); 9 May 2007 14:52:06 -0000
Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 07:52:06 -0700
X-ASF-Spam-Status: No, hits=-99.5 required=10.0
	tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 07:51:58 -0700
Received: by eris.apache.org (Postfix, from userid 65534)
	id CC6221A9838; Wed,  9 May 2007 07:51:38 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r536550 - in
 /webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools:
 generator/synthesizer/ProxyClassSynthesizer.java
 generator/synthesizer/ProxyInterfaceSynthesizer.java
 inspector/ResourceInspector.java
Date: Wed, 09 May 2007 14:51:38 -0000
To: jacobterry@example.net
From: jacobterry@example.net
X-Mailer: svnmailer-1.1.0
Message-Id: <jacobterry@example.net>
X-Virus-Checked: Checked by ClamAV on apache.org

Author: danj
Date: Wed May  9 07:51:37 2007
New Revision: 536550

URL: http://svn.apache.org/viewvc?view=rev&rev=536550
Log:
Fix for MUSE-221 (support for binaryBase64), contributed by Alberto Galdo of eUSA - Thanks!

Modified:
    webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyClassSynthesizer.java
    webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyInterfaceSynthesizer.java
    webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java

Modified: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyClassSynthesizer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyClassSynthesizer.java?view=diff&rev=536550&r1=536549&r2=536550
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyClassSynthesizer.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyClassSynthesizer.java Wed May  9 07:51:37 2007
@@ -29,7 +29,6 @@
 
 import org.apache.muse.core.proxy.ProxyHandler;
 import org.apache.muse.core.proxy.ReflectionProxyHandler;
-import org.apache.muse.tools.generator.util.ConfigurationData;
 import org.apache.muse.tools.generator.util.ConfigurationDataDescriptor;
 import org.apache.muse.tools.inspector.JavaMethod;
 import org.apache.muse.tools.inspector.JavaProperty;
@@ -39,13 +38,6 @@
 import org.w3c.dom.Document;
 
 public class ProxyClassSynthesizer extends ProxyInterfaceSynthesizer {
-	static ConfigurationDataDescriptor[] REQUIRED_PARAMETERS = 
-		new ConfigurationDataDescriptor[] {
-			ConfigurationData.CAPABILITIES_MAP_LIST_CONFIGURATION,
-			ConfigurationData.GENERATE_CUSTOM_HEADERS_CONFIGURATION,
-			ConfigurationData.WSDL_DOCUMENT_LIST_CONFIGURATION
-		};
-	
 	StringBuffer _operationNamesCode;
 	StringBuffer _returnTypesCode;
 	StringBuffer _actionsCode;
@@ -318,12 +310,7 @@
 	}
 	
 	private void updateReturnTypes(JavaMethod method) {
-		Class type = method.getReturnType();
-		
-		if(type.isArray()) {
-			type = ReflectUtils.getClassFromArrayClass(type);
-		}
-		
+		Class type = method.getReturnType();		
 		_returnTypesCode.append(ReflectUtils.getShortName(type));
 		_returnTypesCode.append(".class");
 		_returnTypesCode.append(", ");

Modified: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyInterfaceSynthesizer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyInterfaceSynthesizer.java?view=diff&rev=536550&r1=536549&r2=536550
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyInterfaceSynthesizer.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/synthesizer/ProxyInterfaceSynthesizer.java Wed May  9 07:51:37 2007
@@ -177,11 +177,9 @@
 			clazz = WsResourceClient.class;
 		}
 
-		if(clazz != null) {
-			Set set = (Set)_clientCapabilitiesMap.get(clazz);
-			if(set.contains(uri) || _ignoredCapabilitySet.contains(uri)) {
-				needsGeneratedCode = false;
-			}
+		Set set = (Set)_clientCapabilitiesMap.get(clazz);
+		if(set.contains(uri) || _ignoredCapabilitySet.contains(uri)) {
+			needsGeneratedCode = false;
 		}
 		
 		return needsGeneratedCode;

Modified: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java?view=diff&rev=536550&r1=536549&r2=536550
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java Wed May  9 07:51:37 2007
@@ -134,9 +134,6 @@
     public static final QName BOOLEAN_QNAME = 
         new QName(NAMESPACE_URI, "boolean", PREFIX);
     
-    public static final QName BYTE_QNAME = 
-        new QName(NAMESPACE_URI, "byte", PREFIX);
-    
     public static final QName COMPLEX_TYPE_QNAME = 
         new QName(NAMESPACE_URI, "complexType", PREFIX);
 
@@ -220,7 +217,6 @@
         _JAVA_TYPES.put(QNAME_QNAME, QName.class);
         _JAVA_TYPES.put(BOOLEAN_QNAME, boolean.class);
         _JAVA_TYPES.put(BASE_64_QNAME, byte[].class);
-        _JAVA_TYPES.put(BYTE_QNAME, byte[].class);
         _JAVA_TYPES.put(INT_QNAME, int.class);
         _JAVA_TYPES.put(INTEGER_QNAME, int.class);
         _JAVA_TYPES.put(SHORT_QNAME, short.class);



---------------------------------------------------------------------
To unsubscribe, e-mail: jacobterry@example.net
For additional commands, e-mail: jacobterry@example.net


From muse-jacobterry@example.net Wed May 09 14:52:03 2007
Return-Path: <muse-jacobterry@example.net>
Delivered-To: jacobterry@example.net
Received: (qmail 86027 invoked from network); 9 May 2007 14:52:03 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 9 May 2007 14:52:03 -0000
Received: (qmail 56134 invoked by uid 500); 9 May 2007 14:52:09 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 56111 invoked by uid 500); 9 May 2007 14:52:09 -0000
Mailing-List: contact jacobterry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:jacobterry@example.net>
List-Unsubscribe: <mailto:jacobterry@example.net>
List-Post: <mailto:jacobterry@example.net>
List-Id: <muse-commits.ws.apache.org>
Reply-To: jacobterry@example.net
Delivered-To: mailing list jacobterry@example.net
Received: (qmail 56100 invoked by uid 500); 9 May 2007 14:52:09 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 56097 invoked by uid 99); 9 May 2007 14:52:09 -0000
Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 07:52:09 -0700
X-ASF-Spam-Status: No, hits=-99.5 required=10.0
	tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 07:52:02 -0700
Received: by eris.apache.org (Postfix, from userid 65534)
	id 00DCF1A983E; Wed,  9 May 2007 07:51:42 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r536551 - in
 /webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer:
 Base64.java ByteArraySerializer.java
Date: Wed, 09 May 2007 14:51:41 -0000
To: jacobterry@example.net
From: jacobterry@example.net
X-Mailer: svnmailer-1.1.0
Message-Id: <jacobterry@example.net>
X-Virus-Checked: Checked by ClamAV on apache.org

Author: danj
Date: Wed May  9 07:51:41 2007
New Revision: 536551

URL: http://svn.apache.org/viewvc?view=rev&rev=536551
Log:
Fix for MUSE-221 (support for binaryBase64), contributed by Alberto Galdo of eUSA - Thanks!

Added:
    webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/Base64.java
Modified:
    webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/ByteArraySerializer.java

Added: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/Base64.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/Base64.java?view=auto&rev=536551
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/Base64.java (added)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/Base64.java Wed May  9 07:51:41 2007
@@ -0,0 +1,182 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ * 
+ */
+
+/*
+ * Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ * 
+ */
+
+package org.apache.muse.core.serializer;
+
+import java.io.*;
+
+class Base64
+{    
+    static final char[] charTab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray();
+    
+    public static String encode(byte[] data, boolean isChunked)
+    {
+        return encode(data, 0, data.length, isChunked, null).toString();
+    }
+    
+    /**
+     * Encodes the part of the given byte array denoted by start and len to the
+     * Base64 format. The encoded data is appended to the given StringBuffer. If
+     * no StringBuffer is given, a new one is created automatically. The
+     * StringBuffer is the return value of this method.
+     */
+    
+    public static StringBuffer encode(byte[] data, int start, int len, boolean isChunked, StringBuffer buf)
+    {        
+        if (buf == null)
+            buf = new StringBuffer(data.length * 3 / 2);
+        
+        int end = len - 3;
+        int i = start;
+        int n = 0;
+        
+        while (i <= end)
+        {
+            int d = (((data[i]) & 0x0ff) << 16) | (((data[i + 1]) & 0x0ff) << 8) | ((data[i + 2]) & 0x0ff);
+            
+            buf.append(charTab[(d >> 18) & 63]);
+            buf.append(charTab[(d >> 12) & 63]);
+            buf.append(charTab[(d >> 6) & 63]);
+            buf.append(charTab[d & 63]);
+            
+            i += 3;
+            
+            if (isChunked)
+            {
+                if (n++ >= 14)
+                {
+                    n = 0;
+                    buf.append("\r\n");
+                }
+            }
+        }
+        
+        if (i == start + len - 2)
+        {
+            int d = (((data[i]) & 0x0ff) << 16) | (((data[i + 1]) & 255) << 8);
+            
+            buf.append(charTab[(d >> 18) & 63]);
+            buf.append(charTab[(d >> 12) & 63]);
+            buf.append(charTab[(d >> 6) & 63]);
+            buf.append("=");
+        }
+        else if (i == start + len - 1)
+        {
+            int d = ((data[i]) & 0x0ff) << 16;
+            
+            buf.append(charTab[(d >> 18) & 63]);
+            buf.append(charTab[(d >> 12) & 63]);
+            buf.append("==");
+        }
+        
+        return buf;
+    }
+    
+    static int decode(char c)
+    {
+        if (c >= 'A' && c <= 'Z')
+            return c - 65;
+        else if (c >= 'a' && c <= 'z')
+            return c - 97 + 26;
+        else if (c >= '0' && c <= '9')
+            return c - 48 + 26 + 26;
+        else
+            switch (c)
+            {
+                case '+':
+                    return 62;
+                case '/':
+                    return 63;
+                case '=':
+                    return 0;
+                default:
+                    throw new RuntimeException("unexpected code: " + c);
+            }
+    }
+    
+    /**
+     * Decodes the given Base64 encoded String to a new byte array. The byte
+     * array holding the decoded data is returned.
+     */
+    public static byte[] decode(String s)
+    {        
+        ByteArrayOutputStream bos = new ByteArrayOutputStream();
+        
+        try
+        {
+            decode(s, bos);
+        }
+        catch (IOException e)
+        {
+            throw new RuntimeException();
+        }
+        
+        return bos.toByteArray();
+    }
+    
+    public static void decode(String s, OutputStream os) throws IOException
+    {
+        int i = 0;
+        
+        int len = s.length();
+        
+        while (true)
+        {
+            while (i < len && s.charAt(i) <= ' ')
+                i++;
+            
+            if (i == len)
+                break;
+            
+            int tri = (decode(s.charAt(i)) << 18) + (decode(s.charAt(i + 1)) << 12) + (decode(s.charAt(i + 2)) << 6) + (decode(s.charAt(i + 3)));
+            
+            os.write((tri >> 16) & 255);
+            if (s.charAt(i + 2) == '=')
+                break;
+            os.write((tri >> 8) & 255);
+            if (s.charAt(i + 3) == '=')
+                break;
+            os.write(tri & 255);
+            
+            i += 4;
+        }
+    }
+}

Modified: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/ByteArraySerializer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/ByteArraySerializer.java?view=diff&rev=536551&r1=536550&r2=536551
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/ByteArraySerializer.java (original)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/ByteArraySerializer.java Wed May  9 07:51:41 2007
@@ -28,9 +28,9 @@
 
 /**
  *
- * ByteSerializer transforms bytes to XML and back.
+ * ByteArraySerializer transforms bytes to XML using base64 encoding (xsd:base64Binary) and back.
  *
- * @author Dan Jemiolo (danj)
+ * @author Alberto Rodriguez (jacobterry@example.net)
  *
  */
 
@@ -39,7 +39,7 @@
     public Object fromXML(Element xml)
     {
         String text = XmlUtils.extractText(xml);
-        return text == null ? null : text.getBytes();
+        return text == null ? null : Base64.decode(text);
     }
     
     public Class getSerializableType()
@@ -49,6 +49,7 @@
     
     public Element toXML(Object obj, QName qname)
     {
-        return XmlUtils.createElement(qname, new String((byte[])obj));
+        String encoded = Base64.encode((byte[])obj, false);
+        return XmlUtils.createElement(qname, encoded);
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jacobterry@example.net
For additional commands, e-mail: jacobterry@example.net


From muse-jacobterry@example.net Mon May 21 18:01:24 2007
Return-Path: <muse-jacobterry@example.net>
Delivered-To: jacobterry@example.net
Received: (qmail 17549 invoked from network); 21 May 2007 18:01:22 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 21 May 2007 18:01:22 -0000
Received: (qmail 1597 invoked by uid 500); 21 May 2007 18:01:16 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 1576 invoked by uid 500); 21 May 2007 18:01:16 -0000
Mailing-List: contact jacobterry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:jacobterry@example.net>
List-Unsubscribe: <mailto:jacobterry@example.net>
List-Post: <mailto:jacobterry@example.net>
List-Id: <muse-commits.ws.apache.org>
Reply-To: jacobterry@example.net
Delivered-To: mailing list jacobterry@example.net
Received: (qmail 1559 invoked by uid 500); 21 May 2007 18:01:16 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 1555 invoked by uid 99); 21 May 2007 18:01:16 -0000
Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 11:01:16 -0700
X-ASF-Spam-Status: No, hits=-99.5 required=10.0
	tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 11:01:10 -0700
Received: by eris.apache.org (Postfix, from userid 65534)
	id EB0EC1A981D; Mon, 21 May 2007 11:00:49 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r540211 -
 /webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java
Date: Mon, 21 May 2007 18:00:49 -0000
To: jacobterry@example.net
From: jacobterry@example.net
X-Mailer: svnmailer-1.1.0
Message-Id: <jacobterry@example.net>
X-Virus-Checked: Checked by ClamAV on apache.org

Author: danj
Date: Mon May 21 11:00:49 2007
New Revision: 540211

URL: http://svn.apache.org/viewvc?view=rev&rev=540211
Log:
Fixed character encoding issue when calling String.getBytes() - needed to specify UTF-8 encoding.

Modified:
    webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java

Modified: webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java?view=diff&rev=540211&r1=540210&r2=540211
==============================================================================
--- webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java (original)
+++ webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java Mon May 21 11:00:49 2007
@@ -27,7 +27,6 @@
 import java.util.Map;
 
 import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamException;
 
 import org.w3c.dom.Element;
 
@@ -125,16 +124,16 @@
      */
     public OMElement convertToAxiom(Element xml)
     {
-        String xmlString = XmlUtils.toString(xml, false);
-        byte[] xmlBytes = xmlString.getBytes();
         StAXOMBuilder builder = null;
         
         try
         {
+            String xmlString = XmlUtils.toString(xml, false);
+            byte[] xmlBytes = xmlString.getBytes(XmlUtils.UTF_8);
             builder = new StAXOMBuilder(new ByteArrayInputStream(xmlBytes));
         }
         
-        catch (XMLStreamException error)
+        catch (Throwable error)
         {
             throw new RuntimeException(error.getMessage(), error);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: jacobterry@example.net
For additional commands, e-mail: jacobterry@example.net


From muse-jacobterry@example.net Mon May 21 18:01:24 2007
Return-Path: <muse-jacobterry@example.net>
Delivered-To: jacobterry@example.net
Received: (qmail 17551 invoked from network); 21 May 2007 18:01:22 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 21 May 2007 18:01:22 -0000
Received: (qmail 1046 invoked by uid 500); 21 May 2007 18:01:13 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 1002 invoked by uid 500); 21 May 2007 18:01:13 -0000
Mailing-List: contact jacobterry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:jacobterry@example.net>
List-Unsubscribe: <mailto:jacobterry@example.net>
List-Post: <mailto:jacobterry@example.net>
List-Id: <muse-commits.ws.apache.org>
Reply-To: jacobterry@example.net
Delivered-To: mailing list jacobterry@example.net
Received: (qmail 970 invoked by uid 500); 21 May 2007 18:01:13 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 965 invoked by uid 99); 21 May 2007 18:01:13 -0000
Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 11:01:13 -0700
X-ASF-Spam-Status: No, hits=-99.5 required=10.0
	tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 11:01:06 -0700
Received: by eris.apache.org (Postfix, from userid 65534)
	id 99A431A981A; Mon, 21 May 2007 11:00:46 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r540210 -
 /webservices/muse/trunk/modules/muse-util-xml/src/org/apache/muse/util/xml/XmlUtils.java
Date: Mon, 21 May 2007 18:00:46 -0000
To: jacobterry@example.net
From: jacobterry@example.net
X-Mailer: svnmailer-1.1.0
Message-Id: <jacobterry@example.net>
X-Virus-Checked: Checked by ClamAV on apache.org

Author: danj
Date: Mon May 21 11:00:45 2007
New Revision: 540210

URL: http://svn.apache.org/viewvc?view=rev&rev=540210
Log:
Fixed character encoding issue when calling String.getBytes() - needed to specify UTF-8 encoding.

Modified:
    webservices/muse/trunk/modules/muse-util-xml/src/org/apache/muse/util/xml/XmlUtils.java

Modified: webservices/muse/trunk/modules/muse-util-xml/src/org/apache/muse/util/xml/XmlUtils.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-util-xml/src/org/apache/muse/util/xml/XmlUtils.java?view=diff&rev=540210&r1=540209&r2=540210
==============================================================================
--- webservices/muse/trunk/modules/muse-util-xml/src/org/apache/muse/util/xml/XmlUtils.java (original)
+++ webservices/muse/trunk/modules/muse-util-xml/src/org/apache/muse/util/xml/XmlUtils.java Mon May 21 11:00:45 2007
@@ -95,6 +95,13 @@
      * 
      */
     public static final String XMLNS_PREFIX = "xmlns";
+    
+    /**
+     * 
+     * Standard identifier for UTF-8 encoding.
+     * 
+     */
+    public static final String UTF_8 = "UTF-8";
 
     /**
      * 



---------------------------------------------------------------------
To unsubscribe, e-mail: jacobterry@example.net
For additional commands, e-mail: jacobterry@example.net


From muse-jacobterry@example.net Mon May 21 18:01:26 2007
Return-Path: <muse-jacobterry@example.net>
Delivered-To: jacobterry@example.net
Received: (qmail 17575 invoked from network); 21 May 2007 18:01:22 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 21 May 2007 18:01:22 -0000
Received: (qmail 2232 invoked by uid 500); 21 May 2007 18:01:19 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 2208 invoked by uid 500); 21 May 2007 18:01:19 -0000
Mailing-List: contact jacobterry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:jacobterry@example.net>
List-Unsubscribe: <mailto:jacobterry@example.net>
List-Post: <mailto:jacobterry@example.net>
List-Id: <muse-commits.ws.apache.org>
Reply-To: jacobterry@example.net
Delivered-To: mailing list jacobterry@example.net
Received: (qmail 2185 invoked by uid 500); 21 May 2007 18:01:19 -0000
Delivered-To: jacobterry@example.net
Received: (qmail 2139 invoked by uid 99); 21 May 2007 18:01:19 -0000
Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 11:01:19 -0700
X-ASF-Spam-Status: No, hits=-99.5 required=10.0
	tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 11:01:13 -0700
Received: by eris.apache.org (Postfix, from userid 65534)
	id 0D1631A9820; Mon, 21 May 2007 11:00:53 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r540212 -
 /webservices/muse/trunk/modules/muse-wsa-soap/src/org/apache/muse/ws/addressing/soap/SimpleSoapClient.java
Date: Mon, 21 May 2007 18:00:52 -0000
To: jacobterry@example.net
From: jacobterry@example.net
X-Mailer: svnmailer-1.1.0
Message-Id: <jacobterry@example.net>
X-Virus-Checked: Checked by ClamAV on apache.org

Author: danj
Date: Mon May 21 11:00:52 2007
New Revision: 540212

URL: http://svn.apache.org/viewvc?view=rev&rev=540212
Log:
Fixed character encoding issue when calling String.getBytes() - needed to specify UTF-8 encoding.

Modified:
    webservices/muse/trunk/modules/muse-wsa-soap/src/org/apache/muse/ws/addressing/soap/SimpleSoapClient.java

Modified: webservices/muse/trunk/modules/muse-wsa-soap/src/org/apache/muse/ws/addressing/soap/SimpleSoapClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsa-soap/src/org/apache/muse/ws/addressing/soap/SimpleSoapClient.java?view=diff&rev=540212&r1=540211&r2=540212
==============================================================================
--- webservices/muse/trunk/modules/muse-wsa-soap/src/org/apache/muse/ws/addressing/soap/SimpleSoapClient.java (original)
+++ webservices/muse/trunk/modules/muse-wsa-soap/src/org/apache/muse/ws/addressing/soap/SimpleSoapClient.java Mon May 21 11:00:52 2007
@@ -244,7 +244,6 @@
         // create the request message and turn it into bytes
         //
         Element soapRequest = createMessage(src, dest, wsaAction, body, extraHeaders);
-        byte[] soapBytes = XmlUtils.toString(soapRequest, false, false).getBytes();
         
         if (isUsingTrace())
             trace(soapRequest, false);
@@ -253,6 +252,12 @@
         
         try
         {
+        	//
+        	// convert DOM tree to raw bytes (UTF-8 encoding)
+        	//
+        	String soapString = XmlUtils.toString(soapRequest, false, false);
+            byte[] soapBytes = soapString.getBytes(XmlUtils.UTF_8);
+            
             //
             // set up the HTTP request - POST of SOAP 1.2 data
             //



---------------------------------------------------------------------
To unsubscribe, e-mail: jacobterry@example.net
For additional commands, e-mail: jacobterry@example.net



{'source': 'Apache Software Foundation Public Mail Archives'}