Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good morning ,
i am creating one web service where i have multiple methods say test1() ,test2() ,test3() , etc.
Now test1() is default method or say its mail method.
When i or any one call my web service by default it should called test1().
so is there any possibility?
I tried with these
1) in web.config ,
C#
<authentication mode="Forms">
      <forms loginUrl="~/Default.aspx" timeout="2880" defaultUrl="~/WebService.asmx?op=test1" name=".AspNetAuth" />
    </authentication>


dont work then i try

2) IIS , i was trying to put in Default Document -> WebService.asmx?op=test1 but its not accepting '?'

so is there any way do this , let me know .
Thank you.
Posted
Comments
[no name] 22-Sep-14 2:52am    
Could you please clarify your question ?
I want to create one web service , where i can put as much as possible methods .
But when initially i call my web service , it should call default method e.g. test1() (or i run my project it should call default method.)

Thankx for reply.
ashok rathod 30-Sep-14 23:26pm    
Why do you want to create that default method as web method? i would suggest just make it as simple method and call this method everytime your any of your web method called. I mean first statement of your any method should be call to your test1() method. In this way you are not exposing your method to the end user and achieving your functionality although.
thank you , its nice idea.

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