Skip to Content

SUP 2.1 + iOS5 + oData + Relay server --> SDMConnectivityException

Hello,

I´m trying to get odata input from a Gatwayserver throu SUP 2.1 and a relayserver to iOS 5 (written by xCode 4.3.2).

Well without the relay server in the intranet I get my odata via requestType = "HTTPRequestType".

But behind the relay server I get no data from the request. My understanding is that in this case I have to use the "SUPRequestType".

But after starting the method "[SDMRequestBuilder requestwithURL]" I get a  SDMConnectivityException saying: "Could not instantiate the SUP request. Ensure you´ve added the SUP libary to your project!"

I use the libMo.a from the MobileSDK directory of the Unwired Platform server (date = Dec. 2011) . If I use the libMO.a from the ClientApi directory (date = Sept. 2011)  I get problems while the compile time (I can post the message when I produce the error again).

At the moment I have 2 ideas:

1) The libaries are to old or defect

2) There are problems with the deployment of the xCode project.

Has someone experience with that problem? Maybe a sulution?

regards

Daniel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 05, 2012 at 01:51 PM

    Hi Daniel,

    please refer to the below link. this is a good material for beginners on SUP and iOS.

    http://wiki.sdn.sap.com/wiki/display/mobile/Getting+Started+with+an+SUP-ODP+application+on+iOS+for+version+2.1

    Regards

    Rohith

    Add comment
    10|10000 characters needed characters exceeded

    • Thank you Rohith,

      the property "Outer Linker Flags" = "-ObjC -all_Load" in the Build Settings seems to be a  importend property!

      Now I get a 401-error message from the SAP-Gateway server, but it also means that the connection until this point works.

      Regards

      Daniel

  • avatar image
    Former Member
    May 12, 2014 at 06:33 AM

    Hi Daniel,

    I am very new in consuming Odata services through SMP server and relay server so could you please share the code snippet that how to make connection of Odata services through relay server and smp server.

    With Regards

    Neha

    Add comment
    10|10000 characters needed characters exceeded