Phil Davies wrote:
> The client architecture was mainly decided by Eclipse's Web Services
> Client wizard.

I guess this generates stubs with Axis - not Axis2, please verify the
versions of the referenced libraries.

> It put the stub into an existing web project, and axis2 is on the
> classpath. 
> The project's WEB-INF/conf dir has an axis2.xml file, and so does
> AXIS2_HOME/conf. I have added the "module" and "parameter" elements to
> both of these now. 
> 
> I then wrote a little test program which invokes one of the operations
> and when I do this I get an axis fault returned, after the round trip to
> the server. Wireshark also shows me an outgoing request with no security
> header. I have also used the Web Services Explorer in Eclipse with the
> same result.
> 
> Here's something I find a little confusing - after running the wizard to
> generate the client, the Eclipse local Tomcat on that machine has the
> WebServicesTestClient (described above) deployed. If I then point a
> browser at this, I can log in to the axis admin pages, and I can see
> that rampart is globally engaged - but how can I know that *this* axis
> is the same axis the client stub sees when it's called from my test
> program?

Think in this way - there is one Axis2.xml used by the service, that is
what you find by default inside - [AXIS2_HOME]/conf.

Also - when you are using a client, you can specify an Axis2.xml for the
client as well - in the way I mentioned previously.

If you can go through sample available with [1] - it explains all what
you need to know from both the service and the client side.

Thanks & regards.
- Prabath

[1]:http://blog.facilelogin.com/2008/07/web-services-security-encryption-with.html

> 
> Thanks,
> Phil
> 
> ------------
> Hi Phil;
> 
>>From your previous comments I guess, you have not engaged rampart module
> at the client side - only at the service end.
> 
> Make sure at the client side you load the axis2.xml with Rampart being
> engaged.
> 
> ConfigurationContext ctx =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem("re
> po","repo/conf/axis2.xml"
> 
> Also, please make sure that you have the rampart module inside
> repo/modules.
> 
> Thanks & regards.
> - Prabath
> 
> 
> ---------------------------------------------------------------------
> 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