Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
What is a webservice?

Some people it is a form of coummunciation using XML.
Some say that it is Backend service.

My project manager asked me to write a webservice in PHP. I have thought it is complicated but it is actually a code to access the db for andriod.

In magento webservices is complicated.

Overall this webservice is confusing for me.

Thanks.
Posted
Updated 19-Jul-14 3:29am
v2
Comments
Richard MacCutchan 19-Jul-14 10:17am    
You need to talk to your project manager and ask him exactly what he means by "write a webservice in PHP", as it is not clear what this service is expected to do. You should also make use of Google for research.

1 solution

In technology field the services are the written program that is used to serve the specific requirement like services can be used for payment service or for CRUD operation in the database etc.

these services is consumed by the client. client can be of any type like a window client or web based client. These services can be exist on different machine and the client can exist on different machine.

client is nothing but the web application or window application that consumed the services.

these services are the written program that always return some value that used by the client.
To consume the webservices we use the Proxy class through which we can access the methods that implemented in the services.

In .net we have the different technology for services development like Enterprise services, Dot net Remoting, web services and the latest one WCF.

Different service technology have different data transfer format and required different type of client like for Eg. dot net Remoting technology transfer the data in binary format and use tcp protocol and this services can be consumed by only dot net client wheres the web services transfer the data in xml format over the http protocol so these web services can be consumed by any type of client.

the advantage of web services is that these are interoperable services.

every services has the basic structure called as ABC A- addresss, B- Binding , C- contract
Address- its contains the complete address where the service will be available for consuming this service we use this address at the client side.

Binding- its tell the protocol that will be used for exchanging the metadata and data.

Contract- its tell that which class will be available for the use at the client.

before using these services we need to host these services there are different type of hosting available - console based hosting , windows based hosting ,windows service based hosting, IIS hosting

after hosting this services we can only use these services in our application.



if any one find the mistake please comment and improve it. and for more deeper of webservices use the below link.


http://en.wikipedia.org/wiki/Web_service[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900