1
我試圖用getTypes()來解析類型WSDL的:如何解析SoapClient中的Struct - > __ getTypes()?
$wsdl = 'http://wwwh1.tjrj.jus.br/HMNI/Servico.svc?singleWsdl';
$client = new SoapClient($wsdl);
$types = $client->__getTypes();
foreach($types as $type){
var_dump($type);
}
但是結果是「字符串」這樣的:
string 'struct tipoConsultarAvisosPendentes {
string idRepresentado;
string idConsultante;
string senhaConsultante;
string dataReferencia;
}' (length=136)
我想獲得每個屬性 (及其類型)。 是否有另一種方法來解析類型?
在此先感謝!