Home > Backend Development > PHP Tutorial > PHP SoapClient参数问题

PHP SoapClient参数问题

WBOY
Release: 2016-06-23 13:27:48
Original
2354 people have browsed it

使用SOapUi软件测试可以传输成功。使用PHP SoapClient参数传不过去,帮忙看看调用TransDIYOrderInfoToGVS函数该如何传参
WSDL

array(1) {  [0]=>  string(89) "TransDIYOrderInfoToGVSResponse TransDIYOrderInfoToGVS(TransDIYOrderInfoToGVS $parameters)"}NULLArray(    [0] => struct TransDIYOrderInfoToGVS { ZPP_GXH_DIYTOGVS in;}    [1] => struct TransDIYOrderInfoToGVSResponse { outType out;}    [2] => struct ZPP_GXH_DIYTOGVS { string SNNUM; string WDNUM; string FMATNR; string RMATNR; decimal NUMBER_SL; string NAME; string ADRESS; string PHONE; string CPDL;}    [3] => struct outType { string FLAG; string MESSAGE;})
Copy after login


回复讨论(解决方案)

$参数 = array(  'in' => array(;    'SNNUM' => '',    'WDNUM' => '',    'FMATNR' => '',    'RMATNR' => '',    'NUMBER_SL' => '',    'NAME' => '',    'ADRESS' => '',    'PHONE' => '',    'CPDL' => '',  ));
Copy after login
Copy after login
调用时
$客户端实例->TransDIYOrderInfoToGVS($参数);

$客户端实例->__call('TransDIYOrderInfoToGVS', array($参数));

$客户端实例->__soapCall('TransDIYOrderInfoToGVS', array($参数));

$参数 = array(  'in' => array(;    'SNNUM' => '',    'WDNUM' => '',    'FMATNR' => '',    'RMATNR' => '',    'NUMBER_SL' => '',    'NAME' => '',    'ADRESS' => '',    'PHONE' => '',    'CPDL' => '',  ));
Copy after login
Copy after login
调用时
$客户端实例->TransDIYOrderInfoToGVS($参数);

$客户端实例->__call('TransDIYOrderInfoToGVS', array($参数));

$客户端实例->__soapCall('TransDIYOrderInfoToGVS', array($参数));



谢谢,可以了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template