[jboss-user] [JBossWS] - Re: Unable to create a WSClient that uses jboss-wsse-client.
noclueu2
do-not-reply at jboss.com
Tue Apr 3 13:11:24 EDT 2007
I recreated the service removing anotation:
@WebMethod(operationName="PullFromHat")
Then rebuilt the client classes using the new WSDL. I still get the same error.
If I just do signing and not encryption everything works great. I use the same file contents for both the jboss-wsse-server.xml and jboss-wsse-client.xml which is:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
| <key-store-file>META-INF/wsse.keystore</key-store-file>
| <key-store-password>jbossws</key-store-password>
| <trust-store-file>META-INF/wsse.truststore</trust-store-file>
| <trust-store-password>jbossws</trust-store-password>
| <config>
| <sign type="x509v3" alias="wsse"/>
| <encrypt type="x509v3" alias="wsse" />
| <requires>
| <signature/>
| <encryption/>
| </requires>
| </config>
| </jboss-ws-security>
|
If I change them to:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
| <key-store-file>META-INF/wsse.keystore</key-store-file>
| <key-store-password>jbossws</key-store-password>
| <trust-store-file>META-INF/wsse.truststore</trust-store-file>
| <trust-store-password>jbossws</trust-store-password>
| <config>
| <sign type="x509v3" alias="wsse"/>
| <requires>
| <signature/>
| </requires>
| </config>
| </jboss-ws-security>
|
The above works. I also tried it without the signature and just encryption which gives me the same error.
Thanks,
Richard k
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034211#4034211
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034211
More information about the jboss-user
mailing list