views:

183

answers:

4

Guys

I have a web service in asp.net 2.0 that has 234 methods. It seems that when I add another method the site does not compile in VS2005 until I remove one first. I get a message saying that the new method I just added does not exist in a file that belongs in the Microsoft.Net/.../Temporary Files directory. I have restarted IIS, closed down VS2005, removed all files from this temp directory but to no avail. The only way to get the code to compile is to remove another one so as to keep 234 methods....

I can consistency replicate this behaviour so it cannot be my code. Now I know this seems strange but it is true! One other strange thing is that exactly 100 of the method names begin with the word GetXXXyyyZZZ

Has anyone else experienced problems with the maximum number of methods that are allowed in a web service? Many Thanks

+2  A: 

I recommend organising your methods into related groups and splitting your single webservice into many smaller webservices according to those groups.

AdamRalph
A: 

Yes this is the simple answer! However I would like to know if there is a problem before I go down this route so I am afraid this does not really help me much!

Rippo
To avoid confusion it's best not to create answers to your question as a method of conversation. Instead use 'add comment' on the question or on an answer.
AdamRalph
The problem is your design. If you fix that (as per my answer) the issue will go away.
AdamRalph
I am really sorry I clicked the wrong button about answers... However my question still stands and you can keep telling me about bad design and how the issue will go away but I fail to see how this is bad design unless there is a maximum number of methods one can use in a web service....If there is then say "yes there is" if you don't know then please don't answer.I don't want to start a argument about design, however I am trying to fathom out if there is a maximum number or not?
Rippo
The actually web methods gets created from a code smith template that hits all SP's in one hit so changing the design may not be needed if my question can get answered.
Rippo
A: 

you wont find a good solution for a bad design. its better to redesign web service so that consumers of the web service would see them in a group hierarchy and wont report this to thedailywtf :)

Numenor
You are correct but my question still stands"Has anyone else experienced problems with the maximum number of methods that are allowed in a web service?"
Rippo
A: 

If you want an answer just create a new webservice and create 235 web methods in it. If you have the same issue => there is a limit.

Holynoodle