环境 | HTTP请求地址 |
---|---|
接口地址 | 请联系业务人员 |
名称 | 类型 | 是否必须 | 长度 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|---|
apiKey | String | Y | 64 | 货主ApiKey | ||
startDate | Date | Y | 开始时间 | |||
endDate | Date | 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 | 接口调用失败的原因 | ||
TransInfo数据集 | List | TransInfoList集合 | |
|
String apiKey="***************"; String startDate="2016-05-25 00:00:00"; String endDate="2016-05-29 00:00:00"; com.xld.client.RequestPager requestPager=new com.xld.client.RequestPager(); requestPager.setPageSize(1); requestPager.setPageSize(3); JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setServiceClass(com.xld.client.OrderWS.class); factory.setAddress("http://store.kjy.cn/ecscm/services/orderService?wsdl"); com.xld.client.OrderWS query =(com.xld.client.OrderWS) factory.create(); com.xld.client.TransInfoListResultresult=query.getTransInfoList( apiKey, startDate,endDate, requestPager);
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns1:getTransInfoListResponse xmlns:ns1="http://outservice.ws.xld.com/"> <return> <isSuccess>true</isSuccess> <errorCode>0</errorCode> <totalCount>4</totalCount> <pageSize>5</pageSize> <pageCount>1</pageCount> <pageNumber>1</pageNumber> <hasNext>false</hasNext> <transInfoList> <sourceId>lydh20160526001</sourceId> <waybillNo>yd20160526001</waybillNo> <carrier> <code>ZTKD</code> <name>中通快递ZTKD</name> </carrier> <weight>2.0</weight> <length>0.0</length> <width>0.0</width> <height>0.0</height> </transInfoList> <transInfoList> <sourceId>lydh20160519006</sourceId> <waybillNo>20160519006</waybillNo> <carrier> <code>EMS</code> <name>ems</name> </carrier> <weight>2.0</weight> <length>0.0</length> <width>0.0</width> <height>0.0</height> </transInfoList> <transInfoList> <sourceId>1438</sourceId> <waybillNo>1438</waybillNo> <carrier> <code>JKEMS</code> <name>进口EMS</name> </carrier> <weight>2.0</weight> <length>0.0</length> <width>0.0</width> <height>0.0</height> </transInfoList> <transInfoList> <sourceId>1431</sourceId> <waybillNo>1431</waybillNo> <carrier> <code>JKEMS</code> <name>进口EMS</name> </carrier> <weight>2.0</weight> <length>0.0</length> <width>0.0</width> <height>0.0</height> </transInfoList> </return> </ns1:getTransInfoListResponse> </soap:Body> </soap:Envelope>