我试图添加下面给出的Soap Request
<ActualQuatity unitCode="EA">1<ActualQuantity>
下面使用Ksoap2库给出Java代码
SoapObject materialOutput = new SoapObject();
materialOutput.addProperty("ActualQuantity",actualQuant)
.addAttribute("unitCode","EA");
请求转储如下所示
SiteLogisticsTaskBundleMaintainRequest_sync_V1{SiteLogisticsTask={SiteLogisticTaskID=23; SiteLogisticTaskUUID=00163e70-e0aa-1ed8-b4b9-7262ee6d2bf8; ReferenceObject={ReferenceObjectUUID=00163e70-e0aa-1ed8-b4b9-7262ee6d4bf8; OperationActivity={OperationActivityUUID=00163e70-e0aa-1ed8-b4b9-7262ee6babf8; MaterialOutput={LineItemID=1; MaterialOutputUUID=00163e70-e0aa-1ed8-b4b9-7262ee6c0bf8; ProductID=1000004; TargetLogisticsAreaID=2100-100-101; ActualQuantity=2; ClearIdentifiedStockIDIndicator=false; }; }; }; }; BasicMessageHeader={MESSAGE=; }; }
在请求中,哑巴无法使用属性unitCode =“ EA”