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.S ervice1 myService = new
WebReference1.S SODivaServiceSe rvice();
string myValue = myService.getRe sult();
return myValue;
}
public override void ProcessMessage( SoapMessage message){
string mess = message.ToStrin g();
}
public override object GetInitializer( System.Type type){
return @"C:\temp\log1. txt";
}
public override void Initialize(obje ct o){
string name = o.ToString();
}
public override object GetInitializer( LogicalMethodIn fo methodInfo,
SoapExtensionAt tribute attribute) {
return @"C:\temp\log2. txt";
}
} 2 4427
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.S ervice1 myService = new WebReference1.S SODivaServiceSe rvice(); string myValue = myService.getRe sult(); return myValue; }
public override void ProcessMessage( SoapMessage message){ string mess = message.ToStrin g(); }
public override object GetInitializer( System.Type type){ return @"C:\temp\log1. txt"; }
public override void Initialize(obje ct o){ string name = o.ToString(); }
public override object GetInitializer( LogicalMethodIn fo methodInfo, SoapExtensionAt tribute attribute) { return @"C:\temp\log2. txt"; }
}
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.S ervice1 myService = new WebReference1.S SODivaServiceSe rvice(); string myValue = myService.getRe sult(); return myValue; }
public override void ProcessMessage( SoapMessage message){ string mess = message.ToStrin g(); }
public override object GetInitializer( System.Type type){ return @"C:\temp\log1. txt"; }
public override void Initialize(obje ct o){ string name = o.ToString(); }
public override object GetInitializer( LogicalMethodIn fo methodInfo, SoapExtensionAt tribute attribute) { return @"C:\temp\log2. txt"; }
} This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 log it into a DB. Some WS uses SSL.
What's the best way to do this?
Thanks
|
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 response.
As a result of seraching news groups I guessed that the SOAP response
defines an array element in a way that causes the dotnet deserialization
routines to put the content in a generic object array (object) BUT the
content is supposed to...
|
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 have marked the method(s) with
EnableSession=true. I have read everything there is to read! I am told that
to reuse session, my client needs to receive a cookie in the header from the
webservice and then pass this back in all future calls. ...
|
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 session id received from the Service
request on subsequent requests to the service. However the Axis Web service
does not process the SOAP header received from the .Net client and creates a
new session id for each request from the .Net client. Below...
|
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 reqyest, it will work with my webservice.
The problem is my client cannot send soap method, they will be sending normal
httpstream to me. I want the Web service to redirect all the non-soap
messages to my aspx page that handles normal posts. Can anyone...
| |
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 String array (not
very diffucult I think !).
What I've done :
1. WSDL file writing (see at the bottom of this post)
|
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 the aforementioned
method?
|
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 definitely getting a hit when I use a browser to get to my hibye.cgi server (well, a blank page rather than a 404).
However, when I run my hibye.pl client, I receive a 503 Service Unavailable at H:\scripts\hibye.pl line 25.
It works when I...
|
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 12-15 seconds even
though the web server shows < a half second spent on the request. What takes
so much time for the client wrapper to warm up? All subsequent requests,
even to the same method, take the half second.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |