asp.net mvc - Where should the asmx variable be instantiated and stored in an mvc project? -


i added web reference new mvc project , wonder should instantiate , store web service can call functions in controllers. need provide credentials this:

examplewebservice webservice= new examplewebservice(); authsoaphd authsoaphd = new authsoaphd(); authsoaphd.strusername = "client"; authsoaphd.strpassword = "pwd"; webservice.authsoaphdvalue = authsoaphd; 

i want avoid doing every time want use web service.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -