cancel
Showing results for 
Search instead for 
Did you mean: 

SUP Webservices iOS

Former Member
0 Kudos

Hello,

I'm trying to implement a simple iOS application using SOAP service that performs a search operation and displays a list with the results that are returned from service.

I created an MBO from this service, tested it with 'preview' in the Unwired Workspace, then I generated the objective C code and integrated the CallbackHandlers and rest into Xcode. After some trouble finally I can successfully login to the Unwired Server from the iOS app.

I've tried different approaches to get the results, without success so far. I'm using SUP 2.0.

1) creating 'other' Operation on the MBO and trying findAll / etc...


SUP_MBO_SearchOperation *search = [[SUP_MBO_SearchOperation alloc] init];
search.lastName = @"M";
[search submitPending];
SUP_MBO_SearchOperationList *customers = [SUP_MBO_SearchOperation getPendingObjects];
//SUP_MBO_SearchOperationList *customers = [SUP_MBO_SearchOperation findAll];

In the server log files I can actually see that the SOAP service is invoked but the "lastName" is always null...

2) findWithQuery on the MBO


SUPQuery *query2 = [SUPQuery getInstance];
query2.testCriteria = [SUPAttributeTest match:@"lastName":@"M"];     
SUPObjectList *resultSet2 = [SUP_MBO findWithQuery:query2];

Here I get always empty resultset....

3) executeQuery on the MBO


SUPQuery *query = [SUPQuery getInstance];
[query select:@"c.firstName,c.lastName"];
[query from:@"SUP_MBO":@"c"];
query.testCriteria = [SUPAttributeTest match:@"c.lastName":@"M"];
SUPQueryResultSet *resultSet = [IPAD_HC_IPAD_HCDB executeQuery:query];

Here I get SUPNoSuchClassException which would mean that SUP_MBO doesn't exist but it does....

Am I missing the point or doing something wrong? Could you please help me...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I don't believe that anybody hasn't tried it yet?

There must be some experienced developers that could help me with it?