I have an issue with signing an xml form for a WSDL web service. I can sign the document just fine but the web service rejects it, while all other signature verifications check out. I have been told by the service provider the issue is i'm signing the entire document, instead of just the child. And i have no idea how to sign an xml, turn it into a node and import it into another xml without breaking the integrity of the signature. any help would be appreciated.
The xml outline is as follows:
<OddajVlogoReq>
<EvemHRDocument>
all the data
<Signatures>
<Singature>
signature things
</Signature>
</Signatures>
</EvemHRDocument>
</OddajVlogoReq>
And apparently the OddajVlogoReq element is not supposed to be signed. I'm signing by serialising and forming a signed xml from the entire document, then appending the signature as a child into the document. There's no difference wheather i start with the parent or first child signature wise, but starting with the EvemHRDocument would mean i then need to append the signed document to the OddajVlogoReq. How can i do that and keep the signature valid?