You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by An...@mro.com on 2006/02/21 17:40:30 UTC

encryptionParts question

Hi
Just wondering how do I give a xpath expression in the that property - I am
trying to encrypt only a particular element in my xml. The element is there
all over in the xml - but I need to encrypt only one which is why I need to
specify an xpath expression. I tried something like this

     <parameter name="encryptionParts"
value="{Content}{/{http://www.mro.com/mx/integration}MXINVOICEInterface/{http://www.mro.com/mx/integration}Content}"/>
But I get error

WSHandler: wrong part definition:
{Content}{/{http://www.mro.com/mx/integration}MXINVOICEInterface/{http://www.mro.com/mx/integration}Content};
 nested exception is:
      org.apache.ws.security.WSSecurityException: WSHandler: wrong part
definition:
{Content}{/{http://www.mro.com/mx/integration}MXINVOICEInterface/{http://www.mro.com/mx/integration}Content}
      at
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:201)
      at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

Not sure what I am doing wrong - any pointers will help.

thanks
Anamitra


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org