PHP SoapClient malformed xml
问题 I'm communicating with a webservice in SOAP with php. Here's my code : $data = array('name' => 'test', 'age' => 20); $WDSL = 'http://xxx.xxxxx.xxx/wdsl.ibs?wsdl'; $SOAP = new SoapClient($WDSL, array('trace' => true)); $RESULT = $SOAP->__soapCall('Some_Service', $data); For some reason, the XML is wrong : <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Some_Crap"><SOAP-ENV:Body><ns1:Some_Service/><param1>test<