I've got a question. I am changing the following function from the Magento API V2: catalogProductAttributeSetAttributeAdd().

In the WSDL I defined I want the ID back, and not a boolean.

My problem is: I have to change core templates: app/code/core/Mage/Catalog/etc/wsdl.xml like this:

<!-- <message name="catalogProductAttributeSetAttributeAddResponse"> <part name="isAdded" type="xsd:boolean" /> </message> -->

but I don't want to do that.

How can I overwrite this line in the wsdl.xml? My new WSDL looks like:

<message name="catalogProductAttributeSetAttributeAddResponse">
    <part name="attributeId" type="xsd:int" />

1 Answer 1


If I well remember all wsdl files are merged into one big, so you can create a wdsl.xml in your custom module and override the needed node(s) keeping the same name(s). Tell me if it works :)

  • Yes, that's correct. It will merge the XMLs together. But when I use the same name, it just turns up twice in the wsdl.xml...
    – Refilon
    Dec 23, 2015 at 8:23
  • Ah ok I think it's because the "attributeId" parameter doesn't have the same name, so the merge doesn't replace the "isAdded" parameter but it actually add it. If you want the method 'catalogProductAttributeSetAttributeAdd' to return only the attributeId, you'll have to create a whole new API method... A wiki is avaible here : wiki.magento.com/display/m1wiki/…. Dec 23, 2015 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.