2011-07-11 5 views
0

これは {SoapObject要求=新しいSoapObject(「http://guatsin.com/DesktopModulesマイソープ法私はsoap reponseを手に入れました。リストビューにバインドする方法もわかりません。

公共SoapObject石鹸(文字列METHOD_NAME、文字SOAP_ACTION、文字列の名前空間、文字列URL)にIOException、XmlPullParserExceptionをスローであります/ WebServices/"、" CategoriasBO_ObtenerTodos "); 48:52.134:INFO /のSystem.out(252):私はこの

07-11 18のような応答を得た以上のことから

 SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); 
     envelope.dotNet=true; 
     envelope.setOutputSoapObject(request); 

     System.out.println("Request"+request.toString()); 


     HttpTransportSE httpTransport = new HttpTransportSE("http://www.guatsin.com/desktopmodules/webservices/default.asmx"); 
     httpTransport.debug = true; 
     httpTransport.call("http://guatsin.com/DesktopModules/WebServices/CategoriasBO_ObtenerTodos", envelope); 
     System.out.println("--------------req "+httpTransport.requestDump); 
     System.out.println("--------------res "+httpTransport.responseDump); 
     SoapObject result=(SoapObject)envelope.bodyIn; 

     SoapObject element=(SoapObject) result.getProperty("CategoriasBO_ObtenerTodosResult"); 
     System.out.println("--------------element "+element.toString()); 

     return result; 
    } 

------------ --res 8つの バー&レストラン /desktopmodules/guatsup/categorias/images/home/home8.png desktopmodules/guatsup/categorias /画像/ Categoria /バーrestaurants1.png true ファッション&美容 /desktopmodules/guatsup/categorias/images/home/home7.png desktopmodules/guatsup/categorias /画像/ Categoria /ファッション-beauty2.png 真 パーティー&エンターテイメント /desktopmodules/guatsup/categorias /images/home/home2.png desktopmodules/guatsup/categorias /画像/ Categoria /パーティー-entertainment2.png 真 ライフスタイル& /desktopmodules /guatsup/categorias/images/home/home3.png desktopmodules/guatsup/categorias /画像/ Categoria /ライフstyle1.png 真

7月11日18:48:52.134: INFO /システム。アウト(252):-------------- RES 軒のバー&レストラン /desktopmodules/guatsup/categorias/images/home/home8.png desktopmodules/guatsup/categorias /画像/ Categoria /バーrestaurants1.png 真 ファッション&美容 /desktopmodules/guatsup/categorias /画像/ホーム/ home7.png desktopmodules/guatsup/categorias /画像/ Categoria /ファッション-beauty2.png 真 パーティー&エンターテイメント /desktopmodules/guatsup/categorias/images/home/home2.png desktopmodules/guatsup/categorias /画像/ Categoria /パーティー-entertainment2.png 真 ライフスタイル& /desktopmodules/guatsup /categorias/images/home/home3.png desktopmodules/guatsup/categorias /画像/ Categoria /ライフstyle1.png 真 私はリストビューには、このデータを解析することができ、私は、リストビュー

にカテゴリ名と一つの画像を表示する方法

私に事前に おかげ

答えて

0

ストア適切なデータ構造内のデータを助けてください。 XMLやJSONなどを使用します。その後、それを解析するのは非常に簡単です。

関連する問題