This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41129
    
  45
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.
 
jQuery in Action, 2nd edition
 
subject: apache axis question
 
Similar Threads
Why cannot my own Handler work?
Object that contain ArrayList
Doubt on AXIS Handlers
SOAPMonitorApplet
de/serializers for ArrayLists