I generated the artifacts for a web service using wsimort and wrote a client to test it. This works fine until I add the X509Token policy to test the client. I am getting a WSS1816: Error occurred while resolving KeyIdentifier, XWSSecurityException: No Matching public key
The request from the client is working:
INFO: WSP5018: Loaded WSIT configuration from file: file:/home/kmayer/git/GoogleProv/target/classes/META-INF/wsit-client.xml.
Completed webservice call
---[HTTP request - https://wsdev.colorado.edu:443/GoogleProv/PostOptIn]---
The response returns the Invalid security error:
---[HTTP response - https://wsdev.colorado.edu:443/GoogleProv/PostOptIn - 500]---
null: HTTP/1.1 500 Internal Server Error
Date: Fri, 16 Nov 2012 18:07:57 GMT
<?xml version='1.0' encoding='UTF-8'?>
I have placed the wsit-client.xml, serviceName.xml in the META-INF directory. they are attached. I think the PKI is the problem. The public key was extracted from the client keystore and placed on the server.
The attached files are appended deliberately with the .txt label so they can be uploaded.
thanks for looking at this.