Hi,

 I have made some progress with respect to deploying this as a service. I
encounter the following problems :

when I try to execute the class (TestWSSecurity13), I get the following
error :

1. org.apache.xml.security.c14n.InvalidCanonicalizerException: Unknown
canonicalize
r. No handler installed for URI
http://www.w3.org/TR/2001/REC-xml-c14n-20010315#
WithComments
        at org.apache.xml.security.c14n.Canonicalizer.<init>(Unknown Source)
        at org.apache.xml.security.c14n.Canonicalizer.getInstance(Unknown
Source
)
        at org.apache.xml.security.utils.XMLUtils.outputDOM(Unknown Source)
        at org.apache.ws.axis.security.WSDoAllSender.invoke(
WSDoAllSender.java:1
95)


I did some google search and I have added  this line to
TestWSSecurity13.java.

org.apache.xml.security.Init.init();

Still I get the same error. Any pointers?

2. After I depoly this as a service (in axis), I generated the client
stubs using wsdl2java
I when I invoke from a client I get an axis fault :

faultString: java.lang.InstantiationException: wssec.TestWSSecurity13

Anyone has a working client program for invoking this
TestWSSecurity13? I need get signed
messages from WSS4J. Please help.

thanks,
Krithika

On 8/17/07, Krithika Sankaran <[EMAIL PROTECTED]> wrote:
>
> Hi Thanks for the inputs. I have compiled the 
> TestWSSecurity12.javasuccessfully. Can you please let me know how do I deploy 
> this in axis? I'm
> new to webservices. I need to deploy this and obtain a signed message from
> WSS4J. Thanks for your time.
>
> On 8/17/07, Werner Dittmann <[EMAIL PROTECTED]> wrote:
> >
> > Maybe you can have a look into the interop examples. There are quite
> > some deployment descriptors which show how to use WSS4J in Axis 1.
> >
> > If you like to use WSS4J direktly, i.e. without a handler you may
> > consult the **/action/*.java file to get an idea how it works. Also
> > the TestCase files use the WSS4J functions directly. There are
> > some examples in the TestCases that implement signature.
> >
> > Regards,
> > Werner
> >
> > Krithika Sankaran wrote:
> > > Does anyone have code for signing messages using wss4j? (axis). I have
> >
> > > installed axis, wss4j successfully and I'll looking for some samples
> > that
> > > would let me sign messages using wss4j.
> > >
> > > Any pointers would be highly appreciated.
> > >
> > > Also do you have a sample signed message? (which is not tampered) I
> > need to
> > > pass it thru my verification tool.
> > >
> > > Thanks,
> > > Krithika
> > >
> >
> >
>

Reply via email to