cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.1 & Odata

Former Member
0 Kudos

Hi experts,

i m beginner in the sybase world ana i m looking for some tutorials/samples for using odata protocol within sybase apps.

someone can give me some links (step by step tutorials ), i was looking for the MOB265 course , but i can't find it

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

rohith_deraje
Employee
Employee
0 Kudos

Hi Moo,

If you are looking for some guide to start with SUP2.1 and oData, you ca refer to

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/607b76a7-c345-2f10-d5b3-f236ea676cb1

Regards

Rohith

Former Member
0 Kudos

Hi,

You will only have access to MOB265 if you went to Teched this year. Have you checked here: [SUP APPS|https://cw.sdn.sap.com/cw/groups/sup-apps] ? This is probably the best place to look plus the Sybase documentation on: [ODATA SDK documentation|http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01708.0210/doc/html/title.html] Good luck.

Former Member
0 Kudos

read this blog entry as well as the video included. [Sybase - Odata|http://blogs.sybase.com/mobiledevelopment/?p=636]

Former Member
0 Kudos

Thanks foryour answers,

Please could you confirm the fact that using odata with sap gateway only possible from version 2.1 of sup ?

Former Member
0 Kudos

Yes, the Odata SDK is part of sup 2.1 and not available in previous version.

paul_grill2
Explorer
0 Kudos

Hi,

I've been playing around with SUP and SAP NW Gateway for three days now... OData support officially appeared in SUP2.1.

SUP2.0 only has regular support for REST. For REST, a XSD definition seems to be required which SAP NW GW does not provide.

Sybase has some documentation on how to get started with OData development

Another great resource is the SUP Apps group on CodeExchange, both posted above (EDIT-Sorry, didn't see)

I'm watching this thread and I appreciate any bits of information on working with SAPNWGW & SUP.

--Paul

Edited by: Paul Grill on Dec 1, 2011 2:41 PM

Former Member
0 Kudos

Hi,

I am using SUP 2.1 and OData SDK 2.1 developed an application.

I had created OData Gateway service classes in SAP, and configured the Gateway service. I also created native iOS application with SUP OData 2.1 SDK, which connect to the SAP system via HTTPRequest to retrieve data and display on the iOS device.

Things going well on this, but I got question about what is the Sybase Unwired Platform role in this kind of development?

I think I need to deploy my application into the SUP, and let the SUP connect to the SAP OData Channel. But, I can't find any documentation of how to deploy the application into SUP. Not like MBO, we can use the Workspace to deploy the application to SUP.

I had went through sybase infocenter, and I still can't get the idea how OData work in SUP. Can someone give me more details on this? I hope someone can share with me on how the you deploy OData application in SUP?

Thank you.

Regards,

Edison Wang

Former Member
0 Kudos

What will be the end URL, consider a scenario where you would like to SUP 2.1 with relay server. and at the other end you will netweaver gateway which is connected to SUP

SAP <--->NWGW<-> SUP 2.1<


> Relay server <-----> iOS/Android

in this kind of connection what will be the URL for metadata or service doc, which I can mention in the code.

Former Member
0 Kudos

This blog might help you getting an overview on developing mobile Apps with SUP 2.1 and SAP NW Gateway 2.0 using OData.

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/28283

Former Member
0 Kudos

About that XSD problem,

Does anyone knows if it is possible to consume ODATA service from gateway 2.0 to SUP via MBOs ?? i am stuck at the point when SUP ask for that .XSD file and also a XLST file...

that is weird?? GATEWAY and Sup MBOs are not compatible ??

thanks

Marc-Etienne

rohith_deraje
Employee
Employee
0 Kudos

Hi Marc,

Using SUP2.1-ODP, You can develop a online app to consume REST services exposed by Gateway. To do this you dont have to create MBOs. In the ODP context there is no storage of data in SUP. Data is directly consumed by app.

More details are available at blog http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/28283.

Regards

Rohith

Former Member
0 Kudos

Hi Marc,

SUP 2.0 is not supported for oData, you need to install SUP 2.1 instead, You need not to use MBOs at all for oData approach, SUP 2.1 just acts as a proxy, all you need to do is, in SCC you have to provide the application end point while creating application connection profile.

I Hope that solves your problem

Srinivas Divakarla

Former Member
0 Kudos

The worst part is MBO is not supported with SAP MI netweaver 7.3 they only support ODATA as the componanat gateway1.1 will only work till netwever 7.10.The customer has no option but to buy gateway 2.0 and use ODATA rather than MBO in future.

Former Member
0 Kudos

It IS possible to connect MBOs to REST, though it is a bit painful and probably unwise in a real production environment.

I got the MBO to load the data this url returns:

http://gw.esworkplace.sap.com/sap/opu/odata/IWBEP/RMTSAMPLEFLIGHT_2/FlightCollection

(see http://scn.sap.com/docs/DOC-31221 for passwords and more info)

For the XSD I used an extractor/generator that extracts the schema from a sample XML. There's one online, though I ended up using one that comes with visual studio.

I'm using the free cloudshare "hosted SUP test and evaluation environment" and after providing the XSD some other files where needed (missing from the SUP SDK), but I found them easily googling for a while.

I only got to read (GET) the data, I never tried saving (POST) anything, I think it probably wouldn't work because of CSRF tokens and the like. Well, maybe coding and getting under the hood you can achieve something.

I found it to be slow, but, as proof of concept, it can be done.