Solved

WS-Security and WSDL

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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