1. <tfoot id='tcb5n'></tfoot>
      <legend id='tcb5n'><style id='tcb5n'><dir id='tcb5n'><q id='tcb5n'></q></dir></style></legend>
        <bdo id='tcb5n'></bdo><ul id='tcb5n'></ul>

      1. <i id='tcb5n'><tr id='tcb5n'><dt id='tcb5n'><q id='tcb5n'><span id='tcb5n'><b id='tcb5n'><form id='tcb5n'><ins id='tcb5n'></ins><ul id='tcb5n'></ul><sub id='tcb5n'></sub></form><legend id='tcb5n'></legend><bdo id='tcb5n'><pre id='tcb5n'><center id='tcb5n'></center></pre></bdo></b><th id='tcb5n'></th></span></q></dt></tr></i><div id='tcb5n'><tfoot id='tcb5n'></tfoot><dl id='tcb5n'><fieldset id='tcb5n'></fieldset></dl></div>

        <small id='tcb5n'></small><noframes id='tcb5n'>

        如何生成PHPsoap客户端代码?

        时间:2023-05-22

        <legend id='br1fO'><style id='br1fO'><dir id='br1fO'><q id='br1fO'></q></dir></style></legend>

        <small id='br1fO'></small><noframes id='br1fO'>

        <tfoot id='br1fO'></tfoot>
      2. <i id='br1fO'><tr id='br1fO'><dt id='br1fO'><q id='br1fO'><span id='br1fO'><b id='br1fO'><form id='br1fO'><ins id='br1fO'></ins><ul id='br1fO'></ul><sub id='br1fO'></sub></form><legend id='br1fO'></legend><bdo id='br1fO'><pre id='br1fO'><center id='br1fO'></center></pre></bdo></b><th id='br1fO'></th></span></q></dt></tr></i><div id='br1fO'><tfoot id='br1fO'></tfoot><dl id='br1fO'><fieldset id='br1fO'></fieldset></dl></div>
          <bdo id='br1fO'></bdo><ul id='br1fO'></ul>

                  <tbody id='br1fO'></tbody>

                  本文介绍了如何生成PHPsoap客户端代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  有没有办法从 WSDL 文件生成 PHP Soap 客户端?

                  Is there a way to generate a PHP Soap Client from a WSDL file?

                  我的意思是像 .net 中的 wsdl.exesvcutil.exe 之类的东西,它为可以作为服务客户端的类生成代码,而不是像:

                  I mean something like wsdl.exe or svcutil.exe in .net, that generates code for a class that can be the client of a service, not something like:

                  $WSDL     = new SOAP_WSDL($wsdl_url); 
                  $client   = $WSDL->getProxy(); 
                  

                  我的问题是我希望 PHP 客户端能够使用服务,即使该服务没有公开其 WSDL.

                  My problem is that I want the PHP client to be able the work with a service, even when that service doesn't expose its WSDL.

                  推荐答案

                  您可以使用 SOAP_WSDL (http://pear.php.net/reference/SOAP-0.9.4/SOAP/SOAP_WSDL.html#methodgenerateProxyCode) 方法,并将其保存到文件中:

                  You can use the method [generateProxyCode] provided in the package SOAP_WSDL (http://pear.php.net/reference/SOAP-0.9.4/SOAP/SOAP_WSDL.html#methodgenerateProxyCode) method instead and save it to a file:

                  $WSDL     = new SOAP_WSDL($wsdl_url); 
                  $php      = $WSDL->generateProxyCode();
                  file_put_contents('wsdl_proxy.php', '<?php ' . $php . ' ?>');
                  
                  require 'wsdl_proxy.php';
                  

                  这篇关于如何生成PHPsoap客户端代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:PHP SOAP 客户端教程/推荐? 下一篇:如何在php中读取soap响应xml

                  相关文章

                  最新文章

                      <i id='ItJKG'><tr id='ItJKG'><dt id='ItJKG'><q id='ItJKG'><span id='ItJKG'><b id='ItJKG'><form id='ItJKG'><ins id='ItJKG'></ins><ul id='ItJKG'></ul><sub id='ItJKG'></sub></form><legend id='ItJKG'></legend><bdo id='ItJKG'><pre id='ItJKG'><center id='ItJKG'></center></pre></bdo></b><th id='ItJKG'></th></span></q></dt></tr></i><div id='ItJKG'><tfoot id='ItJKG'></tfoot><dl id='ItJKG'><fieldset id='ItJKG'></fieldset></dl></div>
                    1. <tfoot id='ItJKG'></tfoot>

                      <small id='ItJKG'></small><noframes id='ItJKG'>

                        <bdo id='ItJKG'></bdo><ul id='ItJKG'></ul>
                    2. <legend id='ItJKG'><style id='ItJKG'><dir id='ItJKG'><q id='ItJKG'></q></dir></style></legend>