Re: http headers and handlers

2003-11-27 Thread Benjamin Flohr
Hi, we solved our problem as the following. So thanks for your help Aaron. We created our own handler which is derived from the org.apache.axis.transport.http.HttpSender. In this handler we implemented the following: We overwrote the method invoke and called the handleRequest-Method. We registere

Re: http headers and handlers

2003-11-26 Thread Aaron Hamid
Did you configureNonBrokenHTTPSender before calling createCall? Make sure you call createCall after the configuring the HTTPSender because it overwrites the service config. I don't know why the registration wouldn't work afterwards in that case. Maybe Axis developers can chime in here? You

Re: http headers and handlers

2003-11-26 Thread Benjamin Flohr
Tried that but unfortunately it didn't do it for us... Our problem seems to be that the handler registration, which we do in the generated stub (call.setClientHandlers( handler, handler );) destroys any reference to previously registered typemappings in the call. Even if we reregister them they don

Re: http headers and handlers

2003-11-26 Thread Aaron Hamid
Try this, I edited it in this message to remove some inapplicable things, so your mileage may vary. Just call: myservice = HTTPTransportHelper.configureNonBrokenHTTPTransport(myservice); Make SURE to edit HANDLER_CLASS field to refer to YOUR HTTPSender class. There are technically two ways to

Re: http headers and handlers

2003-11-26 Thread Benjamin Flohr
Hi Aaron, I have implemented a modified HttpSender and I think my problem is to register this one dynamically. If you could send me the example code, that would be great- thanks, benjamin > By the way, I forgot to mention, if you are sending some "official" > HTTP headers, Axis will forcibly str

Re: http headers and handlers

2003-11-26 Thread Aaron Hamid
By the way, I forgot to mention, if you are sending some "official" HTTP headers, Axis will forcibly strip them. The only solution for now is to either modify the distributed HTTPSender or create your own modified HTTPSender and register it dynamically (again, I can provide code illustrating t

Re: http headers and handlers

2003-11-26 Thread Aaron Hamid
Implement a javax.xml.rpc.handler.GenericHandler and register it on your client (if sending headers) or server (if receiving headers). On the client side you need to dynamically register your handler through the handlerregistry of your service. On the server side it is a matter of editing the

http headers and handlers

2003-11-26 Thread Benjamin Flohr
Hi*, we need to access the http headers and set them using information taken from the fully formed SOAP envelope before it is posted. We managed to do this by modifying the HttpSender and assigning it to the call as its handler. Unfortunately we lose the typemapping for the serializer/deserializer