Solved

WS-Security and WSDL

Posted on 2004-08-31
3
1,197 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
3 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 350 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now