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
Solved

WS-Security and WSDL

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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 …
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…

839 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