SOAP response to XML with SimpleXML

前端 未结 2 1331
渐次进展
渐次进展 2021-01-13 20:05

I am trying to convert a SOAP response to XML.

SOAP has an envelop and a body



        
相关标签:
2条回答
  • 2021-01-13 20:28

    SimpleXML requires special treatment for namespaced XML (ref.)

    0 讨论(0)
  • 2021-01-13 20:29

    A SOAP message is already XML. The problem is that it has namespaces so you have to access it differently. (The part before the colon is the identifier for the namespace.)

    Here (google cached copy) is an example of using namespaces with SimpleXML.
    Here is a specific example for reading SOAP messages.

    0 讨论(0)
提交回复
热议问题