dongshi9489 2013-10-17 10:00
浏览 91
已采纳

使用WAMP在本地计算机上创建和使用Web服务

Is it possible to create an environment on local machine( i.e. localhost) where we can create and consume web service using PHP?

Is there any flow to create a web service like environment on localhost?

I would like to create an environment on localhost for web services where local machines, on intranet, get connected to main server (here again it's local machine) and can consume web services.

Like on internet we have Web Servers from where we can create and consume web services, Can we do the same on localhost?

Edit:

I am using WAMP with

PHP 5.3
Apache 2.*
MySQL 5
Windows 8

  • 写回答

1条回答 默认 最新

  • douaoj0994 2013-10-17 10:16
    关注

    It is easy to create a local web service. You will need a local web server (like IIS or xampp) to execute PHP locally.

    Access you PHP application in your browser using http://localhost/<yourApp>.php and provide any webservice at a local URL as well, e.g. http://localhost/<yourService>.php. Your application can then access the webservice using the local URL.

    This works both for REST or SOAP-style services.

    EDIT: Your edit shows that you already set up a local environment to develop and test webservices. You should really be more specific in your question, maybe you are looking for a tutorial to create web services with PHP in genereal. If so, Google will be your best friend: https://www.google.de/#q=create+web+service+using+php+tutorial

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助
  • ¥15 STM32控制MAX7219问题求解答