Skip to Content
author's profile photo Former Member
Former Member

How parse OData response from SUP

How parse OData response from SUP

I have been looking for a way to consume a SUP service by oData, i found a library SDMParser, but I still can't find some example code, I think it is only a xml parser that lets get chema's parts

I also found NetWaver Gateway development tool, that creates the proxy classes to consume the services (more like a simple oDtata).

So my questions are.

Are there two options to consume the service, the first with SUP mobile sdk using SDMParser or the second using proxy classes with NetWaver Gateway development tool?

can any body provide some code parsing data in iOS library?

Thanks in advance for your help.

Regards,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 07, 2012 at 06:15 AM

    Hi Marco,

    You can use SDM oparser libraries to parse the oData.

    The sequence is like below.

    1. Parse the service doc.

    2. Parse metadata

    3. Parse the Collection

    You can find sample code the reference app

    for SUP version 2.1.x, you can find at : https://cw.sdn.sap.com/cw/docs/DOC-146461

    for SUP version 2.2, you can find at: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90166922-ae21-3010-a880-d90574398daf

    Regards

    Rohith

    Add a comment
    10|10000 characters needed characters exceeded

    • The netweaver gateway developer tool can be used in cases where you do not have any complex custom logic that you would like to implement. The SDMParser is the way to go if you would like to tweak and customize your app.

      Personally, I prefer the SDMParser as i like to have control over my code than read generated code which is a waste of time. 🤪

      Happy Programing,

      Sujith

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2012 at 04:07 AM

    Thanks everyone

    ok I have only one more question, I saw in some docs that using NWGW, developers of different languages don't need special knowledge for interact with this, so it means that working with SDMParser I have to know ABAP or some special thing?

    please excuse my ignorance, thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.