You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by Ruchith Fernando <ru...@apache.org> on 2007/09/02 21:12:02 UTC

Re: rampart sample 05 encryption

Hi,

Seems like you have globally engaged and configured rampart at the
service. Now to be able to invoke this service you will have configure
the client too.

Please see here for an example :

http://www.wso2.org/library/255

Thanks,
Ruchith

shams jawaid wrote:
> Hi,
>  
> i am trying to implement the encryption example 05  in a webservice
> deployed in axis2. i am using rampart v 1.2. i have installed rampart
> and i can see it as the available modules in the axis2 admin page.
> however, whenever i initialise my web service client, i get an error:
>  
> WSDoAllReceiver: Incoming message does not contain required Security header
>  
> in my apache-tomcat-5.5.23\webapps\axis2\WEB-INF\conf - axis2.xml file i
> have put this in:
>  
> 
> <phase name="Security">
> 
> <module ref="rampart" />
> 
> <parameter name="OutflowSecurity">
> 
> <action>
> 
> <items>Encrypt</items>
> 
> <encryptionUser>service</encryptionUser>
> 
> <encryptionPropFile>client.properties</encryptionPropFile>
> 
> </action>
> 
> </parameter>
> 
> <parameter name="InflowSecurity">
> 
> <action>
> 
> <items>Encrypt</items>
> 
> <passwordCallbackClass>axis2.adb.sync.rampart.callbackhandler.PWCBHandler</passwordCallbackClass>
> 
> <decryptionPropFile>client.properties</decryptionPropFile>
> 
> </action>
> 
> </parameter>
> 
> </phase>
> 
> and this is in my services.xml file:
> 
> <parameter name="InflowSecurity">
> 
> <action>
> 
> <items>Encrypt</items>
> 
> <passwordCallbackClass>test.PWCBHandler</passwordCallbackClass>
> 
> <decryptionPropFile>service.properties</decryptionPropFile>
> 
> </action>
> 
> </parameter>
> 
> <parameter name="OutflowSecurity">
> 
> <action>
> 
> <items>Encrypt</items>
> 
> <encryptionUser>client</encryptionUser>
> 
> <encryptionPropFile>service.properties</encryptionPropFile>
> 
> </action>
> 
> </parameter>
> 
> <parameter name="ServiceClass">
> 
> test.Random
> 
> </parameter>
> 
> </service>
> 
> if anyone can help solve the "WSDoAllReceiver: Incoming message does not
> contain required Security header" error it would be greatly appreciated,
> 
> thanks
> 
> 
> ------------------------------------------------------------------------
> The next generation of Hotmail is here - Windows Live Hotmail
> <http://g.msn.com/8HMAENUK/2749??PS=47575>