Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache axis question

 
tomas hef
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Adding HTTP hedaers to SOAP requests is decribed in the WS HowTo wiki page.
 
tomas hef
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic