0
nuSOAP을 사용하여 PHP로 웹 서비스를하고 있습니다. webservice는 객체 배열을 반환합니다. 호출이 thingArray에 일 [] 변환 할 수 없습니다 불평 할 때 WCF에서 호출 할 수있는 배열을 반환하는 PHP의 nuSoap에 웹 서비스를 만들려면 어떻게해야합니까?
$server->wsdl->addComplexType(
"thingArray", // type name
"complexType", // soap type
'array', // php type (struct/array)
'sequence', // composition (all/sequence/choice)
'', // base restriction
array( // elements
'item' => array(
'name' => 'item',
'type' => 'tns:thing',
'minOccurs' => '0',
'maxOccurs' => 'unbounded'
)
),
array(), // attributes
"tns:thing" // array type
);
WCF 클라이언트를 사용하여 실패합니다.