Web Services Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Um9iIE1pbGxtYW4=?=

    Web Services Question

    I am developing a C# client app using VS 2008 that consumes a 3rd party web
    service. My question is how/where in my IDE/Debugging session can I visually
    see the actual XML message that is being sent to the web service? To debug
    specific cases, the other party wants to see the XML that is being submitted.
    Any help is appreciated.
  • Brian Lampe

    #2
    Re: Web Services Question

    On Apr 11, 9:00 am, Rob Millman <RMill...@nospa m.nospamwrote:
    I am developing a C# client app using VS 2008 that consumes a 3rd party web
    service. My question is how/where in my IDE/Debugging session can I visually
    see the actual XML message that is being sent to the web service? To debug
    specific cases, the other party wants to see the XML that is being submitted.
    Any help is appreciated.
    I've done this with SOAP Extensions: http://msdn2.microsoft.com/en-us/magazine/cc164007.aspx

    You can hook into the serialize/de-serialize on the service before and
    after it goes through the proxy code. You'll have to add an attribute
    to the method in the proxy code to direct it to your SOAP extension
    derived class.

    Hope this helps.

    Brian

    Comment

    • Steven Cheng [MSFT]

      #3
      RE: Web Services Question

      Hi RMillman,

      As Brian mentioned, in .net framework, for webservice server-side or client
      side, you can write a simple SoapExtension to log the request/response
      messsages:

      #Extend the ASP.NET WebMethod Framework by Adding XML Schema Validation


      #Using SOAP Extensions in ASP.NET


      Also, if you want some general means to capture webservice messages(not
      require code or not coupled with .net platform), you can consider using
      some network based trace utilities. Here is a blog entry mentioned some:

      #Web Services Tracing Tools


      Sincerely,

      Steven Cheng

      Microsoft MSDN Online Support Lead


      Delighting our customers is our #1 priority. We welcome your comments and
      suggestions about how we can improve the support we provide to you. Please
      feel free to let my manager know what you think of the level of service
      provided. You can send feedback directly to my manager at:
      msdnmg@microsof t.com.

      =============== =============== =============== =====
      Get notification to my posts through email? Please refer to
      Gain technical skills through documentation and training, earn certifications and connect with the community

      ications.

      Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
      where an initial response from the community or a Microsoft Support
      Engineer within 1 business day is acceptable. Please note that each follow
      up response may take approximately 2 business days as the support
      professional working with you may need further investigation to reach the
      most efficient resolution. The offering is not appropriate for situations
      that require urgent, real-time or phone-based interactions or complex
      project analysis and dump analysis issues. Issues of this nature are best
      handled working with a dedicated Microsoft Support Engineer by contacting
      Microsoft Customer Support Services (CSS) at
      http://msdn.microsoft.com/subscripti...t/default.aspx.
      =============== =============== =============== =====
      This posting is provided "AS IS" with no warranties, and confers no rights.

      --------------------
      Thread-Topic: Web Services Question
      thread-index: Acib7RlzyZ4LpNq JRFmXKL8iGSTibQ ==
      X-WBNR-Posting-Host: 69.223.240.46
      From: =?Utf-8?B?Um9iIE1pbGx tYW4=?= <RMillman@nospa m.nospam>
      Subject: Web Services Question
      Date: Fri, 11 Apr 2008 09:00:01 -0700

      I am developing a C# client app using VS 2008 that consumes a 3rd party web
      service. My question is how/where in my IDE/Debugging session can I
      visually
      see the actual XML message that is being sent to the web service? To debug
      specific cases, the other party wants to see the XML that is being
      submitted.
      Any help is appreciated.

      Comment

      • Spam Catcher

        #4
        Re: Web Services Question

        =?Utf-8?B?Um9iIE1pbGx tYW4=?= <RMillman@nospa m.nospamwrote in
        news:243355B7-98EE-45A3-A2C9-E55EAE3E8208@mi crosoft.com:
        I am developing a C# client app using VS 2008 that consumes a 3rd
        party web service. My question is how/where in my IDE/Debugging
        session can I visually see the actual XML message that is being sent
        to the web service? To debug specific cases, the other party wants to
        see the XML that is being submitted.
        Any help is appreciated.
        You can use a tool like Fiddler, TCPTrace, Wireshark, etc to log your data
        transfers.

        I heard SoapUI.org is pretty good too, but I've never used it with .NET.

        --
        spamhoneypot@ro gers.com (Do not e-mail)

        Comment

        • Steven Cheng [MSFT]

          #5
          RE: Web Services Question

          Hi RMillman,

          Do you have any further questions on this or does the information in
          previous messages help you some? Welcome to post here if there is still
          anything we can help.

          Sincerely,

          Steven Cheng
          Microsoft MSDN Online Support Lead


          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.

          =============== =============== =============== =====
          Get notification to my posts through email? Please refer to
          Gain technical skills through documentation and training, earn certifications and connect with the community

          ications.

          =============== =============== =============== =====
          This posting is provided "AS IS" with no warranties, and confers no rights.

          --------------------
          From: stcheng@online. microsoft.com (Steven Cheng [MSFT])
          Organization: Microsoft
          Date: Mon, 14 Apr 2008 02:21:03 GMT
          Subject: RE: Web Services Question


          Hi RMillman,

          As Brian mentioned, in .net framework, for webservice server-side or client
          side, you can write a simple SoapExtension to log the request/response
          messsages:

          #Extend the ASP.NET WebMethod Framework by Adding XML Schema Validation


          #Using SOAP Extensions in ASP.NET


          Also, if you want some general means to capture webservice messages(not
          require code or not coupled with .net platform), you can consider using
          some network based trace utilities. Here is a blog entry mentioned some:

          #Web Services Tracing Tools


          Sincerely,

          Steven Cheng

          Microsoft MSDN Online Support Lead


          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.

          =============== =============== =============== =====
          Get notification to my posts through email? Please refer to
          Gain technical skills through documentation and training, earn certifications and connect with the community

          ications.

          Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
          where an initial response from the community or a Microsoft Support
          Engineer within 1 business day is acceptable. Please note that each follow
          up response may take approximately 2 business days as the support
          professional working with you may need further investigation to reach the
          most efficient resolution. The offering is not appropriate for situations
          that require urgent, real-time or phone-based interactions or complex
          project analysis and dump analysis issues. Issues of this nature are best
          handled working with a dedicated Microsoft Support Engineer by contacting
          Microsoft Customer Support Services (CSS) at
          http://msdn.microsoft.com/subscripti...t/default.aspx.
          =============== =============== =============== =====
          This posting is provided "AS IS" with no warranties, and confers no rights.

          --------------------
          Thread-Topic: Web Services Question
          thread-index: Acib7RlzyZ4LpNq JRFmXKL8iGSTibQ ==
          X-WBNR-Posting-Host: 69.223.240.46
          From: =?Utf-8?B?Um9iIE1pbGx tYW4=?= <RMillman@nospa m.nospam>
          Subject: Web Services Question
          Date: Fri, 11 Apr 2008 09:00:01 -0700

          I am developing a C# client app using VS 2008 that consumes a 3rd party web
          service. My question is how/where in my IDE/Debugging session can I
          visually
          see the actual XML message that is being sent to the web service? To debug
          specific cases, the other party wants to see the XML that is being
          submitted.
          Any help is appreciated.



          Comment

          Working...