Hello! I’m trying to sign a simple soap message. The message looks like this: <?xml version="1.0" encoding="utf-8"?> <e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"> <e:Header /> </e:Envelope> By no means I’m an expert in network stuff (I’m only a beginner and a hobby programmer). As far as I understand, the result should look something like: <e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"> <e:Header> ….. <Reference URI="#signedContent"> …… </Signature> </e:Envelope> So to my understanding the signature goes into the header, and the signature reference points to the body. I’ve put the signature node into the header by calling xmlAddChild(xmlDocGetRootElement(doc)->children, signNode); However I don’t know how to tell the library to sign the body. Do I have to place the id attribute in the body by myself, or should I let the library do it? The library isn’t very well documented (or maybe the functions make sense, but not for someone like me). Which functions do I need to call next (I’m using the x509 example as a basis). Probably I should create the reference node like this: NULL, (const xmlChar*)"signedContent”, NULL); Sent from Mail for Windows |
_______________________________________________ xmlsec mailing list [email protected] http://www.aleksey.com/mailman/listinfo/xmlsec
