PT.Api

<back to all web services

QuerySettings

QuerySettings Parameters:
NameParameterData TypeRequiredDescription
ClientAppbodystringNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintNoVersion. Ex: 1,2,3,...
QuerySettingsResponse Parameters:
NameParameterData TypeRequiredDescription
DataformSettingsNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusformintNoResponse status. Ex: 1 - Success; 0 - Error
MessageformstringNoResponse message
Settings Parameters:
NameParameterData TypeRequiredDescription
VersionformintNo
MaxBookSeatformintNo
ValidStartHourOffsetformintNo
ValidStartDateOffsetformintNo
ValidStartDateformDateTimeNo
ValidEndDateformDateTimeNo
RouteCodeformList<RouteCode>No
BanksformList<tbl_Bank>No
MinChargeMoneyformintNo
FavouriteRouteformList<tbl_Route>No
PaymentTypesformList<tbl_PaymentType>No
GatewayformList<GatewaySetting>No
MetaformstringNo
SpecialDeparturesformList<SpecialDeparture>No
RouteCode Parameters:
NameParameterData TypeRequiredDescription
OriginCodeformstringNo
OriginNameformstringNo
DestCodeformstringNo
DestNameformstringNo
tbl_Bank Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
BankTypeformstringNo
tbl_Route Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TypeformintNo
CodeformstringNo
NameformstringNo
OriginCodeformstringNo
OriginNameformstringNo
DestCodeformstringNo
DestNameformstringNo
DistanceformintNo
DurationformintNo
KindformstringNo
TotalScheduleformintNo
tbl_PaymentType Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
DescriptionformstringNo
PriorityformintNo
GatewaySetting Parameters:
NameParameterData TypeRequiredDescription
TypeformintNo
GatewayCodeformstringNo
GatewayNameformstringNo
OrderNumformintNo
PaymentTypeCodeformstringNo
PaymentTypeNameformstringNo
FromTimeformstringNo
ToTimeformstringNo
CodeformstringNo
NameformstringNo
CssClassformstringNo
SpecialDeparture Parameters:
NameParameterData TypeRequiredDescription
RouteIdformintNo
NameformstringNo
FromCodeformstringNo
ToCodeformstringNo
ValidStartDateformDateTimeNo
ValidEndDateformDateTimeNo
MaxBookSeatformintNo

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: api2.futabus.vn 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: QuerySettings

<?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>

<QuerySettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel">
  <Version xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Version>
  <ClientApp>String</ClientApp>
</QuerySettings>

    </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>

<QuerySettingsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types">
  <Message xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">String</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Status>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types.Support">
    <d2p1:Banks xmlns:d3p1="http://schemas.datacontract.org/2004/07/PT.Api.Model">
      <d3p1:tbl_Bank>
        <d3p1:BankType>String</d3p1:BankType>
        <d3p1:Code>String</d3p1:Code>
        <d3p1:Name>String</d3p1:Name>
      </d3p1:tbl_Bank>
    </d2p1:Banks>
    <d2p1:FavouriteRoute xmlns:d3p1="http://schemas.datacontract.org/2004/07/PT.Api.Model">
      <d3p1:tbl_Route>
        <d3p1:Code>String</d3p1:Code>
        <d3p1:DestCode>String</d3p1:DestCode>
        <d3p1:DestName>String</d3p1:DestName>
        <d3p1:Distance>0</d3p1:Distance>
        <d3p1:Duration>0</d3p1:Duration>
        <d3p1:Id>0</d3p1:Id>
        <d3p1:Kind>String</d3p1:Kind>
        <d3p1:Name>String</d3p1:Name>
        <d3p1:OriginCode>String</d3p1:OriginCode>
        <d3p1:OriginName>String</d3p1:OriginName>
        <d3p1:TotalSchedule>0</d3p1:TotalSchedule>
        <d3p1:Type>0</d3p1:Type>
      </d3p1:tbl_Route>
    </d2p1:FavouriteRoute>
    <d2p1:Gateway>
      <GatewaySetting>
        <Code>String</Code>
        <CssClass>String</CssClass>
        <FromTime>String</FromTime>
        <GatewayCode>String</GatewayCode>
        <GatewayName>String</GatewayName>
        <Name>String</Name>
        <OrderNum>0</OrderNum>
        <PaymentTypeCode>String</PaymentTypeCode>
        <PaymentTypeName>String</PaymentTypeName>
        <ToTime>String</ToTime>
        <Type>0</Type>
      </GatewaySetting>
    </d2p1:Gateway>
    <d2p1:MaxBookSeat>0</d2p1:MaxBookSeat>
    <d2p1:Meta>String</d2p1:Meta>
    <d2p1:MinChargeMoney>0</d2p1:MinChargeMoney>
    <d2p1:PaymentTypes xmlns:d3p1="http://schemas.datacontract.org/2004/07/PT.Api.Model">
      <d3p1:tbl_PaymentType>
        <d3p1:Code>String</d3p1:Code>
        <d3p1:Description>String</d3p1:Description>
        <d3p1:Name>String</d3p1:Name>
        <d3p1:Priority>0</d3p1:Priority>
      </d3p1:tbl_PaymentType>
    </d2p1:PaymentTypes>
    <d2p1:RouteCode xmlns:d3p1="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types.Schedules">
      <d3p1:RouteCode>
        <d3p1:DestCode>String</d3p1:DestCode>
        <d3p1:DestName>String</d3p1:DestName>
        <d3p1:OriginCode>String</d3p1:OriginCode>
        <d3p1:OriginName>String</d3p1:OriginName>
      </d3p1:RouteCode>
    </d2p1:RouteCode>
    <d2p1:SpecialDepartures>
      <d2p1:SpecialDeparture>
        <d2p1:FromCode>String</d2p1:FromCode>
        <d2p1:MaxBookSeat>0</d2p1:MaxBookSeat>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:RouteId>0</d2p1:RouteId>
        <d2p1:ToCode>String</d2p1:ToCode>
        <d2p1:ValidEndDate>0001-01-01T00:00:00</d2p1:ValidEndDate>
        <d2p1:ValidStartDate>0001-01-01T00:00:00</d2p1:ValidStartDate>
      </d2p1:SpecialDeparture>
    </d2p1:SpecialDepartures>
    <d2p1:ValidEndDate>0001-01-01T00:00:00</d2p1:ValidEndDate>
    <d2p1:ValidStartDate>0001-01-01T00:00:00</d2p1:ValidStartDate>
    <d2p1:ValidStartDateOffset>0</d2p1:ValidStartDateOffset>
    <d2p1:ValidStartHourOffset>0</d2p1:ValidStartHourOffset>
    <d2p1:Version>0</d2p1:Version>
  </Data>
</QuerySettingsResponse>

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