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

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

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记