You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/05/20 11:37:15 UTC

[jira] [Commented] (CLOUDSTACK-2576) AWS API not returning values in CFSimpleXML Object format

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661868#comment-13661868 ] 

ASF subversion and git services commented on CLOUDSTACK-2576:
-------------------------------------------------------------

Commit 8986e16e5f9f59fdf222704ec9716b9b821bdea8 in branch refs/heads/master from [~likithas]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=8986e16 ]

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

                
> AWS API not returning values in CFSimpleXML Object format
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-2576
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2576
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: AWSAPI
>    Affects Versions: 4.1.0
>            Reporter: Likitha Shetty
>            Assignee: Likitha Shetty
>             Fix For: 4.2.0
>
>
> Response body of Query API response for AWS PHP SDK is CFSimpleXML whereas response body of CS AWSAPI response is not. 
> Sample - 
> Response body returned by CS AWSAPI 
> <?xml version='1.0' encoding='UTF-8'?><DescribeAvailabilityZonesResponse><requestId>c7ea6e63-5e35-43fb-ab8a-99bcfbd043c4</requestId><availabilityZoneInfo><item><zoneName>zone1</zoneName><zoneState>available</zoneState><regionName></regionName><messageSet><item><message>Disabled</message></item></messageSet></item></availabilityZoneInfo></DescribeAvailabilityZonesResponse> 
> Expected response body 
> CFSimpleXML Object 
> ( 
>     [requestId] => c7ea6e63-5e35-43fb-ab8a-99bcfbd043c4 
>     [availabilityZoneInfo] => CFSimpleXML Object 
>         ( 
>             [item] => CFSimpleXML Object 
>                 ( 
>                     [zoneName] => zone1 
>                     [zoneState] => available 
>                     [regionName] => CFSimpleXML Object 
>                         ( 
>                         ) 
>                     [messageSet] => CFSimpleXML Object 
>                         ( 
>                             [item] => CFSimpleXML Object 
>                                 ( 
>                                     [message] => Disabled 
>                                 ) 
>                         ) 
>                 ) 
>         ) 
> ) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira