cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sate...@apache.org
Subject [01/50] [abbrv] git commit: updated refs/heads/vmware-datamodel to 8996ea3
Date Wed, 22 May 2013 13:56:44 GMT
Updated Branches:
  refs/heads/vmware-datamodel dc4aef9b7 -> 8996ea386


CLOUDSTACK-2576. AWS API not returning values in CFSimpleXML Object format.
PHP SDK calls the CFSimpleXML parser class to parse the response body into CFSimpleXML Object
format.
In AWSAPI added an XML declaration during serialization of Axis beans to XML output


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8986e16e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8986e16e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8986e16e

Branch: refs/heads/vmware-datamodel
Commit: 8986e16e5f9f59fdf222704ec9716b9b821bdea8
Parents: a2fea4d
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Mon May 20 14:51:20 2013 +0530
Committer: Likitha Shetty <likitha.shetty@citrix.com>
Committed: Mon May 20 15:01:57 2013 +0530

----------------------------------------------------------------------
 .../com/cloud/bridge/service/EC2RestServlet.java   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8986e16e/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
----------------------------------------------------------------------
diff --git a/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java b/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
index 630e16f..6dd7a8c 100644
--- a/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
+++ b/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
@@ -2043,8 +2043,9 @@ public class EC2RestServlet extends HttpServlet {
             throws ADBException, XMLStreamException, IOException {
         OutputStream os = response.getOutputStream();
         response.setStatus(200);	
-        response.setContentType("text/xml; charset=UTF-8");
+        response.setContentType("text/xml");
         XMLStreamWriter xmlWriter = xmlOutFactory.createXMLStreamWriter( os );
+        xmlWriter.writeStartDocument("UTF-8","1.0");
         MTOMAwareXMLSerializer MTOMWriter = new MTOMAwareXMLSerializer( xmlWriter );
         MTOMWriter.setDefaultNamespace("http://ec2.amazonaws.com/doc/" + wsdlVersion + "/");
         EC2Response.serialize( null, factory, MTOMWriter );


Mime
View raw message