how to debug a web service
am 30.11.2007 01:00:41 von Dica
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
RE: how to debug a web service
am 30.11.2007 12:58:02 von srhartone
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 MVP
http://simonrhart.blogspot.com
"steven" wrote:
> 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
>
Re: how to debug a web service
am 01.12.2007 01:35:16 von Dica
On Nov 30, 6:58 am, Simon Hart [MVP] wrote:
> 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
>
>
>
> "steven" wrote:
> > 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 tohttp://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- Hide quoted text -
>
> - 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