473,785 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I get debug tracing from deserialization process?

I am building a client which accesses a web service (HTTP/SOAP), and I
think the response message is somehow not in agreement with my wsdl/
proxy class. I am able to access SOAP headers ok from the
deserialized response, but not elements in the body of the response.
Is there some way I can get some sort of debug tracing out of the
deserialization layer, or step thru it in debugger somehow, so I can
see how it is parsing the message and how it is handling the body
elements?

Mar 28 '07 #1
6 2502
On Mar 28, 8:01 am, "beachdog" <dhor...@pactol us.comwrote:
I am building a client which accesses a web service (HTTP/SOAP), and I
think the response message is somehow not in agreement with my wsdl/
proxy class. I am able to access SOAP headers ok from the
deserialized response, but not elements in the body of the response.
Is there some way I can get some sort of debug tracing out of the
deserialization layer, or step thru it in debugger somehow, so I can
see how it is parsing the message and how it is handling the body
elements?
No help? This seems pretty basic, I'm troubled if there isn't an
obvious technique or system facility that isn't easily at hand for
this.

Apr 2 '07 #2
"beachdog" <dh*****@pactol us.comwrote in message
news:11******** *************@n 76g2000hsh.goog legroups.com...
On Mar 28, 8:01 am, "beachdog" <dhor...@pactol us.comwrote:
>I am building a client which accesses a web service (HTTP/SOAP), and I
think the response message is somehow not in agreement with my wsdl/
proxy class. I am able to access SOAP headers ok from the
deserialized response, but not elements in the body of the response.
Is there some way I can get some sort of debug tracing out of the
deserializatio n layer, or step thru it in debugger somehow, so I can
see how it is parsing the message and how it is handling the body
elements?

No help? This seems pretty basic, I'm troubled if there isn't an
obvious technique or system facility that isn't easily at hand for
this.
Have you considered using a network monitor program? For instance, Microsoft
has just released Microsoft Network Monitor 3
(http://www.microsoft.com/downloads/d...isplaylang=en).

Also, you could consider writing a Soap extension for tracing. See How to:
Implement a SOAP Extension at
http://msdn2.microsoft.com/en-us/library/7w06t139.aspx.

BTW, I'm a little concerned that you say you can't access the elements in
the body of the response. What did you try, and what result did you see?

John
Apr 2 '07 #3
On Apr 2, 1:04 pm, "John Saunders" <john.saunder s at trizetto.com>
wrote:
>
BTW, I'm a little concerned that you say you can't access the elements in
the body of the response. What did you try, and what result did you see?

John
Thanks very much for the tips - I will look into them.

When I said I that I couldn't access elements in the body of the
response, I meant that when I try to get the returned value from the
result, it is null; whereas I am able to retrieve values out of the
SOAP header. Here is the relevant section of code that I execute:

/* async */
IAsyncResult result = cs.BeginOutdial Operation("781" ,
"784", "1234", null, null);
result.AsyncWai tHandle.WaitOne (2000, false);
if (result.IsCompl eted)
{
String status = cs.EndOutdialOp eration(result) ;
String sessionID = cs.srcsessionID Value.Text[0];

and what happens is that status is null -- the status element is the
only element carried in the body of the SOAP response. Meanwhile,
sessionID is properly populated -- and this is one of several elements
carried in the header of the response. I wrote about this problem in
a separate issue -- refer to this thread for details:

http://groups.google.com/group/micro...102e51c3?hl=en

Apr 3 '07 #4
Did you try to do any browser testing?
You can hit the web service from IE and pass the soap input, and then
examine if the returned results are in agreement with your class.

Apr 3 '07 #5
On Apr 3, 2:00 am, "Latish Sehgal" <latish.seh...@ gmail.comwrote:
Did you try to do any browser testing?
You can hit the web service from IE and pass the soap input, and then
examine if the returned results are in agreement with your class.
No, I haven't tried that. Actually, I'm not sure how to do that. How
can I use IE to generate an HTTP POST and specify the content to be
carried in the POST request?

Apr 3 '07 #6
When you hit the webservice url using IE, doest it show you examples
of invocation?

Apr 3 '07 #7

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

Similar topics

4
2029
by: Wal Turner | last post by:
Consider the following simple class: public class ClassA { public static string VAR = "hello"; } public void MethodA() { while(true)
8
2502
by: Lars-Erik Aabech | last post by:
Hi! I've got an asp.net page that works for all users except one and that one user only gets the error with a certain parameter set to a certain value. (Same value as the others, but for this one it fails). I manage to reproduce the error on my development computer, but it's completely impossible to debug or trace the error. The page had for some reason aspCompat set to true, and that gave a short stack trace, when set to false there's...
1
1284
by: shekhartgs | last post by:
Please tell me how to debug an ASP.NET web application residing on a remote server? Can you pls tell me point by point as I am a new bie to a lil extent. Also please alert me where errors might come in the process of remote debug. Thanks a ton, shekhar
3
9795
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the response. As a result of seraching news groups I guessed that the SOAP response defines an array element in a way that causes the dotnet deserialization routines to put the content in a generic object array (object) BUT the content is supposed to...
8
3470
by: ashoksrini | last post by:
Hi All, I have the below requirement and would like to get some feeback from the group on the best way to implement: 1. I have WSDL defined exposing few web services. 2. We dont have a requirement to have a server web service class. (reasons below) 3. I want to develop something like this - when client makes a web service call, on the server I can intercept the SOAP message (XML doc itself),
5
5535
by: frustratedWithDotNet | last post by:
Why does .NET not issue messages or throw exceptions if it doesn't like something in the response from a web service?? I am getting a response object, but an array of custom objects within the response is null instead of being populated. The SOAP response from the service looks good and I cannot see anything wrong with the WSDL or XML schema. How do I get .NET to tell me what it doesn't like? Is there a way to turn on some kind of tracing...
46
24274
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
0
936
by: beachdog | last post by:
I am building a client which accesses a web service (HTTP/SOAP), and I think the response message is somehow not in agreement with my wsdl/ proxy class. I am able to access SOAP headers ok from the deserialized response, but not elements in the body of the response. Is there some way I can get some sort of debug tracing out of the deserialization layer, or step thru it in debugger somehow, so I can see how it is parsing the message and...
19
2056
by: desktop | last post by:
When I write code I use a lot of: std::cout << "TEST1\n"; .... .... <some code> .... ....
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.