-
1. Re: How to read SOAP attachment from action class in JBOSS ESB
tcunning May 31, 2012 10:40 PM (in response to kvarun_bans)What are you seeing in the Attachments?
-
2. Re: How to read SOAP attachment from action class in JBOSS ESB
kvarun_bans Jun 1, 2012 12:12 AM (in response to tcunning)Hi Tom,
Thanks for your response.
I am attaching a text in the attachment SOAP request. But when calling attachment methods on ESB message in action class, getting following output.
Attachment attachment = message.getAttachment();
System.out.println("SOAP Attachment::: "+attachment.getNames().length);
System.out.println("SOAP Attachment::: "+attachment.getNames());
System.out.println("SOAP Attachment::: "+attachment.toString());
+++++++++++++++++Output++++++++++++++++
09:34:10,022 INFO [STDOUT] SOAP Attachment::: 0
09:34:10,022 INFO [STDOUT] SOAP Attachment::: [Ljava.lang.String;@13ce24c
09:34:10,022 INFO [STDOUT] SOAP Attachment::: attachments: [ Named:{}, Unnamed:[] ]
Unable to retrieve the attachment. Please suggest.
~Varun