all groups > dotnet web services > october 2006 >
You're in the

dotnet web services

group:

USE WSE 2.0 to set the action of a message.


USE WSE 2.0 to set the action of a message. Gustav
10/25/2006 12:06:01 AM
dotnet web services:
Im trying to use WSE 2.0 to connect to a WebService that authenticate the
client through negotiation described in WS-SecureConversation Appendix I.3
(Token Discovery Using RST/RSTR).

I use the following code to try to get a RSTR containing a "challange".

string tokenType = "http://schemas.xmlsoap.org/ws/2004/04/security/sc/sct";
RequestSecurityToken rst = new
RequestSecurityToken(tokenType,"http://schemas.xmlsoap.org/ws/2004/04/security/sc/sct")
rst.RequestTypeUri="http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue";
SecurityTokenServiceClient client = new SecurityTokenServiceClient(new Uri(
"WebServiceURI"));
try
{
RequestSecurityTokenResponse RSTR = client.IssueSecurityToken (rst);
}
catch(Exception e)
{
throw new ApplicationException(e.Message);
}

When I check the output message the <wsa:Action> tag in the header is set to
the following.
<wsa:Action>http://schemas.xmlsoap.org/ws/2004/04/security/trust/RST/Issue</wsa:Action>
But it has to be
<wsa:Action>http://schemas.xmlsoap.org/ws/2004/04/security/trust/RST/SCT</wsa:Action>

How can I use WSE to set the correct action for my message?
RE: USE WSE 2.0 to set the action of a message. Daniel Bengtsson
4/30/2007 12:00:00 AM

[quoted text, click to view]

Hi!
I have the same problem. Have you found any solution?

Best regards,

Daniel Bengtsson

BizTalk Utilities - Frustration free BizTalk Adapters
AddThis Social Bookmark Button