Michael Stephenson

keeping your feet on premise while your heads in the cloud
posts - 257, comments - 277, trackbacks - 11

My Links

News

View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn

Twitter












Archives

Post Categories

Image Galleries

BizTalk

Mates

Kerberos Adventures - WSE Adapter Publishing Wizard does not use KerberosToken2

Problem

When i published my orchestration as a web service and called it i got the message "invalid security token".  Upon investigation it is because the wizard produces a policy file which uses the KerberosToken rather than KerberosToken2.  You can tell this be the namespace for the token:

KerberosToken = http://schemas.xmlsoap.org/ws/2003/12/kerberos/Kerberosv5ST

KerberosToken2 = http://schemas.xmlsoap.org/ws/2003/12/kerberos/Kerberosv5_AP_REQ

Work Around

In my solution i need to use KerberosToken2, and in the stuff i have done recently i have only managed to get the adapter to work with KerberosToken2.  The work around i am using is to have my own custom policy file.  In my msbuild script which builds my BizTalk application i ensure i do the following tasks in this order within the script:

a. Regenerate the published web services based on the WebServiceDescription file.

b. Replace the generated policy file with my custom one.

c. Export the application as an msi

By ensuring in my build script the above tasks are done in that order it means i can work around the fact that the wizard generates the wrong kind of token and i still have everything working in the same way it used to.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Friday, February 23, 2007 9:55 PM | Filed Under [ BizTalk ]

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: