如何为sales_order.info扩展Magento API


How can I extend Magento API for sales_order.info

我正在使用Magento APIv1获取销售订单信息。
但现在我想包括一些添加到DB表sales_flat_order中的额外字段。
在网上搜索得到了一些可以修改API的提示,但我并没有取得真正的成功
我可以在app/code/core/Mage/Sales/etc/API.xml 文件中找到API描述

...
<info translate="title" module="sales">
    <title>Retrieve order information</title>
    <acl>sales/order/info</acl>
</info>
 ...

但我找不到收集订单信息并将其绑定在一起的php文件
也许对Magento更有经验的人可以告诉我要编辑哪个文件来添加我的自定义字段

提前感谢您的帮助。

类似的问题:https://magento.stackexchange.com/questions/1330/where-do-you-put-modified-wsdl-files-for-the-api-to-override-the-core-definition/1331#1331

它建议将属性添加到wsdl.xml:

    <definitions...>
        <types>
            <schema ...>
                <complexType name="catalogProductEntity">
                    <all>
                        <element name="custom_attribute" type="xsd:string"/>
                    </all>
                </complexType>
            </schema>
        </types>
    </definitions>