リクエストとレスポンスが JSON 形式の iOS 用の Web サービスを使用しています。Flash Builder を使用してこの Web サービスにアクセスすると、XML 形式で応答が返されます。しかし、iOS で同じアプリを実行すると、JSON が返されます。
private function service_activate(webservices:mx.rpc.http.HTTPService):void{
var args:String=new String("{\"SessionGuid\":\""+sessionid.text +"\"}");
webservices.resultFormat="text";
webservices.contentType="application/json";
webservices.send(args);
}
<fx:Declarations>
<s:HTTPService id="webservice"
url="http://webservices..."
method="POST" contentType="application/x-www-form-urlencoded"
result="webservice_resultHandler(event)"
fault="webservice_faultHandler(event)" />
</fx:Declarations>
FlashBuilder の応答を JSON として取得する方法はありますか?