Skip to Content
avatar image
Former Member

Sender REST adapter configuration

In sender rest adapter configuration how we know we need to use json or xml format? This is my first scenario.

Is the adapter polling the webpage at specific intervals and picking data? I dont see wsdl used here.

I have three different webpages in sender side and each have differen urls so do I have to use three sende channels or i can use different urls in same rest sender com chan.

I have three webpage wirh almost same data. when customer clicks on submit button i want the data to be sent to pi. so should i use GET or POST http operation. the endpoint which should be used? pis wsdl endpoint?

the help site is very confusing and i have only used wsdl so far in webservices side

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Nov 26, 2015 at 08:38 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Nov 16, 2015 at 05:26 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Justin Santhanam

      there are four different webpages. they all have customer details. when the end user clicks on the submit button it shoud reach ecc customer table through sap po.

      one option is i can create a wsdl, give it to them and they use at the sender side. soap to proxy scenario

      we are trying to do with rest adapter sender side. po sp 09 is the version

      shuld i ask the webpage guys whethr it supports rest?

      and where do we add the four differen webpages in sender rest adapter

  • Nov 26, 2015 at 07:28 AM

    Midhun,

    So I assume all the data from all the 4 web pages will be of same structure, Correct? You don't have to use REST adapter. Use HTTP Sender adapter. Ask them to POST the message (using the URL provided in the below SAP help)

    Configuring the Java HTTP Adapter on the Sender Channel - Advanced Adapter Engine - SAP Library

    Thank you,

    Justin,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Justin.

      No all the webpages don't have the same exact data.

      some has four fields some has five and some has six fields, most of the fields are common.

      Also the end user fills the webservice and click on the submit button, it should reach PO. I can use SOAP here.

      However the client is asking about REST

  • Nov 26, 2015 at 12:52 PM

    Midhun,

    I completely understand your scenario. You can definitely use HTTP_AAE adapter (or SOAP adapter). Remember one thing  REST services means doesn't necessarily you have to use REST adapter 😊 .. It's basically light weight call using URI..

    Now regarding your query on polling. This will never work in your scenario. Consider this example, you have to call exchange rate from some third party every 10 minutes or so to get the exchange rate for a given pair of currencies. This you can definitely achieve using the polling mechanism. Here you are polling for some information from the REST API. But in your scenario, the users are submitting some information and on the action of submit it should hit PO/PI. Do you think polling will work in this scenario. It's the other way around. You are not polling, they are pushing the information.

    Let me know if it's still not clear!

    Thank you,

    Justin.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Justin

      I got your point.

      Which is best HTTP_AAE or SOAP?

      This is a websevice. I thought HTTP_AAE is used only for webpages that doesn't support wsdl.

      In the webpages, I have data like this

      1) fields a, b, c,d

      second webservice a,b,c, e

      throd ws a,b, c,d , g.h

      fourth ws a,b,c,d, f, i

      so in sender side i should create one dt with all the fields a, b, c, d, e, f,g, h and give it to all the different webpages. they would be using the same structure to post messages, right