Hello,
I have a WS client (i.e. a servlet) and a corresponding message handler. I
simply want to retrieve IN the WS 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=3947056#3947056
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947056
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user