Take.API

<back to all web services

SearchVehicleRequest

根据ID查询车辆
SearchVehicleRequest Parameters:
NameParameterData TypeRequiredDescription
IDbodyintYes自增ID
SearchVehicleResponse Parameters:
NameParameterData TypeRequiredDescription
VehicleModelformVehicleModelYes详细信息
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformintYes返回编码,200之外的值都表示有错误
ErrorMsgformstringYes返回的消息
VehicleModel Parameters:
NameParameterData TypeRequiredDescription
IDformintYes自增ID
FleetIDformintYes车队ID
FleetNameformstringYes车队名称
BrandformstringYes车辆品牌
LicenseNumberformstringYes车牌号
TonnageNumberformfloatYes车辆最大装货吨位数
ContainerCubeformfloatYes车辆最大装货立方数
IsReceiptformintYes是否可接单(0:可以 1:不可以)
CreateByformstringYes创建人
CreateDTformDateTimeYes创建时间
UpdateByformstringYes修改人
UpdateDTformDateTime?Yes修改时间

To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap11 HTTP/1.1 
Host: bookinglogin.hart-worldwide.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: SearchVehicleRequest

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<SearchVehicleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinJo.Framing.DTO">
  <ID>0</ID>
</SearchVehicleRequest>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<SearchVehicleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinJo.Framing.DTO">
  <ErrorCode>0</ErrorCode>
  <ErrorMsg>String</ErrorMsg>
  <VehicleModel>
    <Brand>String</Brand>
    <ContainerCube>0</ContainerCube>
    <CreateBy>String</CreateBy>
    <CreateDT>0001-01-01T00:00:00</CreateDT>
    <FleetID>0</FleetID>
    <FleetName>String</FleetName>
    <ID>0</ID>
    <IsReceipt>0</IsReceipt>
    <LicenseNumber>String</LicenseNumber>
    <TonnageNumber>0</TonnageNumber>
    <UpdateBy>String</UpdateBy>
    <UpdateDT>0001-01-01T00:00:00</UpdateDT>
  </VehicleModel>
</SearchVehicleResponse>

    </soap:Body>
</soap:Envelope>