Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How to diagnose bad SOAP requests to ASP.NET Web Service

Reply
Thread Tools

How to diagnose bad SOAP requests to ASP.NET Web Service

 
 
Peter Kron
Guest
Posts: n/a
 
      08-23-2005
We occasionally get reports of failures where the client of a webservice
receives a SOAP exception, such as:
"Server was unable to read request. --> There is an error in XML document
(1, 1021). --> The '<' character, hexadecimal value 0x3C, cannot be included
in a name. Line 1, position 1025."

It appears to be a problem with the client, but we don't control that
environment. Is there an appropriate place to trap this exception on the
server, so we can see the SOAP request causing this error? It never gets to
a web method, so perhaps there is something that can be done in global.asax?

Thanks
Peter Kron


 
Reply With Quote
 
 
 
 
Stephen Ahn
Guest
Posts: n/a
 
      08-24-2005
Peter,

You can use a SoapExtension to log SOAP requests on the server.
If you look up "SoapExtension" in VS.NET help, there's code
for an example class called TraceExtension, which will
log SOAP requests. I'm not sure how you could selectively
log only those SOAP requests which are causing exceptions,
though.

HTH,
Stephen

"Peter Kron" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> We occasionally get reports of failures where the client of a webservice
> receives a SOAP exception, such as:
> "Server was unable to read request. --> There is an error in XML document
> (1, 1021). --> The '<' character, hexadecimal value 0x3C, cannot be
> included in a name. Line 1, position 1025."
>
> It appears to be a problem with the client, but we don't control that
> environment. Is there an appropriate place to trap this exception on the
> server, so we can see the SOAP request causing this error? It never gets
> to a web method, so perhaps there is something that can be done in
> global.asax?
>
> Thanks
> Peter Kron
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
Bad Html !! use trace to diagnose miguelit00 HTML 0 05-07-2008 11:43 AM
MS KB article - How to diagnose a crashing Service in XP. . . Tony Sperling Windows 64bit 0 05-16-2007 01:48 PM
web requests and mobile requests Fernando Arámburu ASP .Net 1 04-08-2005 07:13 PM



Advertisments