小编Shi*_*har的帖子

如何在一个soap对象中添加两个数组以便在magento中计费和发送地址?

我正在使用magento soap api添加运费和账单地址

"SoapObject item1 = new SoapObject(NAMESPACE,"shoppingCartCustomerAddressEntity");

          PropertyInfo pinfo = new PropertyInfo();
          pinfo.setName("mode");
          pinfo.setValue("shipping");
          pinfo.setType(String.class);
         item1.addProperty(pinfo);

          pinfo = new PropertyInfo();
          pinfo.setName("firstname");
          pinfo.setValue(firstname1);
          pinfo.setType(String.class);
          item1.addProperty(pinfo);



          pinfo = new PropertyInfo();
          pinfo.setName("lastname");
          pinfo.setValue(lastname1);
          pinfo.setType(String.class);
          item1.addProperty(pinfo);


          pinfo = new PropertyInfo();
          pinfo.setName("company");
          pinfo.setValue(company1);
          pinfo.setType(String.class);
          item1.addProperty(pinfo);



          pinfo = new PropertyInfo();
          pinfo.setName("street");
          pinfo.setValue(street1);
          pinfo.setType(String.class);
          item1.addProperty(pinfo);



          pinfo = new PropertyInfo();
          pinfo.setName("city");
          pinfo.setValue(city1);
          pinfo.setType(String.class);
          item1.addProperty(pinfo);



          pinfo = new PropertyInfo();
          pinfo.setName("region");
          pinfo.setValue(region1);
          pinfo.setType(String.class);
          item1.addProperty(pinfo);



          pinfo = new PropertyInfo();
          pinfo.setName("postcode");
          pinfo.setValue(postcode1);
          pinfo.setType(String.class);
          item1.addProperty(pinfo);



          pinfo = new PropertyInfo();
          pinfo.setName("country_id");
          pinfo.setValue(country1);
          pinfo.setType(String.class); …
Run Code Online (Sandbox Code Playgroud)

api soap web-services magento

11
推荐指数
1
解决办法
380
查看次数

标签 统计

api ×1

magento ×1

soap ×1

web-services ×1