how to debug a web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steven

    how to debug a web service

    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
  • =?Utf-8?B?U2ltb24gSGFydCBbTVZQXQ==?=

    #2
    RE: how to debug a web service

    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
    Former Microsoft Mobility MVP 2008, 2009, 2010, 2011 now at MSFT



    "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
    >

    Comment

    • steven

      #3
      Re: how to debug a web service

      On Nov 30, 6:58 am, Simon Hart [MVP] <srhart...@yaho o.comwrote:
      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.blog spot.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

      Comment

      Working...