Maxz Pro, How to know Closer about Webservice, - Before you read this article, the author tries to explain
the webservice definition. Web service by the author is:
A cross-platform application can be accessed over a network
(intranet and internet). Where in the application provides a method the method
used for the purposes of the application interaction with other applications
accessed by the URL and receive a response in the form of JSON, XML, TXT, CSV
and other.
Differences webservice with a typical web application:
Webservice
- Without interface
- Communication between applications with
application
- Running in the background (in the script
application)
Web-based
applications
- With interface
- Communication between applications with
application
- Displayed in the web browser
The main purpose of use webservice is throwing data from one
server to another server that is different from the location (IP address). By
accessing the URL we can get data from different applications environment (mean
of "environment different" is the location, programming languages,
operating system and applications).
Code Igniter PHP Framework is a framework to accelerate the
creation of web-based applications is very popular these days. In addition to
the completeness of documentation, many developers do additional libraries or
add INS in this framework. On this occasion, the author tries to implement
Restful to create a webservice using Code Igniter.
Implementation Restful webservice on Code Igniter framework
is straightforward. Steps to build it are as follows:
Download library restful
https://github.com/chriskacerguis/codeigniter-restserver server on the
following link. Library on this framework will be easier for us in the process
of making the application
When the library you've got, extract and rename the folder
codeigniter-restserver-master as you see fit. In this article author changed
his name to "WebService"
Move the folder to the root of our web server, when using
XAMPP then the root folder contained in the folder C: \ xampp \ htdocs \
Adjust the configuration of the database user and password
for the file C: \ xampp \ htdocs \ webservice \ application \ config \
database.php
By accessing the url http: // localhost / WebService
In the picture there will be a link, and if the link is
clicked it will show the response data in the format desired, may take the form
xml, csv, and Json.
As has been shown above, in the form of JSON results you
will get. Later, you can form a JSON as a request on the server side.
Similarly, exposure of the author may add that there is little knowledge on the
reader. For questions and corrections can be informed through the comments or
send an email to the author (emailearif@gmail.com).
Artikel keren lainnya:
Belum ada tanggapan untuk "How to know Closer about Webservice"
Posting Komentar