Search:
Namespaces
Discussions
.NET v1.1
Feedback
SOAP responses and .NET
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.xml
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Sandeep Jain
I am testing a
WebService
by writing a client on .NET.
I used the WSDL to successfully create a proxy class, and
am able to send correct SOAP requests, as per the
WebService
.
The SOAP trace utility shows that I am getting a good SOAP
response.
However, the .NET proxy object returns silently with null values.
I am using "document" style operations and bindings.
How can I begin to debug this? If .NEt won't give me any insight,
can you recommend some good software/website that takes a WSDL and a
SOAP response, and validates the SOAP response?
Your help much appreciated. Thanks.
Reply to this message...
Christoph Schittko [MVP] (VIP)
Locate the proxy classes you generated. Remove the
[System.Diagnostics.
DebuggerStepThroughAttribute
()]. You'll find some
pointers on how to debug the message deserialization at [0] if you need to
dig all the way down to that.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
[0]
http://weblogs.asp.net/cschittko/posts/33045.aspx
"Sandeep Jain" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Sandeep Jain
Thanks for the response.
Removing that [System...] didn't help.
Are you suggesting wrt. XmlSerialization article, that I copy the SOAP
response into a file, and read it in, and use
XmlSerializer
to test
the response against the proxy classes? Is there any direct way for
..NET to popup an error message or exception?
Also, note that my application receives the SOAP response (as
determined by the trace utility), but the following code fails
silently (no exception).
try
{
T20Proxy.SessionResponse response = _service.OpenSession(session);
MessageBox
.Show(response.ExpirationSeconds);
}
catch (
SoapException
err)
{
MessageBox
.Show(err.Detail.InnerXml, "Error");
}
Also, I did add the following to my application.exe.config, and didn't
find any files in the temp directories.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<switches>
<add name="XmlSerialization.Compilation" value="1" />
</switches>
</system.diagnostics>
</configuration>
Sandeep
"Christoph Schittko [MVP]" <
Click here to reveal e-mail address
> wrote in message news:<
Click here to reveal e-mail address
>...
[Original message clipped]
Reply to this message...
Christoph Schittko [MVP] (VIP)
Sandeep,
Removing the attribute merely allows you to set a breakpoint in your proxy
class so you can step into it [0]. It will not solve any potential
exceptions. With the attribute removed, you can run your web service client
inside Visual Studio debugger and set a breakpoint. Together with the
diangostic switch for the
XmlSerializer
, you can step through the code that
deserializes the response from the web service.
Can you be more precise, what line fails ... if you didn't find any files in
the temp directory, are you sure that your client even received any response
from the web service?
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
[0]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdiagnosticsdebuggerstepthroughattributeclasstopic.asp
"Sandeep Jain" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
System.Diagnostics.DebuggerStepThroughAttribute
System.Web.Services.Protocols.SoapException
System.Web.Services.WebService
System.Windows.Forms.MessageBox
System.Xml.Serialization.XmlSerializer
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com