aspose file tools*
The moose likes Web Services and the fly likes AXIS2 / RAMPART - response header missing. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "AXIS2 / RAMPART - response header missing. " Watch "AXIS2 / RAMPART - response header missing. " New topic
Author

AXIS2 / RAMPART - response header missing.

Jack Rodriguez
Greenhorn

Joined: Apr 11, 2013
Posts: 8
I seem to be sending the request properly; however, I am getting a response without a header. It then is throwing me the error:



Does anyone have any thoughts? See request and response below:

Request:


Response:

Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
Hi,

I think that the key is

the server miss something (perhaps a jar or security handler) to understand the security header that the client send.


Best reggards,


Jack Rodriguez
Greenhorn

Joined: Apr 11, 2013
Posts: 8
Thanks for the response. I've thought of that... but I can't find an error that references what is missing and can't find anything missing. Does anyone else have a thought or suggested jar file to try?

Thanks,
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
Take a look to that reference for apache rampant configuration How to generate a non-secured response to a secured request?

Jack Rodriguez
Greenhorn

Joined: Apr 11, 2013
Posts: 8
Thanks,

I have looked at this before as well. I'm not sure what is meant by "2. Create a module [say, nosecuity] with handler having the following logic.
view plaincopy to clipboardprint?
01.public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
02. msgContext.setCurrentHandlerIndex(msgContext.getCurrentHandlerIndex() + 2);
03. return InvocationResponse.CONTINUE;
04.} "

Do you know what they're referring to when they say to create a module?

Mike
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
Hi,

The example code is already in the linked page add it to your project code
Following axis 2 reference axis 2 config. try the configuration in the linked page or something like this



Cheers,
Jack Rodriguez
Greenhorn

Joined: Apr 11, 2013
Posts: 8
I see the sample code. What do they want me to do with it though? Take the files and package them into a .mar file and put them into the axis2/modules/ folder?

And add the phaseOrder to the axis2.xml file?

Thanks,
Mike
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
I understand that you have to package the code in a mar file and deploy it in webapps/axis2/WEB-INF directory as explained Writing Your Own Axis2 Module
and then you must add the configuration snippets to the axis2.xml.


Cheers,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AXIS2 / RAMPART - response header missing.