Re: Possible to configure a module using services.xml for a client stub

2006-05-22 Thread Ruchith Fernando

Hi Kent,



Thanks for the reply. So, it means it's got to be a global thing? For
example, one can't encrypt the out message of an operation while just
sign the out message of another operation?



You can actually do this using the following :

org.apache.axis2.security.handler.config.InflowConfiguration
org.apache.axis2.security.handler.config.OutflowConfiguration

I have explained a bit about those at in at the end of my response in
this [1] mail.
You can use these configurations separately for each operation by
setting the parameter into options of the stub or service/operation
client just before invoking that operation.

Thanks,
Ruchith

[1] http://marc.theaimsgroup.com/?l=axis-devm=114732539613452w=2

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



Re: Possible to configure a module using services.xml for a client stub

2006-05-13 Thread Ali Sadik Kumlali
Hi Kent,

Service client which invokes stub of the service, needs to configure
axis2.xml instead of services.xml. Although there is no stub use, you
may see an example of using axis2.xml in ...\axis2\samples\security\
sample. You'll see a client_repo folder that has conf\axis2.xml inside.

Regards,

Ali Sadik Kumlali

--- Kent Tong [EMAIL PROTECTED] wrote:

 Hi,
 
 I've been looking up and down to find a way to engage and configure a
 module for a client stub. Yes, I can do it in Java code, but I don't
 know how to do that using a services.xml. I know how to setup a
 repository
 on the client side. But the generated stub client creates its
 AxisService
 and AxisOperation objects in code and won't use those in the
 services.xml 
 file.
 
 Any idea? Thanks!
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Possible to configure a module using services.xml for a client stub

2006-05-13 Thread Kent Tong
Ali Sadik Kumlali as_kumlali at yahoo.com writes:

 Service client which invokes stub of the service, needs to configure
 axis2.xml instead of services.xml. Although there is no stub use, you
 may see an example of using axis2.xml in ...\axis2\samples\security\
 sample. You'll see a client_repo folder that has conf\axis2.xml inside.

Hi Ali,

Thanks for the reply. So, it means it's got to be a global thing? For
example, one can't encrypt the out message of an operation while just
sign the out message of another operation?





Re: Possible to configure a module using services.xml for a client stub

2006-05-13 Thread Ali Sadik Kumlali
Hi Kent,

You seem correct to me. Also, if you look inside the generated test
client jar (serviceName-test-client.jar), you won't see services.xml
file.

Anyway, I forgot to mention that what I said was *my own* experience
not how Axis2 really did :) And there should(!) be a way to use
separate configurations for different stubs.

Regards,

Ali Sadik Kumlali

--- Kent Tong [EMAIL PROTECTED] wrote:

 Ali Sadik Kumlali as_kumlali at yahoo.com writes:
 
  Service client which invokes stub of the service, needs to
 configure
  axis2.xml instead of services.xml. Although there is no stub use,
 you
  may see an example of using axis2.xml in
 ...\axis2\samples\security\
  sample. You'll see a client_repo folder that has conf\axis2.xml
 inside.
 
 Hi Ali,
 
 Thanks for the reply. So, it means it's got to be a global thing? For
 example, one can't encrypt the out message of an operation while just
 sign the out message of another operation?
 
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com