c# - How do I call a SOAP service in ASP.NET -
i'm new visual studio , asp, need call soap service requires passing in username , password , responds token. know how in javascript, clueless in c# / asp.net.
i have added service reference, , seems see there issuetoken call. can't figure out how use , pass in username , password.
i have tried searching google , on here, have found "add service reference , use it", can't figure out use part. want click button, send call, , token.
this have... not it'll help.
protected void button1_click(object sender, eventargs e) { string username = "name"; string password = "password"; tokenservice.issuetoken calltoken = new tokenservice.issuetoken(); }
it'll this:
string username = "name"; string password = "password"; var proxy = new tokenserviceclient(); var token = proxy.issuetoken(username, password); proxy.close();
Comments
Post a Comment