军刀车新书API 增强型VehBookRQ

sabre car new bookAPI EnhancedVehBookRQ

提问人:Sanman Chavan 提问时间:8/20/2021 最后编辑:General GrievanceSanman Chavan 更新时间:2/4/2022 访问量:63

问:

我尝试使用 CERT ENV 调用 EnhancedVehBookRQ API 这是我的要求和回应

请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sec="http://schemas.xmlsoap.org/ws/2002/12/secext" >
        <soapenv:Header>
            <Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext">
                <BinarySecurityToken>
                token
                </BinarySecurityToken>
            </Security>
            <MessageHeader xmlns="http://www.ebxml.org/namespaces/messageHeader">
                <From>
                    <PartyId type="urn:x12.org:IO5:01">from</PartyId>
                </From>
                <To>
                    <PartyId type="urn:x12.org:IO5:01">to</PartyId>
                </To>
                <CPAId>hiddendata
                </CPAId>
                <ConversationId>hiddendata</ConversationId>
                <Action>EnhancedVehBookRQ</Action>
                <MessageData>
                    <MessageId>1001</MessageId>
                    <Timestamp>2021-08-18T10:00:01</Timestamp>
                    <!--Optional:-->
                    <TimeToLive>2021-08-19T10:00:01</TimeToLive>
                    <!--Optional:-->
                    <Timeout>0</Timeout>
                </MessageData>
            </MessageHeader>
        </soapenv:Header>
        <soapenv:Body>
            <EnhancedVehBookRQ xmlns="http://services.sabre.com/sp/enhanced/veh/book/v1" version="1.0.0">
                <VehBook>
                    <BookingInfo >
                        <BookingKey>23accd05-4770-4d1c-a286-ab0e6f360fc5
                    </BookingKey>
                    </BookingInfo>
                    <Customer NameNumber="1.1">
                        <Address>
                            <CityName>DALLAS</CityName>
                            <CountryCode>US</CountryCode>
                            <PostalCode>12345</PostalCode>
                            <StateCountyProv StateCode="TX" />
                            <StreetNmbr>1234 TEST ADDRESS</StreetNmbr>
                        </Address>
                    </Customer>
                    <RentalPaymentPrefs>
                        <GuaranteePrepaid Type="GUARANTEE">
                            <PaymentCard>
                                <CardCode>DC</CardCode>
                                <CardNumber>311234567685619</CardNumber>
                                <ExpiryMonth>12</ExpiryMonth>
                                <ExpiryYear>2022</ExpiryYear>
                                <FullCardHolderName>
                                    <LastName>Monster</LastName>
                                </FullCardHolderName>
                            </PaymentCard>
                        </GuaranteePrepaid>
                    </RentalPaymentPrefs>
                    <VehRentalCore Quantity="1" />
                </VehBook>
            </EnhancedVehBookRQ>
        </soapenv:Body>
    </soapenv:Envelope>

我无法继续预订汽车,遇到这样的错误

<Message code="ERR.SP.INTERNAL_ERROR">TravelItineraryReadRQ: After maximum retry count it was not possible to successfully execute target service</Message>

任何人都可以确认SOAP要求是否正确,或者我这边遗漏了一些东西

肥皂 马刀

评论


答:

1赞 CodyM 2/4/2022 #1

是的,在运行 EnhancedVehBookRQ API 之前,您需要运行带有 TravelIntinerary 详细信息的 PassengerDetailsRQ。此 API 成功后,请使用此 API 请求的响应详细信息,然后运行它