getTransInfo (获取运单信息)

请求地址

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

请求参数

名称 类型 是否必须 长度 示例值 更多限制 描述
apiKey String Y 64 货主ApiKey
source String Y 2 来源
sourceId Date Y 来源单号

响应参数

名称 类型 关联数据结构 描述
sourceId String 来源单号
waybillNo int 运单号
carrier int 承运商
weight int 重量(单位:公斤)
length int 包裹长(单位:米)
width int 包裹宽(单位:米)
height int 包裹高(单位:米)

请求示例

  • JAVA
  • .NET
    String apiKey="*******************";
	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.TransInfo result=query.getTransInfo(apiKey, 
   "01", "lydh20160526001");

响应示例

  • XML示例
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns1:getTransInfoResponse xmlns:ns1="http://outservice.ws.xld.com/">
         <return>
            <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>
         </return>
      </ns1:getTransInfoResponse>
   </soap:Body>
</soap:Envelope>

DEMO下载