Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That all depends on your webservice. If you are using a RESTful webservice you could do something like <a href="http://mysite.com?state=NewYork" rel="nofollow">http://mysite.com?state=NewYork</a> and the webservice can pull the state parameter and find that the user is looking for New York.</p> <p>If you are using a SOAP webservice you would have to follow the schema defined in the webservice's WSDL.</p> <p>Edit 1:</p> <p>In either case: In the iOS app you can determine which table row was selected by making your class implememnt UITableViewDelegate and implementing tableView:didSelectRowAtIndexPath: (<a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableViewDelegate_Protocol/Reference/Reference.html" rel="nofollow">Documentation Here</a>) At this point you can determine which state you are looking for and add that value to the service call.</p> <p>Edit 2:</p> <pre><code>NSMutableURLRequest *request = [[NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.yoursite/webService"]] retain]; NSString *bodyLength = [NSString stringWithFormat:@"%d", [bodyString length]]; [request addValue:@"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"]; [request addValue:bodyLength forHTTPHeaderField:@"Content-Length"]; [request setHTTPMethod:@"POST"]; [request setHTTPBody:[bodyString dataUsingEncoding:NSUTF8StringEncoding]]; NSURLConnection *myConnection = [NSURLConnection connectionWithRequest:request delegate:self]; [myConnection start]; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload