Hi Elliot,
If you want to use WSS4J within a JAX-WS runtime you can simply write a
SOAPHandler<SOAPMessageContext> that adds/verifies the WS-Security
signature at the DOM SOAP level. This can be used for both client-side
and server-side WS-Security implementation.
Regards,
Frank.
On Fri, 2008-02-29 at 11:08 -0400, Elliot Vargas-Figueroa wrote:
> Hello everyone.
>
> First of all, forgive me if I'm not posting to the correct place for
> this.
>
> Well, I am trying to use WSS4J to provide secure Web services
> communication
> (SOAP + Signing + Encryption) between a Java server and a C/C++
> client.
> For the server side, we are using Sun's JAX-WS RI implementation and
> for the client side gSoap.
>
> So far I've being unable to find useful info on using WSS4J with other
> Web services implementation besides
> Axis (and we cannot change to Axis). I've spent 2 days already trying
> to make thinks work to no avail.
>
> If it is of any help, I'm posting my current properties file and the
> error message I'm getting.
>
> My current crypto.properties:
>
> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> org.apache.ws.security.crypto.merlin.file=
> ${catalina.base}/ssl/server.ks
> org.apache.ws.security.crypto.merlin.keystore.type=jks
> org.apache.ws.security.crypto.merlin.keystore.alias=tomcat
> org.apache.ws.security.crypto.merlin.keystore.password=change_it
>
>
> And I'm getting the following error:
>
> org.apache.ws.security.components.crypto.Merlin cannot create instance
>
> at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
> at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:180)
> at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:162)
> at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:55)
> at
> com.commoca.ws.sec.Wss4jConfigurator.init(Wss4jConfigurator.java:36)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
>
>
> Any help that you can provide will be greatly appreciated.
>
> --
> Elliot A. Vargas-Figueroa
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]