SoapVar/Param and nested, repeated elements in SOAP

后端 未结 2 539
后悔当初
后悔当初 2020-12-06 19:21

My goal is to be able to create a soap request that can contain items like so:


  
    IAG Group
           


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 20:07

    I ran into the BOGUS tag problem also. My solution involved using an ArrayObject in place of array primitives. The objects are all then converted to SoapVar objects. It seems the soap library really wants to deal with objects everywhere. I have a more complete writeup here:

    http://www.fischco.org/blog/2011/3/26/php-soapserver-objects-arrays-and-encoding.html

提交回复
热议问题