File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 39549
    
  27
Welcome to JavaRanch.

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


Ping & DNS - updated with new look and Ping home screen widget
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: apache axis question
 
Similar Threads
SOAPMonitorApplet
Object that contain ArrayList
Why cannot my own Handler work?
Doubt on AXIS Handlers
de/serializers for ArrayLists