我已经接到了几个电话,但是对于我的生活,我无法弄清楚如何product_attribute.create工作。我总是得到一个102 Invalid request parametersor 623 Wrong Method Signature。
像这样进行调用my $res = $self->_useragent->call( call => $self->_session, @{$payload} );(注意:useragent 是一个XML::RPC对象。
这个Dumper $payload;
 $VAR1 = [
      'product_attribute.create',
      [
        'test',
        {
          'frontend_label' => [
                                {
                                  'label' => 'Test ME',
                                  'store_id' => 0
                                }
                              ],
          'scope' => 'store',
          'frontend_input' => 'text'
        }
      ]
    ];
我已经阅读了API 文档,但要弄清楚 Perl 中的调用应该是什么样子是很棘手的。