Click here to Skip to main content
15,867,923 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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"

XML
<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>



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
Posted
Updated 15-May-14 19:38pm
v2

1 solution

Hello,

Please have a look at following articles available right here on CodeProject.

You can find many more SOAP web service articles here on CodeProject.

Regards,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900