Thanks for your reply, Stefan. I saw that website before but I had some p=
roblems with the examples. Take this one for example:

Document envelope =3D ...
WSSignEnvelope signer =3D new WSSignEnvelope();
Crypto crypto =3D CryptoFactory.getInstance("crypto.properties");
Vector parts =3D new Vector();
WSEncryptionPart part =3D new WSEncryptionPart(soapConstants.getBodyQName=
().getLocalPart(),
                                             soapConstants.getEnvelopeURI=
(),
                                             "Content");
parts.add(part);
signer.setParts(parts); // this is optional since the body is signed by d=
efault
envelope =3D signer.build(envelope, crypto);


What do I have to enter after "Document envelope =3D "?  And I can't find=
 "soapConstants" anywhere either. Plus, I always make Web services as fol=
low: first make the WSDL, then generate Java classes from it, then make a=
 call like this:

PingServiceLocator service =3D new PingServiceLocator();
PingPort port =3D service.getPing1();

It looks like they are writing the whole SOAP message in the example at h=
ttp://www.mail-archive.com/[email protected]/msg00022.html
Can't I do it like I do as above (create the service, create the port fro=
m the service)?


Thanks for your reply again


Reply via email to