Hello,
I'm kind of new to WSE 2.0 (sp3) so not sure how to solve this problem.
Running Win2K3 with SP1 and trying to use Kerberos signature only, no
encryption yet. My test helloworld program gives me an error, so I figured I
should try to use the examples provided.
I tried the Kerberos policy example that comes with WSE and it also gives me
the same error:
Calling http://localhost/KerberosPolicyService/KerberosService.asmx
****** Exception Raised ******
System.Web.Services.Protocols.SoapException:
SOAP-Fault code:
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecur
ity-secext-1.0.xsd:FailedCheck
Message: The signature or decryption was invalid
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean
asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodN
ame, Object[] parameters)
at KerberosClient.StockServiceWse.StockQuoteRequest(String[] symbols) in
C:\P
rogram Files\Microsoft
WSE\v2.0\Samples\CS\QuickStart\Kerberos\Policy\KerberosPo
licyClient\KerberosProxy.cs:line 51
at KerberosClient.KerberosClient.Run() in C:\Program Files\Microsoft
WSE\v2.
\Samples\CS\QuickStart\Kerberos\Policy\KerberosPolicyClient\KerberosClient.cs:li
ne 118
at KerberosClient.KerberosClient.Main(String[] args) in C:\Program
Files\Micr
osoft
WSE\v2.0\Samples\CS\QuickStart\Kerberos\Policy\KerberosPolicyClient\Kerber
osClient.cs:line 62
******************************
Press [Enter] to continue...
Thanks in advance for your help.
Johnny Wishbone - 16 Jun 2005 00:29 GMT
Hi Lucy,
I have just started to receive the same error message using kerberos.
If you find a way to get around it, could you please post it?
Thank you
Johnny
Lucy - 20 Jul 2005 20:51 GMT
The answer is to use KerberosToken2.
KerberosToken2 kerbToken = new KerberosToken2(targetPrincipalName,
ImpersonationLevel.Identification);
But, be prepared that when WSE 3.0 comes out - you'll need to change back to
KerberosToken. It's in the Web Services 3.0 Enhancements Technology Preview
Release notes
Cheers,
Lucy