Android:Magento - 客户密码未更新

时间:2014-08-27 06:01:04

标签: android magento ksoap2 android-ksoap2

我正在创建一个使用Magento Api解析数据的购物应用。我想使用api更新客户信息(名字,姓氏,电子邮件ID,密码)。我使用以下代码更改信息

..
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
..
..
SoapObject customerEntity = new SoapObject(NAMESPACE, "customerCustomerEntityToCreate");
            customerEntity.addProperty("customerId",customerId);
            customerEntity.addProperty("email", email);
            customerEntity.addProperty("firstname", fname);
            customerEntity.addProperty("lastname", lname);
            customerEntity.addProperty("website_id", 1);
            customerEntity.addProperty("store_id", 1);
            customerEntity.addProperty("group_id",1);
            customerEntity.addProperty("password", strings[5]);
            SoapObject request = new SoapObject(NAMESPACE, "customerCustomerUpdate");
            request.addProperty("sessionId", envelope.getResponse().toString());
            request.addProperty("customerId", customerId);
            request.addProperty("customerData", customerEntity);

            envelope.setOutputSoapObject(request);
            HttpTransportSE transportSE = new HttpTransportSE(URL);
            transportSE.debug = true;
            transportSE.call("", envelope);

以上代码返回true并更新名字,姓氏和电子邮件ID但不更新密码。我们是否必须做一些特殊的更新密码?

0 个答案:

没有答案