cancel
Showing results for 
Search instead for 
Did you mean: 

Critical Issue:-- Convert SOAP Attachment into SOAP Body

Former Member
0 Kudos

hi,

My requirment is

FTP----> SOAP synchronous.

In this one at SOAP receiver side SOAP request is an attachment file and response also I m getting as an attachment.

My problem is that I need to convert this SOAP response (attachment) in SOAP body so that I can map it with FTP datatype.

I used PayLoadSwapBean module but i m unable to convert this attachment into SOAP Body.

I just followed this blog

May be i m not using this module in a proper mannner.

Can anybody explan it step by step.

Is there anyother solution for my problem..

<It is against the rules of Engagement to post a question with the catch of awarding points. Please refrain from the same.>

Thanks

Jaideep Jain

Edited by: Bhavesh Kantilal on Dec 3, 2008 10:26 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi Jaideep,

I am facing the exact same issue. I have a synch ABAP Proxy --PI--WebService scenario.

When I trigger the request from RWB, I get the expected response back as an Attachmnet from WebService, there is no main body for payload, we just get one single response back as an attachmnet.

When PROXY triggers the request, it gives an error "Response Message contains an error. HTTP 500 Internal Server Error" . I am assuming the PROXY is expecting the response as normal payload and not an attachmnet.

Can you please outline, how you solved the issue. We want to convert this attachmnet payload into normal payload( main documnet).  We are using PI 7.1 EHP 1, support package 06.

Thanks in Advance, please provide inputs for this issue.

Former Member
0 Kudos

JB,

Did you resolve your issue ? If yes, please share solution..

Thanks..

Former Member
0 Kudos

Use Transform Module before SOAP module and make sure the Modules are spelled correctly. Also, if possible be on at least support package 07, if not then you might have to implement 1 NOTE from marketplace.

cheers

Former Member
0 Kudos

one follow up question, How Transform Module before SOAP module helps for receiver ? We are on SP 08 PI 7.1. Did you use payload swap bean ?

former_member190389
Active Contributor
0 Kudos

Hi,

You said your scenario is FTP to SOAP

Then how are you getting the file as an attachment???

Is the scenario?

FTP -->convert to attachment --> SOAPrequest

FTP <---- convert to payload <-- SOAP Response

Edited by: Progirl Progirl on Dec 5, 2008 1:56 PM

Former Member
0 Kudos

ya ,

at SOAP request i m selecting as keep attchment.

SOAP response is a file which i am getting asresponse but i need to convert into payload.

SO i can again map it with FTP. at receiver..

Thanks

former_member190389
Active Contributor
0 Kudos

try using key-name as Content-Description

and Key value as the text you see in the sxmb_moni Payloads section as in the last picture of the blog i.e. MailAttachment-1

Former Member
0 Kudos

hi Progirl

Thanx for urs response. But i have tried that thing but i am getting the same response.

former_member190389
Active Contributor
0 Kudos

Check that you have given proper module name in module chain .

Could you send the detail error?

Former Member
0 Kudos

hi,

the Error I m getting is:--

com.sap.aii.af.ra.ms.api.DeliveryException: Object not found in lookup of payloadSwapBean

In Payload I am getting only one attcment named MainAttchment as SOAP response.

'I need to convert it into file document(as Main Document) So that I can MaP it.

There is no other main document or payload.

Thanks

Jai

former_member190389
Active Contributor
0 Kudos

The module name is

localejbs/AF_Modules/PayloadSwapBean

and not payloadSwapBean

Former Member
0 Kudos

hi Progirl,

Thanx for urs response. Even i m using same Module name with P.

As i told i m getting only one document under payload folder in SXMB_Moni.

The doc. name is MainAttachment. I need to extract it from attachment so that i can use it in mapping.

For that i am using swap.keyName and swap.keyValue once only.

Should i use it twice as shown in blog for e-mail adapter.

Thanks

Jaideep

former_member190389
Active Contributor
0 Kudos

Hi,

have you tried using Content-Dispositon as well along with Content-Description?

Former Member
0 Kudos

No, I have put only payload-Description..

Can you explain all 4 parameter with name and value.

what to put for keyvalue and keyname....

Thanks

Jaideep

stefan_grube
Active Contributor
0 Kudos

For the parameters you could use:

swap.keyName -> payload-name

swap.keyValue -> see the attachment name in SXMB_MONI

Former Member
0 Kudos

hi Stefan,

Thanx for urs helpul response.

swap.keyName -> payload-name

what will be the value of payload-name. or should i put it as it is. and can u plzzz tell the sequence of the modules used in SOAP receiver channel for this.

One more problem is that the attachment i will be getting will be in zipped form.

Will XI allow it to enter and is it possible to proceess it in XI.

If possible than plzz give the solution.

Thanks

Jaideep Jain

stefan_grube
Active Contributor
0 Kudos

The key name is "payload-name"

Put the module after the soap module, as you want to work on the response.

If you want to unzip the file, you can use the PayloadZipBean.

See online help for further information.

http://help.sap.com/saphelp_nw04/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm

Former Member
0 Kudos

hi stefan,

I m getting this error after using PayloadSwapBean.

com.sap.aii.af.ra.ms.api.DeliveryException: Object not found in lookup of payloadSwapBean

I m mentioning here the value of parameter name and value for this module:--

parameter name parameter value

swap.keyName payload-name

swap.keyValue MainAttachment

Can u suggest where i went wrong.....

Thanks

Jaideep

Edited by: Jaideep Baid on Dec 5, 2008 9:27 AM