|
Okay, I think I am close. I have a proxy to our Odata/WCF services, but I'm not sure how to put the contents of what I get back into a List/Array/etc...
Here is my code so far...
CAEntities *proxy = [[CAEntities alloc] initWithUri:@"http://servername/Service.svc" credential:nil];
//need to do a simple search based on Search Text...then get back a list of "Scripts"...from the Odata Search Service...
//Also, can I "Expand" objects in Object C???
DataServiceQuery *qry = [proxy CAModel_Script];
[qry filter:@"CAModel_Script/m_title eq 'searchtext'"];
QueryOperationResponse *result = [qry execute];
items = [[result getResult] retain];
//cleanup
[proxy release];
I know this code is not correct, but I'm not sure how to put the results into a List/Array/etc...If I was in .NET, no problem, but I'm still figuring out this Obj. C world.
Thanks again.
Mark
|