Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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,


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:02 PM.


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