Please help me. CI accesses restful. CI accesses the restful service. The service is written by C # and the returned data is in the json interface: MemberService. Method login (int & nbsp; a, string & nbsp; B, string & nbsp; c) I found some information online and reported an error by referring to the result above. Please help me with my code. CI access to restful
CI accesses the restful service. The service is written in C # and the returned data format is json.
Interface: MemberService. Method login (int a, string B, string c)
I found some information on the Internet and wrote an error according to the above.
My code is as follows:
$ This-> load-> library ('rest', array ('server' => 'http: // localhost/TeamLoggingWebHost/MemberService. svc/', 'http _ auto' => 'basic '));
$ Param = array ('a' => 1, 'B => 'HH', 'C' => 'KK ');
$ Result = $ this-> rest-> Get ('login', $ param, 'application/json ');
Error reported after debugging
Unable to load the requsted class: rest
Is it necessary to reference the rest class library. Is there a rest class library in the CI framework?
------ Solution --------------------
Your application/libraries or system/libraries does not define the rest class.