Php 易趣交易API:通过SOAP传递同名元素

Php 易趣交易API:通过SOAP传递同名元素,php,soap,ebay-api,Php,Soap,Ebay Api,我需要通过SOAP传递多个nameValueList,但我不知道如何包含它们的数据 它应该是这样的: <Variations> <VariationSpecificsSet> <NameValueList> <Name>Size</Name> <Value>XL</Value> </NameValueList>

我需要通过SOAP传递多个
nameValueList
,但我不知道如何包含它们的数据

它应该是这样的:

<Variations>
      <VariationSpecificsSet>
        <NameValueList>
          <Name>Size</Name>
          <Value>XL</Value>
        </NameValueList>
        <NameValueList>
          <Name>Color</Name>
          <Value>Black</Value>
        </NameValueList>
    </VariationSpecificsSet>
</Variations>
调试
$params
的输出:

[Variations] => ArrayObject Object
    (
        [VariationSpecificsSet] => ArrayObject Object
            (
                [NameValueList] => Array
                    (
                        [0] => ArrayObject Object
                            (
                                [name] => title
                                [value] => value
                                [storage:ArrayObject:private] => Array
                                    (
                                    )

                            )

                        [1] => ArrayObject Object
                            (
                                [name] => title
                                [value] => value
                                [storage:ArrayObject:private] => Array
                                    (
                                    )

                            )

                        [2] => ArrayObject Object
                            (
                                [name] => title
                                [value] => value
                                [storage:ArrayObject:private] => Array
                                    (
                                    )

                            )

                    )

                [storage:ArrayObject:private] => Array
                    (
                    )

            )

        [storage:ArrayObject:private] => Array
            (
            )

    )
结果请求:
nameValueList

<ns1:Variations>
    <ns1:VariationSpecificsSet>
        <ns1:NameValueList/>
        <ns1:NameValueList/>
        <ns1:NameValueList/>
    </ns1:VariationSpecificsSet>
</ns1:Variations>

如何将数据正确地放入
名称值列表
?调试输出对我来说似乎很好,但它不会显示在XML中。我不可能是第一个

编辑:我在上发现了一个问题,它准确地描述了我的问题:
我在问这个问题之前尝试过这种方法,但它仍然不适合我。我猜,这与eBay wsdl有关,但我不知道到底是什么原因导致
$list->name
$list->value
缺少大写字母。希望这对其他人有帮助。grrr

<ns1:Variations>
    <ns1:VariationSpecificsSet>
        <ns1:NameValueList/>
        <ns1:NameValueList/>
        <ns1:NameValueList/>
    </ns1:VariationSpecificsSet>
</ns1:Variations>