我正在使用C#soap Web服务。该Web服务由其他C#Windows程序以及PHP网页使用。我需要在C#Windows程序或php脚本用来连接到Web服务的Web服务的URL中传递一个参数。我能够做类似的事情:
http://MyWebService.asmx?myParam=true&myOtherParam=false
如果使用上述方法,我将如何从c#Web服务获取URL中的参数。
感谢您的任何帮助,您可以提供。
请您参考如下方法:
您可以在QueryString中访问它们。要访问查询字符串,请使用HttpContext.Current.Request.QueryString
