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 / August 2005

Tip: Looking for answers? Try searching our database.

WSE 2.0 TCP authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anna - 02 Aug 2005 06:27 GMT
If I make make my web service communication work over TCP using SoapClient
and SoapService, can I still use policy files or should I implement all the
security related stuff, i.e. override Authenticate, implement my own
SecurityTokenManager etc.

Thanks in advance.
Anna
Alex Trebek - 02 Aug 2005 14:39 GMT
Policy files will still work fine .. I'm doing it now in across multiple
SOAP tcp services.  IMHO it is better practice to use WS-Policy if possible
since it is easier to maintain for someone unfamiliar with your project.

Alex

> If I make make my web service communication work over TCP using SoapClient
> and SoapService, can I still use policy files or should I implement all
[quoted text clipped - 4 lines]
> Thanks in advance.
> Anna
Anna - 04 Aug 2005 14:17 GMT
Alex,

Thanks a lot for your reply. However I ran into a problem. I used to have a
solution with two projects: one project for my client win app and another
project for my web service. Since I decided to use SOAP tcp service I
replaced my previous Web project with a normal C# project (similar to WSE
sample).  This in turn led me to one only app.config file (in my client
project).  I double-checked MSDN which confirmed that in such a situation I
can only have one app.config file.  Now the problem: how do I specify my
server-side policy?  I created policy.config for the server project but where
do I reference it?  It used to be in the web.config.  My one and only
app.config includes an entry for the client-side policy.config.  What am I  
supposed to do with the server side policy?

Thanks in advance.
Anna

> Policy files will still work fine .. I'm doing it now in across multiple
> SOAP tcp services.  IMHO it is better practice to use WS-Policy if possible
[quoted text clipped - 10 lines]
> > Thanks in advance.
> > Anna
Alex Trebek - 04 Aug 2005 14:49 GMT
Anna,

You need to refer to your policy config in the app.config via the
<microsoft.web.services2>
<policy>

<!-- Path your config -->

<cache name="../../policyCache.config" />

</policy>

I usually do this from the VS IDE by right-clicking the project file in the
solution explorer and choosing 'WSE 2.0 Settings'.  This will handle the
mapping of the app.config to the policy.config.  If you do this, you still
have only one true config for the project but your settings persist in the
policy.config file as a part of the project.  This also applies for web
projects as well.

HTH,

Alex

> Alex,
>
[quoted text clipped - 32 lines]
>> > Thanks in advance.
>> > Anna

Rate this thread:







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.