cancel
Showing results for 
Search instead for 
Did you mean: 

Changing TServerLocation without Dynamic Configuration

Former Member
0 Kudos

Hi experts,

I got a Http sender adapter which I use to send binary data (pdf) from my R/3 system to PI. PI should forward it to a http-Service via SOAP Adapter (to enable https). I am not using Integration Repository and just forward the PDF to the PHP script on the receiver side which works pretty good in different scenarios.

Now, I have to send some URL parameter on the receiver side which should be set in the R/3 system.

For better explanation:
In my R/3 system, I call the HTTP Sender Adapter with additional URL parameters "file" and "destination"

http://<host>:<port>/sap/xi/adapter_plain?party=<part>&service=<service>&interface=<interface>&namespace=<namespace>&file=foo&destination=bar

This additional Parameters should also be used when calling the SOAP receiver. I'm using this as Target URL

https://<receiver>/scripts/upload.php

but in the end, it should be called like this

https://<receiver>/scripts/upload.php?file=foo&destination=bar

Because it's unstructured data and I'm not using Integration Repository (no mapping, no interfaces, etc) I can't use Dynamic Configuration.

Any ideas how I can accomplish this?

Thanks in advance!

Hari

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181985
Active Contributor
0 Kudos

Hi Hari,

Solution1:-

You can develop a custom java module which can read HTTP url params from sender using dynamic configuration API code in module and then set TServerLocation as required for receiver SOAP adpatet channel.

Solution2:-

You can create dummy interfaces in ESR and then create a java mapping. The java mapping should be capable of passing inputstream (PDF bytes) to outputstream without any modification and then you can dynamic configuration code to read incoming http url params and then set SOAP url accordingly

One question, which HTTP adapter are you using on sender? I mean Java based or abap based. The reason I am asking you, you mentioned abap HTTP url in your explanation, but I am wondering how abap HTTP adapter can support binary data.

Best Regards,

Praveen Gujjeti