on 02-12-2016 10:45 AM
Hi Experts,
I am working Rest sender polling adapter,
the requirement is depending on dynamic URL i suppose to poll the data and send to ECC server.
URL : https://XXXXXXXXXXX.com/scripts/XXXXXXXmx.dll?cid=4477&pw=44sap77&compat_level=1&packet_id=0
here packet_id should be always increased in each transaction by 1 and initially 0.
Note: i have read this document ,though seems that explains more on incremental for timestamp.
can any please help me how to achieve this requirement , thanks in advance
-Maheswara
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks Praveen for reply,
actually this is poll right, i am getting confuse here
can you please explain some more about why we are thinking about response?
also NextPacketID and PreviousPackID - are they need to be in request structure while we do polling?
flow is: REST(poll depending on PacketID) to SAP(proxy)
Hi Mahesh,
I mean if you call the rest service with GET request then the service will give you the response(REST adapter polling is HTTP GET Operation) and that response you are sending to ECC. So these two values must be there in REST API response(NextPacketID is stored in incrementalToken variable and will be used in the next call) in order to use them in incremental Requests, check below sap help for this.
Setting up Incremental Requests
For REST APIs that allow incremental requests, the adapter allows to store the timestamp of the latest call or a custom value (specified by an XPath expression or a JSON element). The value will be stored between the calls and can be referenced in the REST URL as a placeholder with name incrementalToken.
Finally the URL will be https://XXXXXXXXXXX.com/scripts/XXXXXXXmx.dll?cid=4477&pw=44sap77&compat_level=1&packet_id={incrementalToken}
Regards,
Praveen.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.