Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WS-Security and WSDL

Posted on 2004-08-31
3
Medium Priority
?
1,206 Views
Last Modified: 2008-02-01
Is there any way to define your WS-Security requirements in WSDL?

I have a service that requires a Username token, a MessageSignature, and EncryptedData.  How should the service consumer know this, if not for WSDL?  

References would be helpful.. :)

Thanks.

(Specifically, I'm writing this web service in C#, .NET Framework 1.1, WSE 2.0)
0
Comment
Question by:BDBloom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 1400 total points
ID: 11949505
U can have a SoapExtension Attribute in the Header. Then u can use the SoapHeaderAttribute to specify the tokens. These SoapHeaderAttributes represent a property that can be set and also retrieved.

[SoapExtension]
[SoapHeaderAttribute("UserProfile", Direction=SoapHeaderDirection.In)]
[SoapHeaderAttribute("MessageProfile", Direction=SoapHeaderDirection.InOut)]
[SoapHeaderAttribute("DataClass", Direction=SoapHeaderDirection.InOut)]

Then u can have three classe called UserProfile,MessageProfile and DataClass

MessageProfile will have a property called MessageSignature
UserProfile can have a property called Username  
DataClass can have a property called EncryptedData.

Or u can have all the three properties in the same class



0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question