Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml Sabre检索行程Soap API错误_Xml_Sabre - Fatal编程技术网

Xml Sabre检索行程Soap API错误

Xml Sabre检索行程Soap API错误,xml,sabre,Xml,Sabre,我正在使用SabreSOAP api检索PNR。但是遇到以下错误时,EbxmlMessage中指定的操作不存在。如soap操作中所述是GetReservationOperation。但我不知道为什么它返回无效的操作。 我正在使用RESTAPI搜索特价搜索器max和PNR创建乘客记录。因为get行程在rest中不可用,所以这就是我使用SOAPAPI的原因。这是否会导致任何问题。 如果你有任何想法,请告诉我 请求: <soapenv:Envelope xmlns:soapenv="ht

我正在使用SabreSOAP api检索PNR。但是遇到以下错误时,EbxmlMessage中指定的操作不存在。如soap操作中所述是GetReservationOperation。但我不知道为什么它返回无效的操作。 我正在使用RESTAPI搜索特价搜索器max和PNR创建乘客记录。因为get行程在rest中不可用,所以这就是我使用SOAPAPI的原因。这是否会导致任何问题。 如果你有任何想法,请告诉我

请求:

<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:sec="http://schemas.xmlsoap.org/ws/2002/12/secext"
    xmlns:mes="http://www.ebxml.org/namespaces/messageHeader"
    xmlns:v1="http://webservices.sabre.com/pnrbuilder/v1_17"
    xmlns:v11="http://services.sabre.com/res/or/v1_11">
    <soapenv:Header>
        <sec:Security>
            <sec:BinarySecurityToken>Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/RESA!ICESMSLB\/RES.LB!-3185560751641243001!1025760!0</sec:BinarySecurityToken>
        </sec:Security>
        <mes:MessageHeader mes:id="?" mes:version="2.0">
            <mes:From>
                <mes:PartyId mes:type="urn:x12.org:IO5:01">99999</mes:PartyId>
            </mes:From>
            <mes:To>
                <mes:PartyId mes:type="urn:x12.org:IO5:01">1231231</mes:PartyId>
            </mes:To>
            <mes:CPAId>ipcc</mes:CPAId>
            <mes:ConversationId>ID</mes:ConversationId>
            <mes:Service mes:type="?">GetReservationOperation</mes:Service>
            <mes:Action>GetReservationOperation</mes:Action>
            <mes:MessageData>
                <mes:MessageId>1000</mes:MessageId>
                <mes:Timestamp>2018-01-25T10:00:00</mes:Timestamp>
                <mes:TimeToLive>2018-01-25T12:00:00</mes:TimeToLive>
            </mes:MessageData>
        </mes:MessageHeader>
    </soapenv:Header>
    <soapenv:Body>
        <v1:GetReservationRQ Version="1.17.0" EchoToken="?">
            <v1:Locator>VKSLRM</v1:Locator>
            <v1:RequestType>Stateless</v1:RequestType>
            <v1:ReturnOptions>
                <v1:ViewName>Full</v1:ViewName>
                <v1:ResponseFormat>STL</v1:ResponseFormat>
            </v1:ReturnOptions>
        </v1:GetReservationRQ>
    </soapenv:Body>
</soapenv:Envelope>

共享/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/RESA!ICESMSSLB\/RES.LB-3185560751641243001!1025760!0
99999
1231231
ipcc
身份证件
GetReservationOperation
GetReservationOperation
1000
2018-01-25T10:00:00
2018-01-25T12:00:00
VKSLRM
无国籍
满满的
STL
答复:

<soap-env:Envelope
    xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header>
        <eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1"
            xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
            <eb:From>
                <eb:PartyId eb:type="urn:x12.org:IO5:01">1231231</eb:PartyId>
            </eb:From>
            <eb:To>
                <eb:PartyId eb:type="urn:x12.org:IO5:01">99999</eb:PartyId>
            </eb:To>
            <eb:CPAId>ipcc</eb:CPAId>
            <eb:ConversationId>ID</eb:ConversationId>
            <eb:Service eb:type="?">GetReservationOperation</eb:Service>
            <eb:Action>ErrorRS</eb:Action>
            <eb:MessageData>
                <eb:MessageId>5618033481599870201</eb:MessageId>
                <eb:Timestamp>2018-01-25T13:22:39</eb:Timestamp>
                <eb:RefToMessageId>1000</eb:RefToMessageId>
            </eb:MessageData>
        </eb:MessageHeader>
        <wsse:Security
            xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
            <wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/RESA!ICESMSLB\/RES.LB!-3185560751641243001!1025760!0</wsse:BinarySecurityToken>
        </wsse:Security>
    </soap-env:Header>
    <soap-env:Body>
        <soap-env:Fault>
            <faultcode>soap-env:Client.InvalidAction</faultcode>
            <faultstring>Action specified in EbxmlMessage does not exist.</faultstring>
            <detail>
                <StackTrace>com.sabre.universalservices.base.exception.ApplicationException: errors.xml.USG_INVALID_ACTION</StackTrace>
            </detail>
        </soap-env:Fault>
    </soap-env:Body>
</soap-env:Envelope>

1231231
99999
ipcc
身份证件
GetReservationOperation
错误者
5618033481599870201
2018-01-25T13:22:39
1000
共享/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/RESA!ICESMSSLB\/RES.LB-3185560751641243001!1025760!0
soap环境:Client.InvalidAction
EbxmlMessage中指定的操作不存在。
com.sabre.universalservices.base.exception.ApplicationException:errors.xml.USG\u无效\u操作

getReservationRQ的正确操作代码是“getReservationRQ”


拼写应正确且区分大小写getReservationRQ


Stateful应为请求类型。

感谢您的帮助。目前我收到此错误700102 PNR的收视率受限,原因是[PNR的收视率受限(不支持的安全检查),代码:700102,严重性:中等]温和如果你有任何想法,请让我知道尝试有状态,而不是仍然面临同样的问题。你还有别的建议吗。