How to use webservice in iphone c lens?

I need a great video tutorial to use web services in an iphone object c.My requirment already has values ​​in webservice, so I just want to access the web service and check the username and password and return to displaying true or false value on iphone.

If anyone has an idea for a tutorial, please help me.

+3
source share
4 answers
+6
source

- iPhone Hessian. Java, Hessian, .NET, Hessian#.

, - HessianServlet ( HttpServlet):

public interface MyService {
  public String doWithStuff(String action, Object stuff);
}

.NET.

HessianKit, - -, , . Java Objective-C.

@protocol MySertvice
-(NSString)do:(NSString*)action withStuff:(id)stuff;
@end

-, :

id<MyService> proxy = [CWHessianConnection proxyWithURL:serviceURL
                                               protocol:@protocol(MyService)];
NSLog(@"%@", [proxy do:@"Something" withStuff:arguments]);

Hessian -, , GSM. Hessian XML JSON, , .

+4

- NSUrlConnection.

Webservice iphone/Ipad

+2

iPhone on Rails -

a Objective-C Ruby on Rails ' ActiveResource.

but it can be used as a shell to access any RESTful web service. ObjC classes and objects correspond to ActiveRecord classes and objects (which correspond to tables and database rows).

There is an introductory screencast here .

+1
source

Source: https://habr.com/ru/post/1718889/


All Articles