[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlrpc-user
Subject: Generating signature to a custom location
From: Esa Kytola <Esa.Kytola () tietoevry ! com>
Date: 2022-11-16 14:52:14
Message-ID: DB3PR0402MB369290465D775D7308F15CEA93079 () DB3PR0402MB3692 ! eurprd04 ! prod ! outlook ! com
[Download RAW message or body]
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
[Attachment #3 (text/html)]
<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="en-FI" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have wsdl and xsd description of a webservice and its data. I \
have generated Webservice Java client sources using Apache CFX.<o:p></o:p></p> <p \
class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">I am trying to call a \
Webservice that requires a Signature in the body element like this:<o:p></o:p></p> <p \
class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><soap:Envelope \
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><o:p></o:p></p> \
<p class="MsoNormal"> <soap:Body><o:p></o:p></p> <p \
class="MsoNormal"> <ns3:Echo \
xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" \
xmlns:ns3="http://www.tulorekisteri.fi/2017/1/Echo"><o:p></o:p></p> <p \
class="MsoNormal"> \
<Data>Test</Data><o:p></o:p></p> <p \
class="MsoNormal"> <ns2:Signature/> <-- \
signature <span lang="EN-US">should</span> go here<o:p></o:p></p> <p \
class="MsoNormal"> </ns3:Echo><o:p></o:p></p> <p \
class="MsoNormal"> </soap:Body><o:p></o:p></p> <p \
class="MsoNormal"></soap:Envelope><o:p></o:p></p> <p \
class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">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).<o:p></o:p></p> <p \
class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">With both aproaches the \
signature is written under the Soap Header -> Security.<o:p></o:p></p> <p \
class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Is there a way to \
configure WSS4J to write the signature part to a custom location<span \
lang="EN-US">/node</span>?<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried to see from configuration options <span \
lang="EN-US"> from</span> https://ws.apache.org/wss4j/config.html but I couldn't \
catch anything obious.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best Regards,<o:p></o:p></p>
<p class="MsoNormal">-Esa<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic