You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Magento 1.9 wsdl.xml the type "typens:associativeArray" is definend like this: <complexType name="associativeEntity"> <all> <element name="key" type="xsd:string"/> <element name="value" type="xsd:string"/> </all> </complexType> <complexType name="associativeArray"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:associativeEntity[]"/> </restriction> </complexContent> </complexType>
So a "associativeArray" has to contain the keys "key" & "value" and this is incompatible with the data-structure the code requires: 'price_changes' => array( array( 'color' => array( 'Red' => '2', 'Blue' => '-10%', ), 'size' => array( 'Large' => '+1', 'Medium' => '-3', ), ), ),
I'am not an expert in WSDL but I think this calls for a new type definition?
An alternative Fix I did quick and dirty is to change the type of "price_changes" to "xsd:string" and do json_encode / serialize before calling the function with the soapclient and then in the api there needs to be the equivalent json_decode / unserialize.
Does anyone still maintain this extension ? Do you accept pull request ? Or is there another way to do this (create and associate configurable products), that i'am not aware of ?
The text was updated successfully, but these errors were encountered:
In the Magento 1.9 wsdl.xml the type "typens:associativeArray" is definend like this:
<complexType name="associativeEntity"> <all> <element name="key" type="xsd:string"/> <element name="value" type="xsd:string"/> </all> </complexType> <complexType name="associativeArray"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:associativeEntity[]"/> </restriction> </complexContent> </complexType>
So a "associativeArray" has to contain the keys "key" & "value" and this is incompatible with the data-structure the code requires:
'price_changes' => array( array( 'color' => array( 'Red' => '2', 'Blue' => '-10%', ), 'size' => array( 'Large' => '+1', 'Medium' => '-3', ), ), ),
I'am not an expert in WSDL but I think this calls for a new type definition?
An alternative Fix I did quick and dirty is to change the type of "price_changes" to "xsd:string" and do json_encode / serialize before calling the function with the soapclient and then in the api there needs to be the equivalent json_decode / unserialize.
Does anyone still maintain this extension ? Do you accept pull request ? Or is there another way to do this (create and associate configurable products), that i'am not aware of ?
The text was updated successfully, but these errors were encountered: