是否有任何良好的教程和使用jquery & xml的寧靜的web服務的例子? 我非常新的RESTful Web服務如何使用jquery restfull webservices
1
A
回答
1
0
這取決於你使用的後端技術,但使用jQuery一個通用的解決方案將使用$.ajax
:
$.ajax({
type:'post', //Could be 'get' depending on your needs
url:'http://yoursite.com/yourwebservice',
dataType: 'xml',
success:function(data) {
//Here you have 'data' as xml.
//You can process 'data' here
}
});
希望這有助於。乾杯
+0
什麼是網絡服務..有沒有我可以參考的演示?我對寧靜的網絡服務非常新穎 - 謝謝 – user244394
0
一個例子
這將使得.NET Web服務
$(document).ready(function() {
$.ajax({
type: "POST",
url: "RSSReader.asmx/GetRSSReader",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
//the result will be in msg
}
});
});
相關問題
- 1. Grails Webservices Restfull
- 2. 在SOAP中使用Restfull Webservices和JAX-WS時如何使用Jax-RS?
- 3. 嘗試使用JAXRS Restfull Webservices時出現異常JBOSS
- 4. 審覈用戶名,在restfull webservices中的服務
- 5. 如何使用.net webservices
- 6. 使用jQuery數據處理RESTfull請求
- 7. 使用JQuery調用webservices ...我如何使代碼工作
- 8. 如何使用RESTfull API連接到Virtuemart?
- 9. Jquery - webservices
- 10. sharepoint 2010 jquery webservices
- 11. 如何使用odatagen爲odata webservices
- 12. 如何在android中使用webservices?
- 13. 如何在ios中使用webservices
- 14. 如何在Android中使用JSON Webservices?
- 15. RESTFULL API如何重寫URL
- 16. JQuery Ajax對RESTfull API的錯誤請求
- 17. 如何跟蹤webservices調用
- 18. RESTFULL API如何驗證最終用戶?
- 19. PHP webservices使用nusoap
- 20. 使用plist的webservices
- 21. .NET和webservices:如何?
- 22. 此服務Restfull?
- 23. 使用C#,Ajax,Jquery的Webservices不使用ASP.Net
- 24. 如何通過JQuery/Javascript調用來保護我的webservices?
- 25. Jboss 6我試圖在服務器上部署restfull webservices,但遇到異常
- 26. 如何在Cakephp中使用Restfull Web服務
- 27. 如何在C中使用restfull web服務發送數據#
- 28. 如何上傳文件使用的新版本alfresco restfull api?
- 29. Yii2:如何允許在非restfull API上使用CORS
- 30. Request-URI太長使用webservices
什麼你的後臺?你的web服務如何編寫? – kobe