File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes apache axis question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "apache axis question " Watch "apache axis question " New topic

apache axis question

tomas hef

Joined: Mar 20, 2006
Posts: 2

I have 2 questions:

1. how can i add some custom HTTP headers to web service request ? there is a method Call.addHeader to set SOAP header, but I didnt find anything similar for HTTP headers. is there a way to do it ?

2. is there a possibility to add axis handler configuration into wsdd file programatically ? I dont like writing this lines (below) each time i build web service deployment descriptor

<requestFlow name="checks">
<handler type="java rg.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler type="java rg.apache.axis.handlers.SimpleAuthorizationHandler"/>

i mean something like ant task, or some secret wsdl2java parameter

can anybody help me ? thanks in advance..

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Welcome to JavaRanch.

Adding HTTP hedaers to SOAP requests is decribed in the WS HowTo wiki page.
tomas hef

Joined: Mar 20, 2006
Posts: 2
Thank you !

I know that i can get mimeHeaders from Call object, like:

call.getRequestMessage.getMimeHeaders(); (or something similar)

but call.invoke method removes all mime headers. So, adding headers before calling call.invoke method has no effect.
I agree. Here's the link:
subject: apache axis question
It's not a secret anymore!