Skip to Content
0
Former Member
Oct 23, 2012 at 05:21 AM

Consuming Gateway Service in iOS application .

20 Views

Hi All,

We have service exposed via sap nw gateway which works well in browser .we are trying to consume the same in iOS application .This service gets list of banks in particular country .

We have to generate .h and .m files from service url via terminal .

what i am doing in terminal is:

Mac-mini:Odatatest developer$ /Documents/ODataObjC/Framework/bin/ODatagenBinary/MacOSX10.6.sdk/Release/odatagen /uri=http://abc.com:XXXX/sap/opu/sdata/sap/ZUSERRFC/$metadata /out=/Documents/Demo

I am using MAC OSX 10.6.8 and ODATASDKV1.3.While creating proxy class of my uri,I encounter the following error:

odatagen[5396:903] NSRangeException::*** -[NSCFString substringFromIndex:]: Range or index out of bounds
odatagen[5396:903] odatagen: Error in saving metadata

It works well with sample application(service) , but we face this while creating classes for our service .

Thanks ,

Amit Nalawade.