Skip to main content

WCF client consuming Java web service - Token authenticator problem

2 replies [Last post]
gavroche
Offline
Joined: 2008-12-18
Points: 0

Hi,

I am trying to connect from a .Net WCF client to a third party web service coded in Java and implementing WS-Security with public key certificates for CXF-based web services.

After some struggle, I finally manage to send a request properly formated and get a response 200 from the service.

Even though I recieve a reponse code 200 from the service, an error is raised by WCF when processing the response:

Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: Cannot find a token authenticator for the 'System.IdentityModel.Tokens.X509SecurityToken' token type. Tokens of that type cannot be accepted according to current security settings.

I seems that the service is including a BinarySecurityToken in the response that WCF cannot process.

Has anyone a clue on this ? It's beens days I am struggeling on this problem...
Any help would be greatly appreciated !

Cheers,
Gavroche

Message was edited by: gavroche

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gavroche
Offline
Joined: 2008-12-18
Points: 0

3) Trace of the response sent by the service: (http response code 200)





2008-12-18T11:53:40.485Z
2008-12-18T11:58:40.485Z










7DadA8Ans4dfaoDFL2Fs35jafo=



ksSDfhC2haGsdfas+dhfSa3ldfjCVBkvbs4jghsdfKga5jlXsdBfhaVCjghkl3jlfhBdfgsVdfgd
sdfsgl62kfpzxsH5WE0mnvlpXsQ12SdxhJKu834Kfsd/Shj3daSae9daDAcnX3KSnfc98SKccjsa
YWEhd7SKmcdovSKANXU=










gavroche
Offline
Joined: 2008-12-18
Points: 0

1) My client configuration using wsHttpBinding





establishSecurityContext="false"/>




binding="wsHttpBinding"
bindingConfiguration="Binding1"
contract="MyService"
name="WSHttpBinding_Binding1"
behaviorConfiguration="Binding1Behavior">














2) the client configuration using customHttpBinding



allowSerializedSigningTokenOnReply="true"
requireDerivedKeys="false"
includeTimestamp="true"
requireSecurityContextCancellation="false">