This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

apache axis question

tomas hef
Greenhorn

Joined: Mar 20, 2006
Posts: 2
hello,

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"/>
</requestFlow>


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


can anybody help me ? thanks in advance..

Tomas
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
Welcome to JavaRanch.

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


Ping & DNS - my free Android networking tools app
tomas hef
Greenhorn

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.
 
GeeCON Prague 2014
 
subject: apache axis question