I'm having trouble getting the following piece of a SOAP request to work correctly. This is for use with the eBay API (WSDL). Here's the relevant section:
$item['AttributeSetArray'] = array(
'AttributeSet' => array(
array(
'_' => array(
'Attribute' => array(
array(
'_' => array(
'Value' => array(
array(
'ValueLiteral' => 'ABC',
'ValueID' => 789
)
)
),
'attributeID' => 456
)
)
),
'attributeSetID' => 123
)
)
);
And here is the relevant section of the resulting SOAP request:
<ns1:AttributeSetArray>
<ns1:AttributeSet attributeSetID="123"/>
</ns1:AttributeSetArray>
Any ideas what might be causing this? I can't find any good documentation on how to build out attributes other than the comment left in the PHP docs.