Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2006

Tip: Looking for answers? Try searching our database.

Web services Logs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pierre - 24 Mar 2006 13:48 GMT
Hi everybody,

I need a solution to be able to check who, when and from where a client
is using what service (and I cannot access IIS' logs).

I gathered that I could set a a custom SoapHeader with the proprieties
needed, fill it on the client and use the data on the server. But isn't
there a built in way of doing that in WSE?

Thank you for your tips, help and remarks.

Best regards,
Pierre
Pablo Cibraro - 27 Mar 2006 15:09 GMT
Hi Pierre,

Yes, WSE offers different security headers to identity a user, such as
UsernameToken (User + Password), Kerberos, X509, custom, etc.
In addition, it provides message security so no one can change the message
while it goes from the client to the service.
To make the things easier to configure, WSE provides a set of pre-configured
scenarios called Turn-Key scenarios.
In your case, you can use one of this turn-key scenarios:

1. UsernameOverTransport ( User + Password using the security provided by
the transport )
2. UsernameForCertificate ( User + Password encrypted and signed with a X509
Certificate )

I recommend you to take a look the quickstarts provided by WSE.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

> Hi everybody,
>
[quoted text clipped - 9 lines]
> Best regards,
> Pierre
Pierre - 29 Mar 2006 11:10 GMT
Hi,

Sorry for the misunderstanding Pablo, I'd like to log the use of my
WSs, I'm not focused on authentication (yet).

I have created that soap extension that writes logs, but I cannot
figure out a way to register it in the web.config. I have tried many
ways...

Here are the info needed from the extension:

namespace Hss.Com.WebServices.Tools
public class LogTraceExtension : SoapExtension

     <soapExtensionTypes>
       <add type="Hss.Com.WebServices.Tools.LogTraceExtension"
priority="1" group="0" />
     </soapExtensionTypes>

When I try to debug the WS I get the following error:

Could not load type 'Hss.Com.WebServices.Tools.LogTraceExtension' from
assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.

I have seen several examples of <soapExtensionTypes> on the web, but
they did not enlight me.

Thx for the tips and help you'll be able to send,
Pierre
Pablo Cibraro - 30 Mar 2006 20:08 GMT
Hi Pierre,

At first glance, you forgot to specify the assembly name for the type.

<add type="Hss.Com.WebServices.Tools.LogTraceExtension, ASSEMBLY_NAME">
priority="1" group="0" />

Replace ASSEMBLY_NAME for the correct name.

I hope this can solve your problem.

Regards,
Pablo.

> Hi,
>
[quoted text clipped - 26 lines]
> Thx for the tips and help you'll be able to send,
> Pierre

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.