Please help me. problems related to CI access to restful

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.