数组到PHP Soapclient调用

时间:2018-01-25 16:15:42

标签: php web-services soap-client

我使用的是php和Soapclient。我需要发送下一个参数:

        <sch:CodConsulta v="5473"/>
        <sch:Parametros>

           <sch:Txt n="Agente" v="aaa"/>
           <sch:Fec n="Fecha" v="2018-01-24"/>
           <sch:Txt n="Sesion" v="0"/>
        </sch:Parametros>

我试过发送这样的参数:

$parametros = array(
   "CodConsulta" => array('_' => '',"v" => "5473"),
   "Parametros" => array( 
      "Txt" =>  array('_' => '',"n" => "Agente","v" => "aaa"),
      "Fec" =>  array('_' => '',"n" => "Fecha","v" => "2018-01-24"),
      "Txt" =>  array('_' => '',"n" => "Sesion","v" => "0")
  )
);

Webservice返回错误,只收到1个参数...

非常感谢任何帮助。提前谢谢。

0 个答案:

没有答案