You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ge...@nokia.com on 2002/04/10 13:48:53 UTC

HTTP servlet response

Hi there,

  I have a strange question, it smells like a hack
to me. I must implement somekind of load control mechanism
into my service, meaning that I must not accept any
kind of requests under some circumstances (overload). 
This means that I have to able to send back an HTTP 
error on the HTTP servlet response stream. Can I do that ? I know
that the response stream is inside the Message somewhere as
a property, but what happens if I send back an error
on that stream ? I saw in the source that the AxisServlet
tries to write the response stream anyway.
  Normally the messagcontext would expect me to build
a SOAP response, but in this case the incoming request
must not even reach my service, it should be returned before.
  Is there any way to solve this in a handler ?

  I'm still a newbie in Axis, please have mercy and don't
say that it was a stupid question. :) Thanx, Geza



  BTW, is there any description of WSDD somewhere ? I
still could not find any.



RE: HTTP servlet response

Posted by Brenda Coulson <bc...@cysive.com>.
It sounds as if you need to write your own provider. Not sure how it is done
in Axis, I know for SOAP 2.2, you had to extend the
org.apache.soap.providers.RPCJavaProvider or other provider, if you are not
performing RPC style calls. Then you can intercept the request before it
reaches the destination. Not suer about accessing the HTTP response. hope
this helps.

brenda

-----Original Message-----
From: Geza.Szocs@nokia.com [mailto:Geza.Szocs@nokia.com]
Sent: Wednesday, April 10, 2002 7:49 AM
To: axis-user@xml.apache.org
Subject: HTTP servlet response


Hi there,

  I have a strange question, it smells like a hack
to me. I must implement somekind of load control mechanism
into my service, meaning that I must not accept any
kind of requests under some circumstances (overload). 
This means that I have to able to send back an HTTP 
error on the HTTP servlet response stream. Can I do that ? I know
that the response stream is inside the Message somewhere as
a property, but what happens if I send back an error
on that stream ? I saw in the source that the AxisServlet
tries to write the response stream anyway.
  Normally the messagcontext would expect me to build
a SOAP response, but in this case the incoming request
must not even reach my service, it should be returned before.
  Is there any way to solve this in a handler ?

  I'm still a newbie in Axis, please have mercy and don't
say that it was a stupid question. :) Thanx, Geza



  BTW, is there any description of WSDD somewhere ? I
still could not find any.