通过Javascript调用SOAP webservice(Made in .NET) [英] Call SOAP webservice(Made in .NET) through Javascript

查看:147
本文介绍了通过Javascript调用SOAP webservice(Made in .NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个移动Web应用程序。

I am developing one mobile web application.

在这里,我想调用一个Web服务并从他们使用的Java Script中获取数据。

In this, i want to call a Web Service and fetch data from their using Java Script only.

我搜索了很多并试图实现一些代码,但它没有帮助我。

I searched a lot and try to implement some code also but it didn't help me out.

有一点是那样的Web服务是使用SOAP在 .NET 中创建的。

One thing is that the Web Service was made in .NET using SOAP.

所以,请帮我立即解决。

So, please help me to solve it immediately.

推荐答案

一个简单的方法是围绕当前的Web服务创建一个ASP.NET Web API Http服务包装器,并使用jQuery来访问它。这比使用JS访问SOAP服务要简单得多。

One easy would be to create an ASP.NET Web API Http service wrapper around your current webservice and use jQuery to access it. This will be much simpler than using JS to access a SOAP service.

有关ASP.NET Web API的更多信息: http: //www.asp.net/web-api

More on ASP.NET Web API: http://www.asp.net/web-api

这篇关于通过Javascript调用SOAP webservice(Made in .NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆