Jump to content

Sample code (server side) for super simple PHP based (SOAP) webservice?


pstein

Recommended Posts

I would appreciate to get super simple PHP code on how a webservice can be implemented with PHP).

 

Assume a MySQL database is setup and contains a SQL table with the following columns:

 

ZIPCODE        INTEGEER

CITYNAME      VARCHAR

NUMCITIZENS  numeric

WATERSIDE    BOOLEAN

 

Now lets say a client is sending a SOAP webservice message to the XAMPP based web server with the ZIP code in the request data.

 

PHP should lookup the record in the MySQL database and return CITYNAME,

NUMCITIZENS and WATERSIDE values to the requesting webservice client.

 

How would such a PHP code look like (only server side is of interest)?

 

Thank you

Peter

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.