cancel
Showing results for 
Search instead for 
Did you mean: 

REST Sender Adapter Scenario ESR issue

sahithi_moparthi
Contributor
0 Kudos

Hi,

I am going to create a POC for REST to SOAP adapter.I have gone through the below link:

https://blogs.sap.com/2015/04/03/working-with-rest-adapter-a-rest-to-soap-scenario-in-sap-pipo/comme...

But I was confused in the ESR part.Do we need to create the Request and response mapping?

Pls suggest how to proceed with ESR Configuration?

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Sahithi,

As mentioned in the blog you need to get the WSDL from URL : http://www.webservicex.net/CurrencyConvertor.asmx?WSDL

In this URL you have 2 structure ConverstionRate and ConversionRateResponse , you do the request mapping from ConverstionRate_to_ConverstionRate and Response mapping from ConversionRateResponse_to_ConversionRateResponse.

Br,

Manoj

sahithi_moparthi
Contributor
0 Kudos

Hi Manoj,

Thanks for your inputs!!

When i am trying to test the scenario in SOAP UI I am getting the error as below:Could you please help in resolving this issue.

manoj_khavatkopp
Active Contributor
0 Kudos

Sahithi,

You need to add your User ID and Password in SOAP UI like below.

Br,

Manoj

sahithi_moparthi
Contributor
0 Kudos

Hi Manoj,

Thanks for your inputs.

When i executed the scenario in SOAP UI didn't receive any response in the response window.

When i checked the Message monitoring the messages are terminated with errors.Please find the error screenshot below and suggest further.

manoj_khavatkopp
Active Contributor
0 Kudos

Sahithi,

Your PI system is not allowed to connect to that web service as it is public .

So there are few restriction imposed at your client firewall/proxy setting to allow your PI system to connect to that web-service.

Br,

Manoj

sahithi_moparthi
Contributor
0 Kudos

Hi Manoj,

Thanks for your inputs!!

I have one more query,Can REST adapter handles Zipped files.

manoj_khavatkopp
Active Contributor
0 Kudos

If you mean to say sending zipped files via REST as attachment then I doubt it .As REST adapter was initially not capable of handling attachments , not sure if any recent SP has fixed this.

sahithi_moparthi
Contributor
0 Kudos

Thanks Manoj.

If REST doesn't supports attachmnets,then In what way we can handle it.

Currently Our Client is sending 1GB data,then through REST we have handled it.but we are facing performance issues in handle that huge data.

Now they were saying they are ready to send the data in Compressed format.So if they send the data in compressed then how can we handle it ?

Please throw some light ? Please advise

manoj_khavatkopp
Active Contributor
0 Kudos

Sahithi ,

They can compress it a send as binary format in one of the field in the payload then later you need to convert back that binary data into actual file via java code.

Br,

Manoj

manoj_khavatkopp
Active Contributor
0 Kudos

You can ask the third party to compress the file and send it as binary/base64 format in one of the field later you may convert back it into the required file using java.

sahithi_moparthi
Contributor
0 Kudos

Hi ,

Thank you.

Please correct if my understanding was wrong.

1. Client has to send the 1GB file as an atatchment with binary format .

2. Using REST sender adapter we will convert that binary format to text/XML using Java Mapping.

3. Finally the text/XML file will send to Target ECC system.

Answers (1)

Answers (1)

sahithi_moparthi
Contributor
0 Kudos

Hi ,

Thank you.

Please correct if my understanding was wrong.

1. Client has to send the 1GB file as an atatchment with binary format .

2. Using REST sender adapter we will convert that binary format to text/XML using Java Mapping.

3. Finally the text/XML file will send to Target ECC system.

manoj_khavatkopp
Active Contributor

Sahithi,

1.Client has to convert the file to binary and then send it as a part of payload in one of the field , note the client has to send it as part of payload not as attachment.

2.PI will read that particular field which has binary data convert back it zip file using java and then send it to target.

Alternatively as in your case the receiver is ECC system , instead of converting the binary to ZIP file in PI try to pass the binary data as it is to ECC and then ECC can convert the binary data into required file. Doing this way will reduce the message size in PI .

Br,

Manoj

sahithi_moparthi
Contributor
0 Kudos

Thanks for your valuable inputs!!

sahithi_moparthi
Contributor
0 Kudos

Hi Manoj,

One last question,To what extent the file size will get reduced if we use binary format ?

manoj_khavatkopp
Active Contributor
0 Kudos

Sory , i am not so sure on the size.