You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dimuthu <mu...@apache.org> on 2007/07/04 06:25:05 UTC
Re: Exception in rampart configuration with inflow - outflow
classes
Hi,
Please try this,
stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration().getProperty());
stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration().getProperty());
You can also load different policy objects for different client calls.
Cheers,
Dimuthu
On Wed, 2007-07-04 at 00:07 +0200, Jorge Fernandez wrote:
> Hi,
>
> For quite a long time I've been trying to configure a client that is
> invoking some operations to encrypt just some of the messages. I have
> read in this page that the rampart 1.0 configuration style could be
> use even though is marked as deprecated.
>
> http://ruchith.blogspot.com/2007/06/apache-rampart-12-released.html
>
> So I tried to do it and I'm getting the following exception:
>
> rg.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:94)
> at
> org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
> at
> client.Medici_LinkSOAP12PortStub.validateSystem(Medici_LinkSOAP12PortStub.java:747)Validating system ch4_001mu...
>
> at
> client.ClientUtilities.validateSystemTest(ClientUtilities.java:73)
> at client.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:151)
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:88)
> ... 9 more
> Caused by: java.lang.ClassCastException:
> org.apache.rampart.handler.config.InflowConfiguration cannot be cast
> to org.apache.axis2.description.Parameter
> at
> org.apache.rampart.util.HandlerParameterDecoder.processParameters(HandlerParameterDecoder.java:63)
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:149)
> ... 10 more
>
>
> I'm doing this:
>
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration());
>
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration());
>
>
> public static OutflowConfiguration getOutflowConfiguration(){
> OutflowConfiguration ofc = new OutflowConfiguration();
> ofc.setActionItems("Timestamp Signature Encrypt");
> ofc.setUser("client1");
> ofc.setPasswordCallbackClass("client.PWCBHandler");
> ofc.setSignaturePropFile("client1.properties");
>
> ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
>
> //ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
> ofc.setEncryptionUser("service");
> ofc.getProperty();
> return ofc;
> }
>
> public static InflowConfiguration getInflowConfiguration(){
> InflowConfiguration ifc = new InflowConfiguration();
> ifc.setActionItems("Timestamp Signature Encrypt");
> ifc.setPasswordCallbackClass("client.PWCBHandler");
> ifc.setSignaturePropFile("client1.properties");
> ifc.getProperty();
> return ifc;
> }
>
>
> Can anybody tell me what's the problem??? or tell me another way to
> configure the client to encrypt certain messages???
>
> Thanks a lot,
>
> Jorge Fernández
>
>
>
>
>
> ______________________________________________________________________
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Exception in rampart configuration with inflow - outflow classes
Posted by Jorge Fernandez <in...@yahoo.es>.
It worked!!
Thanks a lot.
About Policies, do you know where can I find any sample on how to get a service policy from the client and check the compatibility with client's policy?? In rampart samples, policies are set on services.xml and I don't know how can the client access them. Should I put them in the WSDL and read them with any special method??
Could someone point me on a nice sample on that??
Regards,
Jorge Fernández
Dimuthu <mu...@apache.org> escribió: Hi,
Please try this,
stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration().getProperty());
stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration().getProperty());
You can also load different policy objects for different client calls.
Cheers,
Dimuthu
On Wed, 2007-07-04 at 00:07 +0200, Jorge Fernandez wrote:
> Hi,
>
> For quite a long time I've been trying to configure a client that is
> invoking some operations to encrypt just some of the messages. I have
> read in this page that the rampart 1.0 configuration style could be
> use even though is marked as deprecated.
>
> http://ruchith.blogspot.com/2007/06/apache-rampart-12-released.html
>
> So I tried to do it and I'm getting the following exception:
>
> rg.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:94)
> at
> org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
> at
> client.Medici_LinkSOAP12PortStub.validateSystem(Medici_LinkSOAP12PortStub.java:747)Validating system ch4_001mu...
>
> at
> client.ClientUtilities.validateSystemTest(ClientUtilities.java:73)
> at client.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:151)
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:88)
> ... 9 more
> Caused by: java.lang.ClassCastException:
> org.apache.rampart.handler.config.InflowConfiguration cannot be cast
> to org.apache.axis2.description.Parameter
> at
> org.apache.rampart.util.HandlerParameterDecoder.processParameters(HandlerParameterDecoder.java:63)
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:149)
> ... 10 more
>
>
> I'm doing this:
>
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration());
>
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration());
>
>
> public static OutflowConfiguration getOutflowConfiguration(){
> OutflowConfiguration ofc = new OutflowConfiguration();
> ofc.setActionItems("Timestamp Signature Encrypt");
> ofc.setUser("client1");
> ofc.setPasswordCallbackClass("client.PWCBHandler");
> ofc.setSignaturePropFile("client1.properties");
>
> ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
>
> //ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
> ofc.setEncryptionUser("service");
> ofc.getProperty();
> return ofc;
> }
>
> public static InflowConfiguration getInflowConfiguration(){
> InflowConfiguration ifc = new InflowConfiguration();
> ifc.setActionItems("Timestamp Signature Encrypt");
> ifc.setPasswordCallbackClass("client.PWCBHandler");
> ifc.setSignaturePropFile("client1.properties");
> ifc.getProperty();
> return ifc;
> }
>
>
> Can anybody tell me what's the problem??? or tell me another way to
> configure the client to encrypt certain messages???
>
> Thanks a lot,
>
> Jorge Fernández
>
>
>
>
>
> ______________________________________________________________________
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
---------------------------------
¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
Re: Exception in rampart configuration with inflow - outflow classes
Posted by Jorge Fernandez <in...@yahoo.es>.
It worked!!
Thanks a lot.
About Policies, do you know where can I find any sample on how to get a service policy from the client and check the compatibility with client's policy?? In rampart samples, policies are set on services.xml and I don't know how can the client access them. Should I put them in the WSDL and read them with any special method??
Could someone point me on a nice sample on that??
Regards,
Jorge Fernández
Dimuthu <mu...@apache.org> escribió: Hi,
Please try this,
stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration().getProperty());
stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration().getProperty());
You can also load different policy objects for different client calls.
Cheers,
Dimuthu
On Wed, 2007-07-04 at 00:07 +0200, Jorge Fernandez wrote:
> Hi,
>
> For quite a long time I've been trying to configure a client that is
> invoking some operations to encrypt just some of the messages. I have
> read in this page that the rampart 1.0 configuration style could be
> use even though is marked as deprecated.
>
> http://ruchith.blogspot.com/2007/06/apache-rampart-12-released.html
>
> So I tried to do it and I'm getting the following exception:
>
> rg.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:94)
> at
> org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
> at
> client.Medici_LinkSOAP12PortStub.validateSystem(Medici_LinkSOAP12PortStub.java:747)Validating system ch4_001mu...
>
> at
> client.ClientUtilities.validateSystemTest(ClientUtilities.java:73)
> at client.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: Configureation error
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:151)
> at
> org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:88)
> ... 9 more
> Caused by: java.lang.ClassCastException:
> org.apache.rampart.handler.config.InflowConfiguration cannot be cast
> to org.apache.axis2.description.Parameter
> at
> org.apache.rampart.util.HandlerParameterDecoder.processParameters(HandlerParameterDecoder.java:63)
> at
> org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:149)
> ... 10 more
>
>
> I'm doing this:
>
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration());
>
> stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration());
>
>
> public static OutflowConfiguration getOutflowConfiguration(){
> OutflowConfiguration ofc = new OutflowConfiguration();
> ofc.setActionItems("Timestamp Signature Encrypt");
> ofc.setUser("client1");
> ofc.setPasswordCallbackClass("client.PWCBHandler");
> ofc.setSignaturePropFile("client1.properties");
>
> ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
>
> //ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
> ofc.setEncryptionUser("service");
> ofc.getProperty();
> return ofc;
> }
>
> public static InflowConfiguration getInflowConfiguration(){
> InflowConfiguration ifc = new InflowConfiguration();
> ifc.setActionItems("Timestamp Signature Encrypt");
> ifc.setPasswordCallbackClass("client.PWCBHandler");
> ifc.setSignaturePropFile("client1.properties");
> ifc.getProperty();
> return ifc;
> }
>
>
> Can anybody tell me what's the problem??? or tell me another way to
> configure the client to encrypt certain messages???
>
> Thanks a lot,
>
> Jorge Fernández
>
>
>
>
>
> ______________________________________________________________________
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
---------------------------------
¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.