views:

82

answers:

4

Building a test web service and all was working great, so I added the rest of my methods and now they aren't appearing in the "View in Browser" test page.

I stopped the service in the system tray. Did a CLEAN. Did Rebuild. Did Build. Tried all these several times.

Odd thing is that one of my new methods replaced one of the old methods (HelloWorld default), but the rest of the 10 - 15 methods just aren't there.

Any ideas on this at all?

EDIT: Here's a sample of what I've got...

 [WebMethod]
 public DataSet GetSiteMap()
 {
  return Photo_DA.GetSitemap();
 }

 [WebMethod]
 public DataSet GetByTypeDate(string photoType, DateTime photoDate)
 {
  return Photo_DA.GetByTypeDate(photoType, photoDate);
 }

 [WebMethod]
 public static DataSet GetArchiveCombos()
 {
  return Photo_DA.GetArchiveCombos();
 }

The first two show. The third does not.

DOH! STATIC is the bad guy -- I cannot delete this message, so Admin can I suppose.

+2  A: 

Did you forget to apply the attribute [WebMethod] to your new methods?

meklarian
Nope... it's there...
peiklk
ooh ouch. can you provide the declaration for one of your web methods?
meklarian
A: 

Do you have any new endpoints that need to be configured in your web.config file?

grimus
A: 

Did you update the web reference?

eschneider
Also stop the service host and rebuild
eschneider
+6  A: 

Should GetArchiveCombos() really be static?

Rowland Shaw
Nope and that was what I figured out... giving you the cred though! Thanks!
peiklk