Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 27th, 2005, 05:09 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default WSE 2.0 Security Policy

I need to create a policy file for my Web Service with security built-in and
I’m using VB.net and WSE 2.0 to do it.

I am new to building Web Services, so any help would be appreciated. So
far, I know I need to add a <policy></policy> tag in the WEB.config, and
between the tags would be the name of the xml document that has the policies
in it. Is there anything else that I should include in the Web.config file?

I have created this policyCache.xml document and added it to my project. In
researching what needs to go in my policy I have come across many examples,
and I would like to know what each tag means and the definition on how to use
them. Can anyone tell me where to find this information? Below is a sample
I found that I am trying to understand.

<policyDocument>
  <mappings>
    <endpoint>
      <operation/>
      <defaultOperation>
        <request/>
        <response/>
        <fault/>
      </defaultOperation>
    </endpoint>
    <endpoint>
      <defaultOperation>
        <request/>
        <response/>
        <fault/>
      </defaultOperation>
    </endpoint>
    <defaultEndpoint>
      <defaultOperation>
        <request/>
        <response/>
        <fault/>
      </defaultOperation>
    </defaultEndpoint>
  </mappings>
  <policies>
    <wsp:Policy>
      <wssp:Confidentiality>
        <wssp:KeyInfo>
          <wssp:SecurityToken>
            <wssp:TokenType></wssp:TokenType>
          </wssp:SecurityToken>
        </wssp:KeyInfo>
        <wssp:MessageParts></wssp:MessageParts>
      </wssp:Confidentiality>
    </wsp:Policy>
    <wsp:Policy>
      <wssp:Confidentiality>
        <wssp:KeyInfo>
          <wsse:SecurityTokenReference>
            <wsse:KeyIdentifier></wsse:KeyIdentifier>
          </wsse:SecurityTokenReference>
        </wssp:KeyInfo>
        <wssp:MessageParts></wssp:MessageParts>
      </wssp:Confidentiality>
    </wsp:Policy>
    <wsp:Policy>
      <wssp:Integrity>
        <wssp:TokenInfo>
          <wssp:SecurityToken>
            <wssp:TokenType></wssp:TokenType>
          </wssp:SecurityToken>
        </wssp:TokenInfo>
        <wssp:MessageParts></wssp:MessageParts>
      </wssp:Integrity>
    </wsp:Policy>
    <wsp:Policy>
      <wssp:Integrity>
        <wssp:TokenInfo>
          <wsp:OneOrMore>
            <wssp:SecurityToken>
              <wssp:TokenType></wssp:TokenType>
            </wssp:SecurityToken>
            <wssp:SecurityToken>
              <wssp:TokenType></wssp:TokenType>
            </wssp:SecurityToken>
          </wsp:OneOrMore>
        </wssp:TokenInfo>
        <wssp:MessageParts></wssp:MessageParts>
      </wssp:Integrity>
    </wsp:Policy>
  </policies>
</policyDocument>

Thanks,




Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP security policy enforcement anup_daware General .NET 0 February 21st, 2008 11:30 AM
How to implement WSE 3.0 with code only nitinp .NET Web Services 0 October 24th, 2007 01:53 AM
WSE 2.0 sabansingh .NET Web Services 0 May 15th, 2006 02:19 AM
VB 6 and WSE 2.0 ramkumars .NET Web Services 0 May 9th, 2006 04:52 AM
WSE 2.0 trouble sabansingh C# 0 February 21st, 2006 07:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.