Soap服务器返回字符串

当我从肥皂服务器返回时通过__doRequest(xml)方法发送请求时,我得到字符串
string(490) "
0Message0000
"
当我通过__soapCall传递数组时,我得到了我想要的,xml对象
object(stdClass)#2 (2) {
  ["Headers"]=>
  object(stdClass)#3 (2) {
    ["Code"]=>
    int(0)
    ["Message"]=>
    string(7) "Message"
  }
  ["Item"]=>
  object(stdClass)#4 (9) {
    ["LocalID"]=>
    int(991)
    ["ItemID"]=>
    int(0)
    ["SItemID"]=>
    int(0)
    ["UOM"]=>
    string(3) "UOM"
    ["ItemName"]=>
    string(8) "ItemName"
    ["ItemDescription"]=>
    string(15) "ItemDescription"
    ["Local"]=>
    string(5) "Local"
    ["Synonyms"]=>
    object(stdClass)#5 (1) {
      ["Synonym"]=>
      object(stdClass)#6 (2) {
        ["SynonymValue"]=>
        string(12) "SynonymValue"
        ["Contractor"]=>
        int(0)
      }
    }
    ["Properites"]=>
    object(stdClass)#7 (1) {
      ["Property"]=>
      object(stdClass)#8 (2) {
        ["PropertyKey"]=>
        string(11) "PropertyKey"
        ["PropertyValue"]=>
        string(13) "PropertyValue"
      }
    }
  }
}
我对此请求的服务器方法:
public function GetItemData($parametersIn) {
    srand((double) microtime() * 1234567);
    $xml = 'XML'; // my response in xml
    $parametersOut = simplexml_load_string($xml);
    return $parametersOut;
}
为什么当我使用__doRequest时,我得到这个奇怪的字符串?我怎么能把它转换成数组或对象?     
已邀请:
您正在浏览器中查看“隐藏”XML标记的输出。使用页面上的“查看源代码”查看真正存在的内容。     
或者,“XML”不是xml,而是“XML”的事实如何。 这意味着simplexml_load_string()不会返回XML。     

要回复问题请先登录注册