如何在浏览器中传递参数以检索Web服务值 [英] how to pass the parameters in the browser to retrieve the webservice value
本文介绍了如何在浏览器中传递参数以检索Web服务值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I know we can retrieve the value passing the parameters thru browser and get the value.
i have webservice ,am trying to valid against browser,i need to pass these value to return the vlaue
string LoginName, string Password, System.Nullable<System.DateTime> LastExport, out string ErrorMessage)
How to pass the value in the browser,any help ?
consider my webservice wsdl file
eg: http://localhost:63938/Service1.asmx
推荐答案
将服务引用添加到http://localhost:63938/Service1.asmx使用Visual Studio和VS将为您生成代理,然后为该代理创建对象,然后您就可以使用Web服务公开的所有功能.
add a service reference to http://localhost:63938/Service1.asmx using visual studio and VS will generate proxy for you then create the object to the proxy and you can all the functions exposed by webservice.
这篇关于如何在浏览器中传递参数以检索Web服务值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文