[Xml-compile] Question on Signing Elements via XML::Compile::WSS::Signature

Jacob Petrie jake at silverweb.com
Tue Jul 30 04:17:04 GMT 2013


Hi All,

Sorry if this is a really dumb question, but I haven't been able to find the answer by searching. I am guessing that this is easily answered, but just started exploring XML::Compile::* as a partner has required we use WSS for SOAP messages, and we've only used SOAP::Lite in the past.

First, very excited about using XML::Compile::WSS as we are already ahead of where we were before in trying to get WSS headers and signatures in place. I have a question on how to use XML::Compile::WSS::Signature, as I'm not sure what object to get the NODEs from for additional signatures. The WSDL of the service we are calling as a client requires that we sign with 2 signatures, the first with 6 elements signed (5 of which are in the header, including the tiemstamp, and the other is the body) and then a second signature on the first signature element (<ds:Signature>). 

Can someone point me in the right direction as far as a sample of adding elements to the header and then how to get and pass those nodes so that they can be signed?

Additionally, we must include an EncryptedKey element within the header (xmlenc). Is that something I can do with XML::Compile::WSS or do I need to generate that myself?

Again, sorry if these are already answered. Any pointers would be greatly appreciated!

All the best,
Jacob


More information about the Xml-compile mailing list