cancel
Showing results for 
Search instead for 
Did you mean: 

Payload as Attachment

Former Member
0 Kudos

Hi

Please clarify whether payload can be sent as an attachment via soap, if yes, what is the significance and steps associated for mapping.

Regards,

B.Anandh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
bhavesh_kantilal
Active Contributor
0 Kudos

Yes SOAP adapter does support attachments.

The mapping can be done on either the attachment or the main payload. if you want the mapping to be done on the attachment you need to use the PayloadswapBean to swap the payload and the attachment and then the mapping will happen on the attachment. ( which after the payload swap bean would have become the main payload)

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Could you please explain me more clear..I not aware of this..I want to know more how a soap attachment will be done?

Awaiting for your explanation.

Thanks and Regards,

Chandu.

Former Member
0 Kudos

Bhavesh,

As per my requirement, i need to send request of 4 fields as payload attachment through SOAP.

Can i use payload swap bean for this scenario. Do you have an example for this.

Moreover, can it be used both for request as well as response.

Regards,

B.Anandh

bhavesh_kantilal
Active Contributor
0 Kudos

Both sender and receive SOAP adapters support attachments. In your adapters ( sender and receieve ) select option "Keep Attachments".

Also, for the payloadswapbean check this note : 794943

Regards

Bhavesh

stefan_grube
Active Contributor
0 Kudos

What should be the main SOAP message in this case?

The attachments have to be provided beore, that means you need a sender channel which is able to create attachments. That can be proxy or file and soap adapter.

Another option is: Create the attachment with an self-written adapter module.

Regards

Stefan