我的PHP有问题 - Microsoft AX集成 . 我正在使用SOAP / WSDL与服务集成,我遇到的问题是我从PHP向WSDL发送请求后出现此错误

“无效的实例类型名称'ns3:AxdEntity_DirParty_DirOrganization”

发送的部分XML会导致此问题

<ns3:DirParty class =“entity”xsi:type =“ns3:AxdEntity_DirParty_DirOrganization”

和我的肥皂环

SOAP-ENV:Envelope xmlns:SOAP-ENV =“http://schemas.xmlsoap.org/soap/envelope/”xmlns:ns1 =“http://schemas.microsoft.com/dynamics/2006/02/documents / EntityKey“xmlns:ns2 =”http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList“xmlns:xsi =”http://www.w3.org/2001/XMLSchema-instance“xmlns :ns3 =“http://schemas.microsoft.com/dynamics/2008/01/documents/Customer”xmlns:ns4 =“http://schemas.microsoft.com/dynamics/2008/01/sharedtypes”xmlns:ns5 =“http://schemas.microsoft.com/dynamics/2008/01/services”xmlns:ns6 =“http://schemas.microsoft.com/dynamics/2010/01/datacontracts”>

正如您所看到的,PHP和它的soap客户端已经将所有命名空间别名,我需要它们内联,就像这样

<DirParty xsi:type =“AxdEntity_DirParty_DirOrganization”class =“entity”action =“update”xmlns:xsi =“http://www.w3.org/2001/XMLSchema-instance”>

如何在PHP soap客户端中禁用命名空间别名?