how to debug a web service

S

steven

hi

i've got a web app that calls a web service, both of which i've
written and are available on localhost. i've added a web reference in
my web app to http://localhost/mywebservice. i've set a breakpoint in
my web app that calls one of the web service methods and try to step
into it, but am unable to step into the web service. i've also tried
running two instances of VS2003 at the same time. the second instance
of VS opens my web service, sets a breakpoint at the method my web app
calls, and is set to run in debug at the same time my web app is
running, but still no breakpoints in the web service are reached. is
it possible to step into my web service in this way?

tks
 
S

Simon Hart [MVP]

Yes it is. You need to set the compilation debug attribute to true in
web.config and ensure your web service is compiled in debug mode.
 
S

steven

Yes it is. You need to set the compilation debug attribute to true in
web.config and ensure your web service is compiled in debug mode.
--
Simon Hart
Visual Developer - Device Application Development MVPhttp://simonrhart.blogspot.com







- Show quoted text -

i've set debug to true in the web service and run the web app (that
consumes the web service) to debug and it still doesn't step into the
web service. what am i doing wring?.

i can only debug one service at a time, which is stet to the web site
that will contume the service. the web service runs off http://localhot/myserice

i've set a breakpoint where my web app calls the web service and tried
to 'step into', but VS just steps around the web service and return an
error message.

i'm using VS 2003, if that makes any difference. what am i doiing
wrong?

tks
 

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

Top