【发布时间】:2011-09-22 11:52:44
【问题描述】:
我想转换一个soap xml 响应并将其存储在数据库中。这是我拥有的 XML。
<ENV:Envelope xmlns:ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://example.com/soap/example">
<ENV:Body>
<ns1:GetCentresResponse>
<ExampleCentre>
<ns1:Cent>
<ID>200</ID>
<Name>example2</Name>
<Code>ex2</Code>
<Email>example2@example2.com</Email>
<Address1>example2, example2 </Address1>
<Address2>example2, example2 </Address2>
<City>example2</City>
<PostCode>111111</PostCode>
<Telephone>1111111111</Telephone>
<Location>11.11,-11.11</Location>
<URL>/example2/exam2/ex2</URL>
</ns1:Cent>
</ExampleCentre>
</ns1:GetCentresResponse>
</ENV:Body>
</ENV:Envelope>
我从服务器得到这个肥皂响应。我想将其转换为数组并将其存储在数据库中。我应该怎么办?我知道答案可能很简单,但是嘿,我是新手 :D
非常感谢我得到的任何帮助。
谢谢你的期待。
问候
【问题讨论】:
标签: php xml arrays parsing soap