debug options with SOAP call problems

A

Antoine

Instead of getting SOAP header errors, I'd like to get detailed.

Aside from using file.open and creating a debug file, is there any reason it
won't send
a trace.write line ? I can otherwise send them ok but within the catch loop,
it seems to send the same sort of basic truncated message as what you get on
the "throw" result back to the page....

I was definitely using trace.write and fields e.details.outerxml etc
etc...in my other code. Just dont know why it doesnt trace.
Any help please? Any way I can avoid sending to a file as its a bit
primitive.


I am going to end up resorting to the sort of example I have created as
below.

Catch e As System.Web.Services.Protocols.SoapException
' Process the platform error here
Dim FILE_NAME As String = "c:\temp\MyFile.txt"
Dim FOLDER_NAME As String = "c:\temp"

If Not System.IO.Directory.Exists(FOLDER_NAME) Then
System.IO.Directory.CreateDirectory(FOLDER_NAME)
End If

Dim sr As StreamWriter = File.CreateText(FILE_NAME)
sr.WriteLine("This is my file.")
record = ("ErrorMessage: " + e.Message + " " + e.Detail.OuterXml
+ " Source: " + Err.Source)
sr.WriteLine(account)
sr.Close()
Throw (e)
 
A

Antoine

Maybe I am not trying hard enough to get it to work (or break should I
say!).
I seem to get trace throwing the errors now. I just hope it does in my
actual code.

aspx.page Begin Init
aspx.page End Init 0.001038 0.001038
ErrorMessage: SOAP Server Application Faulted
<detail><error><code>80040e00</code><description>The specified entity does
not exist</description><details>Entity :
testt</details><file>D:\blah\Build\3297\src\platform\include\OMCommon\cache.
inl</file><line>740</line></error></detail> Source: System.Web.Services
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top