The parts mechanisms does not support XPath. When
we include policy support there will be some XPath
support according to WS SecurityPolicy specification.

Regards,
Werner 

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 21. Februar 2006 17:41
> An: [email protected]
> Betreff: 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}MXINVOICE
Interface/{http://www.mro.com/mx/integration}Content}"/>
> But I get error
> 
> WSHandler: wrong part definition:
> {Content}{/{http://www.mro.com/mx/integration}MXINVOICEInterfa
ce/{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}MXINVOICEInterfa
ce/{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(Invocation
> Strategy.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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to