2011-07-08 10 views
0

を呼び出す私はどのようにここでは、Webサービスを呼び出すためにxui.jsを使用する唯一の例が見つかりました: http://wiki.phonegap.com/w/page/32513809/Simple-Web-Service-Consumption-with-PhoneGap-and-XUIXUIライブラリ:Webメソッド(クロスドメイン)

をしかし、それは明らかではありません。たとえば、このWebメソッドを呼び出す方法: http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit

答えて

0

私もこれに慣れていません。しかし、彼らの例では、次の方法でそれを呼び出すことができようになっています

x$('#element_id).xhr('http://www.w3schools.com/webservices/tempconvert.asmx/CelsiusToFahrenheit', { 
    async: true, 
    data: 'Celsius=40', 
    method: 'post', 
    callback: function() { 
     alert("The response is " + this.responseText); 
    } 
}); 

x$('#element_id).xhr('http://www.w3schools.com/webservices/tempconvert.asmx/CelsiusToFahrenheit', { 
    async: true, 
    method: 'post', 
    callback: function() { 
     alert("The response is " + this.responseText); 
    } 
}); 

あなたはAPIに摂氏データを送信する必要がありますよう

関連する問題