cancel
Showing results for 
Search instead for 
Did you mean: 

Sybase connectivity with iPhone

Former Member
0 Kudos

Hi Guys,

I am developing sample app for iPhone in which I am trying to pull data from SUP.

Here is document which I followed.

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01213.0153/doc/pdf/sup_tutorials_iph...

I followed steps correctly.

But when I run the application data is not coming from SUP.

I tried in debug mode and it says XCode could locate source : SUPMessageClient.m

I think that must be in library files which I imported to my project.

Any help or suggestions?

Thanks,

Snehal Mehta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi snehal

Can you tell what is the error ?

Have you check the settings in the SUP101 application

It is inside "settings" in i phone simulator

Best Regards

Suresh

Former Member
0 Kudos

Hi Suresh,

Thank you for reply.

After compiling and debugging ,I opened my console and it was written that XCode could not locate the source:SUPAbstractDB.m

I had already given details in settings which is in iPhone simulator for SUP101 project.

I think it is not able to communicate with three library files(.a files).So I used release-iPhone simulator libraries but it also didn't work.

What is your view for this?

Thanks,

Snehal Mehta

Former Member
0 Kudos

HI snehal

According to document we should use 3 files from debug-i phone simulator have you checked the server settings in iphone simulator

You may not be connecting to sup check all details

1.Enter correct password for sybase control center.

2.Registered your device in sybase control center.

3.Entered the user name ,password in sup101 setting(in settings of i phone simulator).

hope it works

Regards

Suresh

Former Member
0 Kudos

Hi Suresh,

I gave all the information correctly.Included three library files for simulator.

Is there any way to test that it can communicates with three files?

Right now in debug mode i am getting message Xcode could not locate source file: SUPAbstractDB.m in my console.

Thanks,

Snehal Mehta

Former Member
0 Kudos

hi snehal

Check these once again

Folder where sybase is installed is shared and you have connected to server .

Given the header search paths in project properties.

Check the whole project once again.

Hope your program runs

Best regards

Suresh joshi

Former Member
0 Kudos

Hi Suresh,

Now I am not having source file not found problem.

But instead I am not able to give user name and password correctly which is in generated code.

[SUP101_SUP101DB asyncOnlineLogin:@"supAdmin" password:@"s3pAdmin"];

while([databaseCH loginSuccessCount] < 1)

{

[NSThread sleepForTimeInterval:1];

}

These were the lines where I am having problem.

loginSuccessCount never goes above 1.So authentication is not done correctly.

I can see my device registered in SCC.

Thank you,

Snehal Mehta

Former Member
0 Kudos

Hi.., I havent tried this yet..,

But as you say, Your device is registered in SCC..

Why dont you bypass the condition check for login failure ? Just try commentting the code block which tries to validate the databaseCH loginSuccessCount

Former Member
0 Kudos

Hi,

Thanks for reply.

I bypassed the condition check also.

But I do not see any data coming to my text fields.

When I debug it says Xcode could not locate source file: SUPAbstractDB.m

I opened generated database file in my sqlite manager but there also I dnt see any data.

I printed the values in my console which I am trying to get ,but all null.

Any idea?I am able to run SUP 1.5.3 only.Other versions are giving me an error.

Thanks,

Snehal Mehta

Former Member
0 Kudos

Hi

First download the latest EBF for 1.5.5 upgrade.

When you do the upgrade uninstall SUP and install 1.5.2 then upgrade directly to 1.5.5.

Then develop the MBO's and deploy them as Message Based.

Next generate the code and import it into your XCode project.

Thanks

Pradeep

Former Member
0 Kudos

I was able to update the data in SUP server by using latest configurations.

Use SUP2.0 and xcode 4 and try !!

0 Kudos

Hi Kiranpk1988,

i am unable to retrive data from sybaseafter login into simulator.....

i am using sybase 2.0 and sdk ver 4.3

i am able to see my device is registered in scc.

how can i solve this....

Edited by: cuteguys08 on Aug 22, 2011 1:43 PM

Former Member
0 Kudos

I am not able to understand where you are stuck. Is it showing any kind of Error ? Just check the error Logs or if its a connectivity issue, the error is printed on the CONSOLE.

0 Kudos

hi kiranpk1988

In debug mode i am getting message Xcode could not locate source file: SUPAbstractDB.m in my console.

my device status is in offline in sybase.

Edited by: cuteguys08 on Aug 23, 2011 12:51 PM

Former Member
0 Kudos

Hi,

I think I got the problem.I also had similar problem.The reason is its login success count which is in callbackhandler is not going above 1.

Make sure you specify library search path and header search path correctly.

Is your device gets registered successfully on SCC?

What is the information you providing at Settings in iPhone?

And when you deploy make sure you replace and select message based system.

Let me know cause I think I solved this kind of issue before but I do not remember exactly what I did.

I need to recall it.

Regards,

Snehal Mehta

Former Member
0 Kudos

Snehal, In the SUP2.0 tutorial, they are not making use of that LoginSuccess Count.., instead they have made use of Default Notification Center. Even I had faced this same issue of SUPABSTRACT.m file not found.., when I had tried with 1.5.2 and 1.5.5, But when I updated Xcode to version 4 and SUP to 2.0 and followed the latest tutorial, I was able to get the data from SUP and then update back.,

@cuteguys08, As snehal said, you need to register your device as an MBS device and check whether your device/simulator status is ONLINE in SCC when you run the APP.

In XCODE4, click on main project, then click on the Project in the middle pane>Build settings> and then specify the Header search Path, Sometimes u also need to specify the User Header search Path.

Now, in the middle Pane, click on Target file, >Build settings>and check whether Library search Path is displayed. If necessary, copy and paste the same library search path in the Build settings of the project file (cant help,.. You need to play around a bit )

0 Kudos

Thanks for your help.

KiranPK1988

WE MADE IT WORK IN XCODE 3.2.6.

While connecting to sampleDB from sup my app is running fine from iphone.

i am using sup 2.0

I have generated my MBO MY flights from sup and my device is also registered in Sybase.

But while using the above example (MyFlights) which you have provided I am getting error as login failed in my console.

I followed the zip file and the documents provided in the bellow link.

/people/joseph.berthe/blog/2010/10/20/sybase-unwired-platform-for-iphone-40-part-12

regards

K.Yogesh

Edited by: cuteguys08 on Aug 26, 2011 5:08 PM

Edited by: cuteguys08 on Aug 26, 2011 5:10 PM

Former Member
0 Kudos

Hi,

I have same problem like snm2012. I can see my device registered in SCC and online and offline status of my application. I run debug an console prints "Login Successful". But I do not see any data coming from Server.

Any idea? I have SUP 2.0, XCode 4.

Thanks, Engin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Guys,

I am trying to fetch data from SAP to iPhone with Sybase unwired platform. I am able to see my iPhone simulator in sybase control center.I can see online and offline status of my application.But I am not able to see any data in my iPhone simulator. I run debug and noticed that loginSuccessCount from defaultCallBackHandler doesn't go above 1. I tried many username and passwords starting from sup and s3p accordingly.

Can any one give some idea?

Thanks, Snehal Mehta