getInventoryList (获取货主库存列表)

请求地址

环境 HTTP请求地址
接口地址 请联系业务人员

请求参数

名称 类型 是否必须 长度 示例值 更多限制 描述
apiKey List Y 来源单号集合
pageNumber Int Y 11 当前页码
pageSize Int Y 11 每页的记录数

响应参数

名称 类型 关联数据结构 描述
isSuccess String 接口调用是否成功
errorCode int 错误代码
totalCount int 出库数量
pageSize int 每页记录数
pageCount int 总页数
pageNumber int 当前页码
hasNext int 还有下一记录,true代表有,false无
msg 接口调用失败的原因
InventoryList List InventoryList集合
  • └ id
  • String
  • ID
  • └ barcode
  • String
  • 条码号
  • └ warehouseCode
  • String
  • 仓库代码
  • └ warehouseName
  • String
  • 仓库名称
  • └ productCode
  • String
  • 货号
  • └ productName
  • String
  • 货品名称
  • └ stockStatus
  • String
  • 实物类别
  • └ qty
  • Int
  • 数量
  • └ lockedQty
  • Int
  • 锁定数量
  • └ availableQty
  • Int
  • 可用数量

请求示例

  • JAVA
  • .NET
    String apiKey="*****************";
    com.xld2.client.RequestPager requestPager=
    new com.xld2.client.RequestPager();
	List list=new ArrayList();
	list.add(1);
	requestPager.setPageNumber(list);
	requestPager.setPageSize(5);
	JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
    factory.setServiceClass(com.xld2.client.InventoryWS.class);
    factory.setAddress("http://store.kjy.cn/ecscm/services/inventoryService?wsdl");
    com.xld2.client.InventoryWS query=(com.xld2.client.InventoryWS) factory.create();
    com.xld2.client.InventoryListResult
    lists=query.getInventoryList(apiKey, requestPager);

响应示例

  • XML示例
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns1:getInventoryListResponse xmlns:ns1="http://outservice.ws.xld.com/">
         <return>
            <isSuccess>true</isSuccess>
            <errorCode>0</errorCode>
            <totalCount>100</totalCount>
            <pageSize>5</pageSize>
            <pageCount>20</pageCount>
            <pageNumber>1</pageNumber>
            <hasNext>true</hasNext>
            <inventoryList>
               <id>0f0f21c1ae334b87be9c80e9b23319ab</id>
               <barcode>20150814004</barcode>
               <warehouseCode>testck</warehouseCode>
               <warehouseName>测试仓</warehouseName>
               <productCode>Aqita</productCode>
               <productName>A其他A</productName>
               <stockStatus>03</stockStatus>
               <qty>0</qty>
               <lockedQty>0</lockedQty>
               <availableQty>0</availableQty>
            </inventoryList>
            <inventoryList>
               <id>f440c1c329bc49e1827916b730b9b409</id>
               <barcode>20150814003</barcode>
               <warehouseCode>testck</warehouseCode>
               <warehouseName>测试仓</warehouseName>
               <productCode>Alalaku</productCode>
               <productName>A拉拉裤</productName>
               <stockStatus>04</stockStatus>
               <qty>0</qty>
               <lockedQty>0</lockedQty>
               <availableQty>0</availableQty>
            </inventoryList>
            <inventoryList>
               <id>6266c49928944befbd66c24121363880</id>
               <barcode>20150814003</barcode>
               <warehouseCode>testck</warehouseCode>
               <warehouseName>测试仓</warehouseName>
               <productCode>Alalaku</productCode>
               <productName>A拉拉裤</productName>
               <stockStatus/>
               <qty>198</qty>
               <lockedQty>0</lockedQty>
               <availableQty>198</availableQty>
            </inventoryList>
            <inventoryList>
               <id>5b5f5330d9564db59098e2d194e78d58</id>
               <barcode>20150814004</barcode>
               <warehouseCode>testck</warehouseCode>
               <warehouseName>测试仓</warehouseName>
               <productCode>Aqita</productCode>
               <productName>A其他A</productName>
               <stockStatus>08</stockStatus>
               <qty>1</qty>
               <lockedQty>0</lockedQty>
               <availableQty>1</availableQty>
            </inventoryList>
            <inventoryList>
               <id>7b627f56875e405bbc3d6635d421dca6</id>
               <barcode>20150814004</barcode>
               <warehouseCode>testck</warehouseCode>
               <warehouseName>测试仓</warehouseName>
               <productCode>Aqita</productCode>
               <productName>A其他A</productName>
               <stockStatus>04</stockStatus>
               <qty>1</qty>
               <lockedQty>0</lockedQty>
               <availableQty>1</availableQty>
            </inventoryList>
         </return>
      </ns1:getInventoryListResponse>
   </soap:Body>
</soap:Envelope>

DEMO下载