Newbie Web Service question

  • Thread starter Thread starter Bryan Dickerson
  • Start date Start date
B

Bryan Dickerson

I'm still learning about Web Services and all, so please go easy on me. I
created my first web service the other day and got it working. Now I want
to add another method to it, so I added the code and recompiled it, but when
I go back to my test app, the new method doesn't appear in the intellisense
drop-down for the web service methods and properties. What am I missing?
 
June 16, 2005

1# Make sure that your new method is appended by <WebMethod()> _
Otherwise, your new method is treated like an internal method that can't be
called remotely.
2# Right click your web reference in your test app, and click Update Web
Reference... This will update your test app to be able to use the new method
as long as 1# as completed.... Hope this helps and have a great day!

--
Joseph Bittman
Microsoft Certified Application Developer

Web Site: http://71.35.110.42
Dynamic IP -- Check here for future changes
 
#2 was what I needed. Thanx! So I'll need to do this every time I make an
update to the WS?

Joseph Bittman MCAD said:
June 16, 2005

1# Make sure that your new method is appended by <WebMethod()> _
Otherwise, your new method is treated like an internal method that can't
be called remotely.
2# Right click your web reference in your test app, and click Update Web
Reference... This will update your test app to be able to use the new
method as long as 1# as completed.... Hope this helps and have a great
day!

--
Joseph Bittman
Microsoft Certified Application Developer

Web Site: http://71.35.110.42
Dynamic IP -- Check here for future changes
 
Yes, because when you reference a web service, VS creates a proxy
class. This proxy class is actually what you are calling. The proxy
class needs to be updated each time you add, change, or delete a
<Webmethod>.

You can add other methods to your web service that are internal to the
web service withough having to update the web reference. You only have
to update the reference if you add, change, or delete one of the public
<WebMethod>.
 
Bryan,

Every time you change the "Interface", yes - that's adding, removing
or just changing any of the 'WebMethod' signatures (including their
arguments).

If you only change the code /inside/ these methods, then no; your
client program will continue to work.

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top