axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nandana Mihindukulasooriya" <>
Subject Re: Exceptions when using a Rampart client generated from stub classes.
Date Sat, 28 Jun 2008 04:31:02 GMT
I think the issue is with the code generation. In Axis2 1.4, policies
applied  like  this [1], will be attached to port type not to the binding.
So if you compare the WSDL generated by Axis2 1.3 [2]  with the WSDL
generated by Axis2 1.4 , there are different. It seems that code generator
is not taking policies attached to the port type in to account. If you go
through the source code of the Stub, popolateAxisService() method, you will
be able to see whether policies actually are attached to the stub or not.


[1] -
[2] -

On Thu, Jun 26, 2008 at 2:24 PM, Sanjay Vivek <>

> Hi everyone,
> I've installed and configured Rampart 1.4 to work with the tutorial at
> However, I'm having trouble getting the
> SOAP response from the service when generating a client using the stub
> classes. The SOAP request headers send by the client doesn't contain the
> WSSE security headers and I get a "Exception in thread "main"
> org.apache.axis2.AxisFault: Missing wsse:Security header in request".
> However, everything works fine when I generate a client using AXIOM. Is
> there a reason why the WSSE headers are being stripped out when using a
> client generated from the stub classes? Any help would be appreciated.
> Cheers.
> Regards
> --------------
> Sanjay Vivek
> Web Analyst
> Middleware Team
> Newcastle University
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message