Hello,

I have a WS client (i.e. a servlet) and a corresponding message handler. I 
simply want to retrieve IN the client a variable FROM the handler. Please let 
me know how to do that.

Here is a snippet from the handler:


  | public boolean handleResponse(MessageContext context) {
  |         try{
  |             SOAPMessageContext smc = (SOAPMessageContext) context;
  |             
  |             SOAPMessage msg = smc.getMessage();
  |             Iterator it = msg.getAttachments();
  |             
  |             while(it.hasNext()){
  |                 AttachmentPart ap = (AttachmentPart) it.next();
  |                 DataHandler dh = ap.getDataHandler();
  |                                
  |                 smc.setProperty("prop", dh);//HERE IS MY PROPERTY/VARIABLE
  |             }
  |         } catch(Exception e){
  |             e.printStackTrace();
  |         }
  |         
  |         return true;
  |     }
  | 

What I want to achieve specifically is retrieving in my servlet an attachment 
that is available in my handler.

Any help immensely welcome.

Julien.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945744#3945744

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945744


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to