cancel
Showing results for 
Search instead for 
Did you mean: 

SUP web services from iOS object api

Former Member
0 Kudos

Hello,

we created a MBO from a web service and are having trouble getting the response of the invocation made from the iOS object api. We checked the web service and it's working correctly and sending the correct response but we keep getting an error message.

In our android application everything works correctly so we supose it has something to do with how we are getting the response values.

We also tried it from sup workspace from the preview of the MBO and it works correctly so we don't know where to look for the error.

We are working with SUP 2.1.3

I attach a file with the code we are trying, could anyone help us? Any help would be great!

Thanks in advance,

Lucía Cianelli

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

After trying different things we found out that our problem was with SUP Cache. The first time we executed the web service we recieved an error message and after that even if we recieved a success answer we couldn't get it.

If we open the Sybase control center and purge the cache group (from the package), everything works correctly the first time and then we keep getting the same answer (with old values) over and over again.

Is there a way to tell SUP to get the web service answer each time or to purge the cache group from the object api? Could it be something with our code?

The strange thing is that with the same MBO's when we generate the object api for Android everything works great.

Any ideas?

Thanks in advance,

Lucía Cianelli

suneet_agarwal
Employee
Employee
0 Kudos

Hi Lucia,

We are also working on a mobile application which consumes web services via MBO(SUP 2.1.3).

In our case the web services returns us a listof Java Class Object. Issue is that we are not  able to see the data even in the preview.

Did you come across a similar situation i.e. does any of your web services also consumes Java Class objects.

Thanks,

Suneet

Former Member
0 Kudos

Hi Lucia,

Before calling [ProjectNameDB synchronize]; you have to subscribe the package.

Former Member
0 Kudos

Do you have a working example consuming a SOAP web service with input parameters and output parameters from iOS?  Could you share it with us?

We tried subscribing but it still doesn't work. The error we get and the lines after we got it are in the file error.txt.

We are getting the correct response from the web service, we checked in the domain log, at cache reference we can see the success message but it doesn't get to the application.

I attach the image with the log message with the answer from the web service.

Any help would be great, we are running out of ideas.

Thanks for your help!

Former Member
0 Kudos

Hi Lucia Cianelli,

Please check if the input you are passing to the Web service is reaching the MBO. You can view the payload in the Domain log. Change your log settings to capture payload as well.

Please refer the attached images

Regards,

Aparnna Prasad

Former Member
0 Kudos

Hi Aparnna Prasad,

Thanks for your answer, we captured the log and the input we are passing is reaching the MBO correctly. Any other ideas as to what it can be?

Do you have a working example with a web sevice that has input and output parameters in iOS?

Any other ideas would be great,

Thank you for your help!

Lucía