axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Dillon (ext. 944)" <Brian.Dil...@fineos.com>
Subject RE: Handlers and Marshalling
Date Thu, 19 Feb 2004 15:40:41 GMT
But would the marshaller not just get called again after the handler has
finished as per normal operation, which would still leave me with the same
error ?

Thanks,

Brian

-----Original Message-----
From: chris [mailto:chris.haddad@cobia.net]
Sent: 19 February 2004 15:38
To: axis-user@ws.apache.org
Subject: RE: Handlers and Marshalling


Yes, you can call the serialization framework from a handler.

just get the MessageContext, create a dummy outputstream, and execute
the Message.writeTo() command.

/Chris

-----Original Message-----
From: Brian Dillon (ext. 944) [mailto:Brian.Dillon@fineos.com] 
Sent: Thursday, February 19, 2004 10:08 AM
To: 'axis-user@ws.apache.org'
Subject: RE: Handlers and Marshalling

Chris, 

Thanks,

At what point should I try to force the marshalling ? Can this be done
in
the handler ?

The reason I need to call the handler after the marshalling is that
server
context map which is used for the duration of a request needs to be
unmapped, however if I unmap before the marshalling their could be
problems
(we use custom serialisers which perform work other than a straight java
to
XML map).

Thanks,

Brian.

-----Original Message-----
From: chris [mailto:chris.haddad@cobia.net]
Sent: 18 February 2004 22:08
To: axis-user@ws.apache.org
Subject: RE: Handlers and Marshalling


Brian - 

Does forcing the marshalling work for you? 

HttpServletResponse res;
org.apache.axis.Message responseMsg = msgContext.getResponseMessage();
responseMsg.writeTo(res.getOutputStream());

What exactly are you trying to perform?  You can always modify the
SOAPParts on the fly to build another message.......

/Chris

-----Original Message-----
From: Brian Dillon (ext. 944) [mailto:Brian.Dillon@fineos.com] 
Sent: Wednesday, February 18, 2004 5:46 AM
To: 'axis-user@ws.apache.org'
Subject: Handlers and Marshalling

Hi,

I had aked this question before but received no answer, So thought I
would
try again.

Is there some way of having a ResponseFlow handler called after all the
marshalling has been completed ?

Thanks,

Brian

-----Original Message-----
From: Brian Dillon (ext. 944) [mailto:Brian.Dillon@fineos.com]
Sent: 13 February 2004 11:16
To: 'axis-user@ws.apache.org'
Subject: Handlers and Marshalling


Hi,

I am trying to get a SOAP Handler to be invoked after the marshalling
has
taken place. I have tried using the transport description in the
server-config.wsdd like;

 <transport name="http">
  <requestFlow>
   <handler type="URLMapper"/>
   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
  </requestFlow>
  <responseFlow>
   <handler type="java:com.fineos.ta.services.soap.ServantHelper">
    <parameter name="WhichHandler" value="Post"/>
   </handler>
  </responseFlow>
 </transport>


This handler must be invoked after the marshalling as it unmaps contexts
etc from the server (however the information in these maps are required
during the marshalling).

Is there a way to set the ordering of the handler ?

Any help would be appreciated,

Thanks,

Brian


**********************************************************************
The information contained in this e-mail is confidential, may be
privileged
and is intended only for the user of the recipient named above.  If you
are
not the intended recipient or a representative of the intended
recipient,
you have received this e-mail in error and must not copy, use or
disclose
the contents of this e-mail to anybody else.  If you have received this
e-mail in error, please notify the sender immediately by return e-mail
and
permanently delete the copy you received.  This e-mail has been swept
for
computer viruses.  However, you should carry out your own virus checks. 
Registered in Ireland, No. 205721.  http://www.FINEOS.com
**********************************************************************

Mime
View raw message