on 02-03-2010 2:56 PM
Hello,
I have a synchronous http scenario. I use a SOAP receiver adapter with "Do not use SOAP envelope" marked.
However when checking monitoring for the http response I just have "MainAttachment (text/html)" displayed in Payload.
So obviously there is just an attachment sent back.
What would be the easiest way to retrieve this attachment and set it as payload?
I tried to use the adapter module PayloadSwapBean, keyField = "content/type", keyValue = "text/html" but this has not solved my problem yet. Maybe I used it the wrong way. How would I use this module just for the response message?
Could you please help me with this?
Thank you!
Edited by: Florian Guppenberger on Feb 3, 2010 4:04 PM
> I tried to use the adapter module PayloadSwapBean, keyField = "content/type", keyValue = "text/html" but this has not solved my problem yet. Maybe I used it the wrong way. How would I use this module just for the response message?
key field should be: content-type
But I have not understood: Do you have one payload or several? If you have one payload, there is nothing to do here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to use the adapter module PayloadSwapBean, keyField = "content/type", keyValue = "text/html" but this has not
solved my problem yet. Maybe I used it the wrong way. How would I use this module just for the response message?
PayloadSwapBean has swap.keyName and swap.keyValue and does not have any keyField parameter....refer this similar discussion: ... the thread owner has mentioned a blog by Michal on the same...do refer it.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course, your are right. It was a typo in my message, in module configuration I have set the correct way.
Still there is the problem for the response message, if I check monitoring there only "MainAttachment ( text/html )" displayed as payload. Even if I use a Java Mapping to retrieve the attachment and write it to the payload the only result is that the Attachment is empty afterwards, but the payload is not there.
Should it not be the case that have two entries in message monitoring, one for the main payload (even if it is empty) and one for an attachment?
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.