Thursday, March 29, 2012

pass login info back from web service

I am trying to build a web service and link it to my site for authenitcation of users

works fine as long as i am check for a boolean

what i want to do is have it pass back several parameters -- accesslevel, firstname, lastname

how can i do this?

and how can i get the different values into my asp.net page?

you can define your own soap header where you deliver your requested data.

before you execute your webservice, you verify the header information and then you run into your method.

even if you dont speak german, check the code sample at the following page:http://www.aspheute.com/artikel/20030501.htm this explains it pretty simple..


You can either return a DataSet containing a DataTable with the required columns, or create a custom class that has these as fields (make sure it is serializable).

0 comments:

Post a Comment