cancel
Showing results for 
Search instead for 
Did you mean: 

How to send Text HTTP Body in sender Http post to proxy .

Former Member
0 Kudos

Hi Exeperts,

I have a scenario http post to proxy scenario. where i need to send  Text HTTP Body  using http sender.receiver side  i am having proxy.

Please let us know what are the configuration i need to take at sender side and receiver side .

Regards

Ravinder.s

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi ,

Have this question sloved? I think I am in the same trouble now.

udo_martens
Active Contributor
0 Kudos

Hi,


what are the configuration i need to take at sender side and receiver side

What exactly is not clear? Where do you struggle?

/Udo

Former Member
0 Kudos

Hi Marten,

what are the parameters i need to select in sender Http .for above requirement achieve.

Former Member
0 Kudos

Hi Martin,

i saw your thread in sdn.

my client is using sender  HTTP post method .they send only text body with one field .like "qwertyyuii"

this value i need to capture  using receiver proxy.

I am stuck with the sender side if client send only text body how should capture ?

how to map with target side?

Please give me any examples .

Regards

Ravinder.s

udo_martens
Active Contributor
0 Kudos

Hi,

>>Hi Marten,

My name is Udo.

>>what are the parameters i need to select in sender Http

I guess you mean "sender http adapter". There is not much to configure. Take the standard values, take http post if you just want to send something.

>>for above requirement achieve.

If you just send a string, instead of  xml, you need a corresponding mapping to create proper xml. Otherwise your proxy receiver interface will crash. Message Mapping and XSL would require xml input, therefore you have to use Java (or ABAP if you have a double stack) to map the string into an xml field.

You generate the proxy depending on your receiver xml structure (receiver interface / message type), you put some ABAP code into your proxy class to do something with the transferred values.

/Udo

Former Member
0 Kudos

Hi Udo,

Thanks for your valuable reply.

i understand the process but still i am  having some doubts in sender HTTP.

1.If you have any xsl code or java code please share .

2. my client is  using dual stack abap/java.

3.please share the any udf for map the string to the target side?

4. i already  developed the proxy code.

Regards

Ravinder.s

Former Member
0 Kudos

Hi Udo,

One small correction in above message.

my client sending only text body  "ydydydydhdhdh" in html post.not string, if they pass the string(in xml with one string data ) in CDAT ,I can use java mapping .

but my scenario data is coming in the text values only.not XML not string.

Please help us its very important.

Thanks in advance.

udo_martens
Active Contributor
0 Kudos

Hi,


1.If you have any xsl code or java code please share .

You need Java (or ABAP), not parsing the input, creating xml.


2. my client is  using dual stack abap/java.

Your desicion to use Java or ABAP. From my point of view ABAP is easier, but it depends or your experience.


3.please share the any udf for map the string to the target side?

An UDF is part of a Message Mapping. Does not work here.


4. i already  developed the proxy code.

That s a good start

/Udo

Former Member
0 Kudos

Hi Udo ,

Thanks for your reply.

i am little bit confuse to handle for sender client  sending text value .in  http post .

how can i handle this to receive the target side .

Regards

Ravi

iaki_vila
Active Contributor
0 Kudos

Hi Ravinder,

Have you checked this William Li's blog to send a http post request?.

You can set the post method like shows the documentation Configuring the Java HTTP Adapter on the Sender Channel - Advanced Adapter Engine - SAP Library, and pay attention the URL needed to call it.

For server proxy configuration you can follow the receiver part in this wiki Step-by-step FTP to ABAP Proxy - Process Integration - SCN Wiki

Regards.

Former Member
0 Kudos

Thanks for replay,

i checked the William Li blog but my requirment is diffrent

my client will send only text body like  " urwiurwiuerywqprwqe"  in post .

with out xml body they are going to send the value of the filed in http post.

my question is what are the configuration in Http sender adapter and how should i capture it receiver proxy side.

Please replay with any examples

Thanks in advance .