Re: Base WebService Page and Event?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 10 Jul 2007 06:53:33 GMT
Hi lucius,
So the question here is also related to your another thread "internal
webservice", right?
If you want to your custom authentication and want to put it in a central
place without affecting your main webservice's webmethod codelogic, I think
using SoapExtension is a good choice here. ASP.NET webservice will go
through a series of Soap Extensions (like a pipeline) when the SOAP message
come from network to the ASP.NET webservice engine. You can inject your
custom soap extensions into the pipeline chain and so some
customization(such as logging, message modification, authentication....).
Also, you can attach authentication info in webservice's SOAP header, and
check the Soap header for security authentcation info in SoapExtension:
#Digging into SOAP Headers with the .NET Framework
http://msdn2.microsoft.com/En-US/library/aa480503.aspx
The following articles have well demonstrate the use of SOAP Extensions:
#SOAP Message Modification Using SOAP Extensions
http://msdn2.microsoft.com/en-us/library/esw638yk.aspx
#Using SOAP Extensions in ASP.NET
http://msdn.microsoft.com/msdnmag/issues/04/03/ASPColumn/
#Extend the ASP.NET WebMethod Framework with Business Rules Validation
http://msdn.microsoft.com/msdnmag/issues/03/08/businessrules/default.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Base WebService Page and Event?
- From: Steven Cheng[MSFT]
- Re: Base WebService Page and Event?
- References:
- Base WebService Page and Event?
- From: lucius
- Re: Base WebService Page and Event?
- From: John Saunders [MVP]
- Base WebService Page and Event?
- Prev by Date: WebServices and Entity
- Next by Date: RE: interfacing WS with EDI
- Previous by thread: Re: Base WebService Page and Event?
- Next by thread: Re: Base WebService Page and Event?
- Index(es):
Relevant Pages
|
Loading