473,431 Members | 1,620 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,431 software developers and data experts.

debug options with SOAP call problems

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)
Nov 19 '05 #1
1 1630
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\incl ude\OMCommon\cache.
inl</file><line>740</line></error></detail> Source: System.Web.Services
"Antoine" <mf****@dsl-spam.pipex.com> wrote in message
news:10*************@corp.supernews.com...
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)

Nov 19 '05 #2

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

Similar topics

0
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before...
2
by: Li Ma | last post by:
Just want to share my experience on XML-RPC. We were working on a messaging middleware. We were using XML-RPC as communication protocol amoing client apps and server. Client could be written by...
0
by: bigbinc | last post by:
I have setup a soap machine on linux and similar configuration works properly. on a windows mahcine, I get these erros on the addressbook, samples, any ideas. I am pretty sure my classpaths are...
0
by: Leonid | last post by:
Thanks a lot for your time! Here is WSDL: <?xml version="1.0" encoding="utf-8"?>
3
by: Polvere | last post by:
Hello everybody, I'm experiencing a problem during debug with Microsoft Visual C++: wherever I set a breakpoint (and even if I disable all breakpoints) the debugger goes into disassembler mode,...
0
by: Daniel Thune, MCSE | last post by:
I am having a problem with formatting a SOAP Header in a .Net client. The client calls a Java Axis 1.1 based web service. In order to authenticate the caller, the web service call is intercepted by...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
2
by: Peter K | last post by:
Hi I have a VS2005 c# solution which includes a webservice and a windows application which uses the webservice. How do I "debug" into the webservice from the application? I can for example...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
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...
0
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...
0
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...

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.