在 Laravel 框架中创建和使用基于 SOAP 的 Web 服务
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23628218/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating and using SOAP based web service in Laravel framework
提问by uma
In Laravel 4 framework, how to create a SOAP based web service. I would like to build a SOA based web application in laravel. Please clarify with an example how to use web service with some step by step examples or links as i am completely new to laravel
在 Laravel 4 框架中,如何创建基于 SOAP 的 Web 服务。我想在 Laravel 中构建一个基于 SOA 的 Web 应用程序。请举例说明如何通过一些分步示例或链接使用网络服务,因为我对 laravel 完全陌生
Thanks in advance..
提前致谢..
回答by Eric
You can use "php-wsdl-creator" (also supports SOAP). They have a great tutorial and many demo php files to get you started. It can also easily be implemented in laravel or any other framework for that matter. :)
您可以使用“php-wsdl-creator”(也支持 SOAP)。他们有一个很棒的教程和许多演示 php 文件来帮助您入门。它也可以很容易地在 laravel 或任何其他框架中实现。:)
You can find more information on Google Code: https://code.google.com/p/php-wsdl-creator/
您可以找到有关 Google 代码的更多信息:https: //code.google.com/p/php-wsdl-creator/
Also note that SOAP requires an extension to be loaded in PHP.
另请注意,SOAP 需要在 PHP 中加载扩展。