cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming Gateway services

gubp
Participant
0 Kudos

Hi guys!

1) I created a DataModel in my Gateway(trial) based on my ERP FM/Table. (my ABAP connection is OK).

2) My Consumption Model is OK too, I can access a sample table on my ERP via browser:

http://nplhost:8042/sap/opu/sdata/sap/MOBDEVICE/zgw_mobdeviceCollection?sap-client=001&$format=xml

3) All service settings are ok... and it is active on ICF Services (TC /iwfnd/reg_service)

But how I consume this service??? I tried SUP and Gateway Plug-in to XCODE: In both I do connect to gateway but I cant retrieve any services...

Tks!

Accepted Solutions (1)

Accepted Solutions (1)

knittedman007
Advisor
Advisor
0 Kudos

When you say you tried SUP - what exactly did you do?

SUP 2.1 comes with OData-based SDKs for building native clients that can interact with Gateway services. The documentation describes how this works.

I assume you are familiar with the way OData-based content is provided? That is there is a service document, a metadata document and then the collection/entities etc.?

- chris

Answers (3)

Answers (3)

_IvanFemia_
Active Contributor
0 Kudos

Gustavo,

I suggest you these interesting blog [Developing Mobile Apps with Sybase Unwired Platform 2.1 and SAP NetWeaver Gateway 2.0|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/28283] [original link is broken] [original link is broken] [original link is broken];. AS IS you cannot create MBO from SUP, SUP acts only as a kind of proxy.

You can consume your Gateway using for example this app in Apple store [OData Browser|http://itunes.apple.com/us/app/odata-browser/id380025457?mt=8] or creating your own consumer in whatever language you prefer (JSP, PHP, ASP, JS, Flex, etc.). Basically Gateway creates an OData REST resource.

Regards,

Ivan

hardik_patel
Participant
0 Kudos

Hi Gustavo,

Please try below links on SDN. We have How to guides available for service creation and consumption.

http://www.sdn.sap.com/irj/sdn/gateway?rid=/webcontent/uuid/c0a638d0-8478-2e10-8eb4-f157b64fb221

I hope this helps.

Regards,

Hardik

Former Member
0 Kudos

Hi Gustavo,

You can check out the code snippets page for native consumption examples:

http://wiki.sdn.sap.com/wiki/display/Snippets/SAP%20NetWeaver%20Gateway%20-%20Code%20Snippets?bc=tru...

Thanks,

Nir