axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa.abeysin...@gmail.com>
Subject Re: Signing a message?
Date Thu, 04 Nov 2010 16:08:50 GMT
Have you looked into Rampart samples?

Look for signing with a policy that specifies part of the SOAP body to be
signed.

On Thu, Nov 4, 2010 at 9:20 PM, jeffmo <jeff@rtr.com> wrote:

>
> I have been trying to sign a simple message for a while and I must be
> missing
> something simple.  I have the code working fine without a signature.  I use
> a ServiceClient.sendReceive(payload) and it works fine without trying to
> sign anything.  "payload" is an OMElement.
>
> When I tried setting OutflowSecurity in my axis2_default.xml file, I can
> see
> the signature in the debug log, but it's part of a document which has my
> original document wrapped in an extra soap envelope and even though I see
> it
> in the debug log, the document that gets sent is the original unsigned
> document.
>
> I have attempted to explicitly sign the payload in my code and haven't had
> much more luck there.
>
> Does anyone have a simple example of how to sign an XML document which is
> stored as an OMElement?
>
> Thanks!
> --
> View this message in context:
> http://old.nabble.com/Signing-a-message--tp30133371p30133371.html
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>  Samisa ...

http://samisa-abeysinghe.blogspot.com/

Mime
View raw message