473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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.
Apr 11 '08 #1
4 1198
On Apr 11, 9:00 am, Rob Millman <RMill...@nospam.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
Jun 27 '08 #2
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
http://msdn2.microsoft.com/en-us/magazine/cc164115.aspx

#Using SOAP Extensions in ASP.NET
http://msdn2.microsoft.com/en-us/magazine/cc164007.aspx

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
http://blogs.msdn.com/kaevans/archiv...20/217707.aspx

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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
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: Acib7RlzyZ4LpNqJRFmXKL8iGSTibQ==
X-WBNR-Posting-Host: 69.223.240.46
From: =?Utf-8?B?Um9iIE1pbGxtYW4=?= <RM******@nospam.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.

Jun 27 '08 #3
=?Utf-8?B?Um9iIE1pbGxtYW4=?= <RM******@nospam.nospamwrote in
news:24**********************************@microsof t.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.

--
sp**********@rogers.com (Do not e-mail)
Jun 27 '08 #4
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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

--------------------
From: st*****@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
http://msdn2.microsoft.com/en-us/magazine/cc164115.aspx

#Using SOAP Extensions in ASP.NET
http://msdn2.microsoft.com/en-us/magazine/cc164007.aspx

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
http://blogs.msdn.com/kaevans/archiv...20/217707.aspx

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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
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: Acib7RlzyZ4LpNqJRFmXKL8iGSTibQ==
X-WBNR-Posting-Host: 69.223.240.46
From: =?Utf-8?B?Um9iIE1pbGxtYW4=?= <RM******@nospam.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.

Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Sonia | last post by:
I'm written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that once my send mail code is...
2
by: IcedCrow | last post by:
#1) Burning question on my mind is ... what is the difference between a "web service" and a distributed COM component other then a distributed COM component had to be registered on a host server...
26
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
8
by: Woody Splawn | last post by:
I am asking this question here because I asked this question in the Reporting Services Newsgroup and did not get an answer. Does anyone know if Reporting Services is intended to work in a...
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
21
by: EmJayEm | last post by:
Can someone tell me the Disadvantages/Cons of web services? Thanks, EmJ.
7
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
1
by: Robert Strickland | last post by:
We are developing a several web applications that use 'services' that perform key business functions for our applications. These same 'services' are avaible to paying clients through web services. ...
0
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.