我正在尝试用PHP读取SOAP响应,但是我收到了这个错误:
Warning: simplexml_load_string(): Entity: line 1: parser error : Extra content at the end of the document in C:\xampp\htdocs\clinics\sedeeq.php on line 10
Warning: simplexml_load_string(): :complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema> in C:\xampp\htdocs\clinics\sedeeq.php on line 10
Warning: simplexml_load_string(): ^ in C:\xampp\htdocs\clinics\sedeeq.php on line 10
这是我的PHP代码:
$soap_client = new SoapClient("http://test.com/WebSrvOutApp/OutApp.asmx?WSDL");
$data = $soap_client->OutGetOpdSchedule("test","test_2020");
$xml = simplexml_load_string($data->OutGetOpdScheduleResult->any);