Hello, I have wsdl and xsd description of a webservice and its data. I have generated Webservice Java client sources using Apache CFX.
I am trying to call a Webservice that requires a Signature in the body element like this: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns3:Echo xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" xmlns:ns3="http://www.tulorekisteri.fi/2017/1/Echo"> <Data>Test</Data> <ns2:Signature/> <-- signature should go here </ns3:Echo> </soap:Body> </soap:Envelope> I can generate signature using CFX with WSS4JOutInterceptor. Also I have tried to generate signature using WSS4J "Standalone approach" (https://ws.apache.org/wss4j/using.html). With both aproaches the signature is written under the Soap Header -> Security. Is there a way to configure WSS4J to write the signature part to a custom location/node? I have tried to see from configuration options from https://ws.apache.org/wss4j/config.html but I couldn't catch anything obious. Best Regards, -Esa
