How to setup custom api for Magento with SOAP V2?

后端 未结 3 958
孤街浪徒
孤街浪徒 2021-01-19 20:59

I am on Magento 1.4.1.1 and I am trying to setup a custom function in the API using SOAP v2. I have it working for SOAP v1 but I need v2 so that C# can use it. For v2 the fu

相关标签:
3条回答
  • 2021-01-19 21:37

    I has having the same issue and i tried clearing the tmp file as i had hosted it using xampp it didnt work i was getting Procedure ххх not present exception, I had to disable the cache management in the admin page of the server.
    How to disable Cache in Admin page
    In the admin page under the system there is a section called cache management disable everything during the development phase or else any change you do wont be reflected in the wsdl.

    0 讨论(0)
  • 2021-01-19 21:44

    bygrace,

    your code is so perfect!

    add

    ....
      <resources_alias>
          <test>test</test>
      </resources_alias>
    .....
    

    same level with

    <resources> and <v2>
    

    on Api.xml

    and it'll be working good.

    0 讨论(0)
  • 2021-01-19 21:46

    At first I should warn you that Magento doesn't support SOAP v2 format for now, api/v2_soap/?wsdl is just second version of soap api.

    1.

    <models>
        <test>
            <class>ABT_Test_Model</class>
        </test>
    </models>
    

    Because you are writing module which isn't core, you should write <abt_test>

    2.<model>test/api</model>. Should be <model>abt_test/api</model> in your case.

    3.<acl>test/foo</acl>.

    Does this acl section exist in your adminhtml.xml?

    0 讨论(0)
提交回复
热议问题