Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用SOAP发送XML_Php_Soap - Fatal编程技术网

Php 使用SOAP发送XML

Php 使用SOAP发送XML,php,soap,Php,Soap,我需要发送SOAP数据 <vodh:VODHeader xmlns:vodh="http://www.example.com/soap/header/"> <vodh:info>getuser</vodh:info> <vodh:authentication> <vodh:username>xxx</vodh:username> <vodh:password>xxx</vod

我需要发送SOAP数据

<vodh:VODHeader xmlns:vodh="http://www.example.com/soap/header/">
   <vodh:info>getuser</vodh:info>
   <vodh:authentication>
     <vodh:username>xxx</vodh:username>
     <vodh:password>xxx</vodh:password>
   </vodh:authentication>
</vodh:VODHeader>
<vodb:VODBody xmlns:vodb="http://www.example.com/soap/body/" version="1.0">    
   <vodb:idUser>65344</vodb:idUser>
   <vodb:message>Lorem ipsum</vodb:message>
</vodb:VODBody>
这是发送数据或其他方法的正确方法


soap用ACK响应。

现在是午餐时间……我真的想知道是否有其他方法可以通过某种方法传递这些参数,例如,如果是这样的伪方法:$client->setData('vodh:info','GetUser');这将导致GetUser
$client = new nusoap_client($Urlserver,FALSE);
//$data_xml is the xml I mention in previous lines
$msg = $client->serializeEnvelope($data_xml); 
$result=$client->send($msg, $Urlserver);