Solved

WS-Security and WSDL

Posted on 2004-08-31
3
1,204 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 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Header Font Size in Grid View 6 51
Make borderless form movable by user 2 27
How do I "share" on social sites? 2 40
unable to isntall .net framework 3.5 19 39
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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 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