473,499 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Logging soap requests in a web service client

Hello, I want to log the soap requests (and responses) in my C# webservice
consumer. I have extended my class with the SoapExtension, but the debugger
don't step into the overridden methods. The WSClient class is running as part
of a console application as administrator.

Why doesn't the debugger step into my methods?
Here is my code.

Thank You
Joachim

public class WSClient : SoapExtension{

public WSClient() {
// ...
}

public string callMethod() {
WebReference1.Service1 myService = new
WebReference1.SSODivaServiceService();
string myValue = myService.getResult();
return myValue;
}

public override void ProcessMessage(SoapMessage message){
string mess = message.ToString();
}

public override object GetInitializer(System.Type type){
return @"C:\temp\log1.txt";
}

public override void Initialize(object o){
string name = o.ToString();
}

public override object GetInitializer(LogicalMethodInfo methodInfo,
SoapExtensionAttribute attribute) {
return @"C:\temp\log2.txt";
}

}
Nov 17 '05 #1
2 4376
The soap extension will only be fired if you're invoking the service via
soap, not via http get. If you use the browser test form to invoke your
method then you're using http get, not soap, so you'll need another client.

Try to create a simple ASPX page. That should work.

Markus
"v. Seydewitz" wrote:
Hello, I want to log the soap requests (and responses) in my C# webservice
consumer. I have extended my class with the SoapExtension, but the debugger
don't step into the overridden methods. The WSClient class is running as part
of a console application as administrator.

Why doesn't the debugger step into my methods?
Here is my code.

Thank You
Joachim

public class WSClient : SoapExtension{

public WSClient() {
// ...
}

public string callMethod() {
WebReference1.Service1 myService = new
WebReference1.SSODivaServiceService();
string myValue = myService.getResult();
return myValue;
}

public override void ProcessMessage(SoapMessage message){
string mess = message.ToString();
}

public override object GetInitializer(System.Type type){
return @"C:\temp\log1.txt";
}

public override void Initialize(object o){
string name = o.ToString();
}

public override object GetInitializer(LogicalMethodInfo methodInfo,
SoapExtensionAttribute attribute) {
return @"C:\temp\log2.txt";
}

}

Nov 17 '05 #2
Hi, what kind of client do i need to invoke the service via soap? Or is there
another way to log the soap requests when using http get?

Thank you
Joachim

"Markus Kling" wrote:
The soap extension will only be fired if you're invoking the service via
soap, not via http get. If you use the browser test form to invoke your
method then you're using http get, not soap, so you'll need another client.

Try to create a simple ASPX page. That should work.

Markus
"v. Seydewitz" wrote:
Hello, I want to log the soap requests (and responses) in my C# webservice
consumer. I have extended my class with the SoapExtension, but the debugger
don't step into the overridden methods. The WSClient class is running as part
of a console application as administrator.

Why doesn't the debugger step into my methods?
Here is my code.

Thank You
Joachim

public class WSClient : SoapExtension{

public WSClient() {
// ...
}

public string callMethod() {
WebReference1.Service1 myService = new
WebReference1.SSODivaServiceService();
string myValue = myService.getResult();
return myValue;
}

public override void ProcessMessage(SoapMessage message){
string mess = message.ToString();
}

public override object GetInitializer(System.Type type){
return @"C:\temp\log1.txt";
}

public override void Initialize(object o){
string name = o.ToString();
}

public override object GetInitializer(LogicalMethodInfo methodInfo,
SoapExtensionAttribute attribute) {
return @"C:\temp\log2.txt";
}

}

Nov 17 '05 #3

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

Similar topics

2
7222
by: Galore | last post by:
Hello, I have the situation: I've got an application that calls lots of web services, throught the Internet. I need to keep track of every web service call (every data that's transfered), and...
3
9768
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...
5
8220
by: jb | last post by:
*Please* help --- I'm tearing my hair out. I want to use sessionstate in a webservice, accessed from a client, written in script (JScript, InfoPath). I have written my webservice (C# .NET). I...
5
4133
by: vthakur | last post by:
Hello: I have a Axis Web Service that sets the sessionid in the SOAP header for persisting the session. The client is a .Net client that processes the header as an Unknown Header. It sets the...
1
1596
by: Heena Patel | last post by:
Hi, I have a implemented a web service interface that has a webmethod accepting xml, but I need to also have post option available to my webservice. I understand if a client Posts a SOAP...
1
12254
by: Florian Grousset | last post by:
Hi, I'm trying to code a simple C# SOAP client wich query an Axis2 Java SOAP Server. Server side code has been generated from a WSDL file. SOAP requests and responses must both contain a simple...
1
5968
by: libsfan01 | last post by:
Hi all Can anyone explain the relationship between SOAP and XMLHttpRequest in Javascript? What actually is SOAP? and how does it relate to the process of transferring data client-side through...
2
6734
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
5
3054
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I've got a .Net client to a soap service that works for the most part, but there are a couple of things I'd like to improve: 1) the first request to the client wrapper always takes...
0
7128
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
7169
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,...
1
6892
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...
0
7385
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...
0
5467
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,...
1
4917
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
4597
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
1425
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 ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.