cancel
Showing results for 
Search instead for 
Did you mean: 

Sender REST adapter configuration

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

maheswarareddykonda
Active Contributor
0 Kudos

you can check this out

Former Member
0 Kudos

polling is supported only by 12 sp right? We are on SP 09

Is it possible?

Also my requirement is to select data four different webpages. when end user click on submit button after filling the fields the input data should hit po

maheswarareddykonda
Active Contributor
0 Kudos

polling is supported only by 12 sp right? We are on SP 09

Is it possible?

yes, its avilable from only SP12.

Also my requirement is to select data four different webpages. when end user click on submit button after filling the fields the input data should hit po

i guess its not possible use all 4 url's in same channel.

Former Member
0 Kudos

Hi Maheshwara

in sender REST adapter, do we have to give any file to the webservice like we give wsdl to the client when we use soap sender?

how message processing happens in sender rest? Rest adapter polls the webservice or the webservice posts to the rest adapter url

maheswarareddykonda
Active Contributor
0 Kudos
in sender REST adapter, do we have to give any file to the webservice like we give wsdl to the client when we use soap sender?

no need any action from your side, since quite different than SAOP

Soap ---here webservices need to trigger to PI

RESt---here nothing is triggering, just polling the data same as file or JMS.

so no worry about that..

how message processing happens in sender rest? Rest adapter polls the webservice or the webservice posts to the rest adapter url

here you suppose to check with REST server team , what exact URL's and from where data need to fetch.

and i just want to remind you , incase that server need authenticate with certificate you should use certificates.

also initially you please dont make exact interface with exact structure, try to avoid mapping things and make an dummy FLOW

Former Member
0 Kudos

REST is polling so we have to give the sender websrvice url as endpoint, right?

Channel Selection --> Specify Endpoint

One channel can poll only from one url?

maheswarareddykonda
Active Contributor
0 Kudos
REST is polling so we have to give the sender websrvice url as endpoint, right?

third-party(rest server) team need to provide to you , and then you can use that in channel to poll data.

in case you get in json format to pi, you can enable conversion to xml in channel itself

Former Member
0 Kudos

hi Maheshwara

one last qn, they have given the url

http://www.******.com/enquiry/totalsales.aspx

how do I know whether I can use REST or not? This is the webpage they give. I want to know if I can use REST for this websevice. Sould I ask the IT team whether they support rest protocol? Or just try with development and find out

Answers (3)

Answers (3)

justin_santhanam
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

justin_santhanam
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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

former_member186851
Active Contributor
0 Kudos
Former Member
0 Kudos

is it possible to connect four differernt webpages using rest sender adapter?

how can i check whether those webpages suport rest

justin_santhanam
Active Contributor
0 Kudos

Midhun,

What's the end-to-end scenario here? Can you explain please?

Justin.

Former Member
0 Kudos

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