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

PHP SoapClient参数问题

WBOY
WBOYOriginal
2016-06-23 13:27:482228browse

使用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;})


回复讨论(解决方案)

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

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

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

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

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

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



谢谢,可以了
Statement:
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