Hallo
Ich habe das selbe Problem.
<Items ItemName="[P1N_IP]WebOPCHmiTestVars" >
<Value xsi:type="xsd:int">150</Value>
</Items>
Kann als Array schlecht dargestellt werden.
Hast du schon eine Lösung ?
Erfolglos --> Mann muss den "xsi:type"=>"xsd:int" irgendwie verpacken.
PHP-Code:
/**
* @param $item
* @param $value
* @return mixed
*/
public function WriteItem($item,$value){
$soapReg[] = array(
"ReturnValuesOnReply" => "true",
"Options" => $this->_soapWriteOptions,
"ItemList" => array(
"RegType" => "string",
"Items" => array(
"ItemName" => $item,
"Value" => array(
"xsi:type"=>"xsd:int",
"Value" => $value
)
)
)
);