问题描述
大家好,
我是新手在C#中使用webservices。在这里,我有一个web服务来传递用户名和&密码&获取身份验证详细信息我已将特定的Web服务添加到我的C#项目&下面提到了要使用的XML方法。方法是GetUser
Hi all,
I'm new to use webservices in C#. And here i have got a webservice to pass user name & password & get the authentication details. I have added the particular web service to my C# project & below mentioned the XML method to be used. method is "GetUser"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://xxxxx.com/clientservices" xmlns:tour="http://schemas.datacontract.org/2004/07/xxxxxxx.Interface.Common">
<soapenv:Header/>
<soapenv:Body>
<cli:GetUsers>
<cli:request/>
</cli:GetUsers>
</soapenv:Body>
</soapenv:Envelope>
所以任何人都可以告诉我如何通过用户名&使用C#代码隐藏在此页面&从这个网络服务中检索响应?
下面提到他们在使用这种方法时提供给我的详细信息。
PASSWORD VALIDATION
Get操作可用于允许非XXX应用程序验证XXX登录。有两种实现此功能的基本方法。
标准获取没有CommonParams元素的规范将返回所有用户及其未加密的密码。然后,非XXX应用程序可以使用该响应来查找密码并对其进行验证。
第二种方法是将用户名和密码发送到CommonParams结构中的get操作。如果它们有效,则响应将是XXX用户的完整列表,如果它们无效,则将返回错误。在任何一种情况下,非XXX应用程序都可以根据收到的响应进行编码以允许和拒绝登录。
在此先感谢
So can anyone let me know how can I pass the username & password to this method using C# code behind page & retrieve the response from this webservice?
Below Mentioned the details they have provided me in terms of using this method.
PASSWORD VALIDATION
The Get operation can be used to allow non-XXX applications to validate a XXX login. There are 2 basic methods of implementing this functionality.
A standard Get without the specification of the CommonParams elements will return all users and their unencrypted passwords. The non-XXX application could then use that response to find the password and validate it.
The second technique is to send the username and password into the get operation in the CommonParams structure. If they are valid then the response will be the complete list of XXX user and if they are invalid then an error will be return. In either case the non-XXX application could be coded to allow and reject the login based on the response received.
Thanks In Advance
推荐答案
这篇关于如何使用C#& amp;读取XML方法(SOAP 1.1)收回数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!