CVC-elt.1.a:找不到元素的声明“OTA_AirLowFareSearchRQ” [英] cvc-elt.1.a: Cannot find the declaration of element 'OTA_AirLowFareSearchRQ'

查看:723
本文介绍了CVC-elt.1.a:找不到元素的声明“OTA_AirLowFareSearchRQ”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在用的佩剑GDS API。 GDS上的每一个请求需要会话,这样,我已经开发了会议,但是当我打电话逢低查找最大备用日期API然后我收到以下错误。我非常坚持它,事情会到我的头上。请帮我在这,我真的很感谢你们。

I am using the Sabre GDS API. Every request on GDS needs Session so that i have developed the session but when i call the Bargain Finder Max Alternate Date API then i am getting the following error. I am badly stuck on it and things are going over to my head. Please help me on this and i am really grateful to you guys.

以下是要求:

<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.somesite.org/schemas Schema.xsd">
    <SOAP-ENV:Header>
        <m:MessageHeader xmlns:m="http://www.ebxml.org/namespaces/messageHeader">
            <m:From>
                <m:PartyId type="urn:x12.org:IO5:01">webservices.sabre.com</m:PartyId>
            </m:From>
            <m:To>
                <m:PartyId type="urn:x12.org:IO5:01">SWSSession</m:PartyId>
            </m:To>
            <m:CPAId>X2TH</m:CPAId>
            <m:ConversationId>MyConversationID</m:ConversationId>
            <m:Service m:type="sabreXML" />
            <m:Action>BargainFinderMax_ADRQ</m:Action>
            <m:MessageData>
                <m:MessageId>2afbf3e7-8de6-4397-9fcb-8c9b01624131@61</m:MessageId>
                <m:Timestamp>2015-10-13T12:18:05</m:Timestamp>
                <m:TimeToLive>2015-10-14T12:18:05</m:TimeToLive>
            </m:MessageData>
        </m:MessageHeader>
        <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
            <wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" valueType="String">Token Here</wsse:BinarySecurityToken>
        </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <OTA_AirLowFareSearchRQ Version="1.9.0" ResponseType="OTA" ResponseVersion="1.9.0">
            <POS>
                <Source PseudoCityCode="XXXX">
                    <RequestorID ID="1" Type="1">
                        <CompanyName Code="TN">TN</CompanyName>
                    </RequestorID>
                </Source>
            </POS>
            <OriginDestinationInformation>
                <DepartureDateTime>2015-10-25T20:06:25</DepartureDateTime>
                <OriginLocation LocationCode="LHE" />
                <DestinationLocation LocationCode="LHR" />
                <TPA_Extensions>
                    <ConnectionTime Max="0" />
                </TPA_Extensions>
            </OriginDestinationInformation>
            <OriginDestinationInformation>
                <DepartureDateTime>2015-10-25T20:06:25</DepartureDateTime>
                <OriginLocation LocationCode="LHR" />
                <DestinationLocation LocationCode="LHE" />
                <TPA_Extensions>
                    <ConnectionTime Max="0" />
                </TPA_Extensions>
            </OriginDestinationInformation>
            <TravelPreferences ValidInterlineTicket="true">
                <TPA_Extensions>
                    <InterlineIndicator Ind="true" />
                </TPA_Extensions>
            </TravelPreferences>
            <TravelerInfoSummary>
                <AirTravelerAvail>
                    <PassengerTypeQuantity Code="ADT" Quantity="1" /></AirTravelerAvail>
                <PriceRequestInformation CurrencyCode="PKR">
                    <TPA_Extensions>
                        <Priority>
                            <Price Priority="1" />
                            <DirectFlights Priority="2" />
                            <Time Priority="3" />
                            <Vendor Priority="4" />
                        </Priority>
                    </TPA_Extensions>
                </PriceRequestInformation>
            </TravelerInfoSummary>
            <TPA_Extensions>
                <IntelliSellTransaction>
                    <RequestType Name="AD3" />
                </IntelliSellTransaction>
            </TPA_Extensions>
        </OTA_AirLowFareSearchRQ>
    </SOAP-ENV:Body> </SOAP-ENV:Envelope>

这是我从API得到响应。请帮我在哪里,我错了。我使用PHP和SOAP。

And here is the response which i am getting from the API. Please Help me where i am going wrong. I am using the PHP with SOAP.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
        <eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" SOAP-ENV:mustUnderstand="1" eb:version="2.0">
            <eb:From>
                <eb:PartyId>SWSSession</eb:PartyId>
            </eb:From>
            <eb:To>
                <eb:PartyId>webservices.sabre.com</eb:PartyId>
            </eb:To>
            <eb:CPAId>X2TH</eb:CPAId>
            <eb:ConversationId>MyConversationID</eb:ConversationId>
            <eb:Service/>
            <eb:Action>BargainFinderMax_ADRS</eb:Action>
            <eb:MessageData>
                <eb:MessageId>mid:20151013-181754456-4812.BargainFinderMax_ADRS@webservices.sabre.com</eb:MessageId>
                <eb:Timestamp>2015-10-13T18:17:54Z</eb:Timestamp>
            </eb:MessageData>
            <eb:RefToMessageId>2afbf3e7-8de6-4397-9fcb-8c9b01624131@61</eb:RefToMessageId>
        </eb:MessageHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <OTA_AirLowFareSearchRS Version="1.9.0" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Errors>
                <Error Type="SERVER" Code="ttfhli700" ShortText="80">TOMCAT</Error>
                <Error Type="ERR" Code="INVALIDREQ" ShortText="Schema Validation Failed">cvc-elt.1.a: Cannot find the declaration of element 'OTA_AirLowFareSearchRQ'.</Error>
            </Errors>
        </OTA_AirLowFareSearchRS>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

它给我的架构验证错误,我不无比熟悉XML / XSI。在此先感谢

Its giving me Schema Validation error and i am not immense familiar with XML/XSI. Thanks in advance

推荐答案

好像你缺少的这一部分。

It seems like you are missing this part.

xmlns="http://www.opentravel.org/OTA/2003/05"

在标签

<OTA_AirLowFareSearchRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.9.0" ResponseType="OTA" ResponseVersion="1.9.0">

希望这将解决您的问题。

hope this will solve your problem.

感谢。

这篇关于CVC-elt.1.a:找不到元素的声明“OTA_AirLowFareSearchRQ”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆