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

Logging web service calls

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
Nov 21 '05 #1
2 7217
Galore wrote:
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.


This sounds like a good candidate for creating an infrastructure service
that would sit in the message processing pipeline and logs the SOAP message
to a database. An infrastructure service is a Web service that is configured
to process the SOAP message on its way in or out of a service. This is the
same mechanism used for securing the message, attachments, etc., so far from
being escoteric, that's what the message processing pipeline is designed
for. One major advantage of this approach is that one logging infrastructure
service is all that you'll need, you don't have to write custom code for
each client or service they call to make it work. See Figure 2 in
Messaging -- Application Architecture: Conceptual View [1] for what the
message processing pipeline looks like architecturally.

Also, because the logging infrastructure service intercepts SOAP messages in
the message processing pipeline, that makes it compeletely independent of
transport security such as SSL: a message outbound from your application
will be processed through the entire pipeline before it is passed to the
transport channel where it gets encrypted; similarly, incoming messages are
decrypted on the transport before they are processed by the inbound message
processing pipeline.

How you implement and configure an infrastructure service depends on what
technology you are using. With ASP.NET XML Web Services (ASMX), take a look
at SOAP Extensions [2].

In WSE 2.0, infrastructure services may be configured through WS-Policy [3],
although writing a custom logging policy may be somewhat more challenging.

Cheers,
Stuart Celarier, Fern Creek

[1] http://msdn.microsoft.com/library/en...nmessaging.asp
[2]
http://msdn.microsoft.com/library/en...extensions.asp
[3] http://msdn.microsoft.com/library/en...derstwspol.asp
Nov 21 '05 #2
Hmm, this looks like what I need! I'll study this stuff, then I'll tell you
if it fit...
But one more question, Stuart. SOAP Extension can be used to log what is
sent by my Web Service, but I can use it to log what comes to my
application, from an external Web Service? I'll have both situations on my
app.

Thanks a lot.
"Stuart Celarier" <stuart at ferncrk dot com> wrote in message
news:eF**************@TK2MSFTNGP14.phx.gbl...
Galore wrote:
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.
This sounds like a good candidate for creating an infrastructure service
that would sit in the message processing pipeline and logs the SOAP

message to a database. An infrastructure service is a Web service that is configured to process the SOAP message on its way in or out of a service. This is the
same mechanism used for securing the message, attachments, etc., so far from being escoteric, that's what the message processing pipeline is designed
for. One major advantage of this approach is that one logging infrastructure service is all that you'll need, you don't have to write custom code for
each client or service they call to make it work. See Figure 2 in
Messaging -- Application Architecture: Conceptual View [1] for what the
message processing pipeline looks like architecturally.

Also, because the logging infrastructure service intercepts SOAP messages in the message processing pipeline, that makes it compeletely independent of
transport security such as SSL: a message outbound from your application
will be processed through the entire pipeline before it is passed to the
transport channel where it gets encrypted; similarly, incoming messages are decrypted on the transport before they are processed by the inbound message processing pipeline.

How you implement and configure an infrastructure service depends on what
technology you are using. With ASP.NET XML Web Services (ASMX), take a look at SOAP Extensions [2].

In WSE 2.0, infrastructure services may be configured through WS-Policy [3], although writing a custom logging policy may be somewhat more challenging.

Cheers,
Stuart Celarier, Fern Creek

[1] http://msdn.microsoft.com/library/en...nmessaging.asp [2]
http://msdn.microsoft.com/library/en...ringsoapmessag
eusingsoapextensions.asp [3] http://msdn.microsoft.com/library/en...derstwspol.asp

Nov 21 '05 #3

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

Similar topics

0
by: Robert.Schmitt | last post by:
I found that the configuration system of the new logging package of Python 2.3 has some unintuitive idiosyncracies that are worth mentioning because they can cost you quite some development time...
6
by: Kevin Jackson | last post by:
Let's say we log exceptions to the windows application event log using the Exception Management Application Block. Is there a pattern that can be used so the exception is logged only once and not...
7
by: Leo Breebaart | last post by:
I have another question where I am not so much looking for a solution but rather hoping to get some feedback on *which* solutions people here consider good Pythonic ways to approach a issue. ...
3
by: Chris Shenton | last post by:
I am setting up handlers to log DEBUG and above to a rotating file and ERROR and above to console. But if any of my code calls a logger (e.g., logging.error("foo")) before I setup my handlers, the...
10
by: jaleel | last post by:
Hi , i would like to reopen the issue in the post http://www.gamedev.net/community/forums/topic.asp?topic_id=418791. My scenario is like this: 1. A web application is there (being created by...
2
by: Vinay Sajip | last post by:
Some users of the logging package have raised an issue regarding the difficulty of passing additional contextual information when logging. For example, the developer of a networked application may...
17
by: Cramer | last post by:
I plan to implement an exception logging feature in an ASP.NET Web application that writes encountered exceptions to disk. The exception data will be stored as XML. I am planning on having each...
1
by: nathan.alden | last post by:
I have a Windows application that must "log in" to a remote service. Once logged in, for all subsequent service calls the Windows application should somehow pass a "session context" in each message...
5
by: Daniel S | last post by:
Hi, I'm new here. I'm using the Logging Application Block with Enterprise Library 3.1. My program works correctly on my XP developer station, but on the 2003 Server, no new entries appear in...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.