Sabre DesignatePrinterLLSRQ错误:INVALID TICKET STOCK-0001

时间:2017-07-11 13:42:01

标签: web-services soap sabre

我尝试执行问题机票工作流程,但DesignatePrinterLLSRQ会返回错误:

INVALID TICKET STOCK-0001

在此工作流程之前,我正在进行Book Air Segment工作流程。它工作正常。

我的要求:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MessageHeader xmlns="http://www.ebxml.org/namespaces/messageHeader">
            <From>
                <PartyId>WebServiceClient</PartyId>
            </From>
            <To>
                <PartyId>WebServiceSupplier</PartyId>
            </To>
            <CPAId>4PFI</CPAId>
            <ConversationId>SWS-Test-4PFI</ConversationId>
            <Service>DesignatePrinter</Service>
            <Action>DesignatePrinterLLSRQ</Action>
            <MessageData>
                <MessageId>9314594d-6c40-406b-9029-b887b13906b6</MessageId>
                <Timestamp>2017-07-11T13:27:48Z</Timestamp>
            </MessageData>
        </MessageHeader>
        <Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext">
            <BinarySecurityToken>
                Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/ACPCRTD!ICESMSLB\/CRT.LB!-3255627259104687481!1005491!0
            </BinarySecurityToken>
        </Security>
    </soap:Header>
    <soap:Body>
        <DesignatePrinterRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10"
                            xmlns:xs="http://www.w3.org/2001/XMLSchema"
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.0.1">
            <Printers>
                <Ticket LNIATA="03388A"/>
            </Printers>
        </DesignatePrinterRQ>
    </soap:Body>
</soap:Envelope>

我的回复:

<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" eb:version="1.0"
                          soap-env:mustUnderstand="1">
            <eb:From>
                <eb:PartyId eb:type="URI">WebServiceSupplier</eb:PartyId>
            </eb:From>
            <eb:To>
                <eb:PartyId eb:type="URI">WebServiceClient</eb:PartyId>
            </eb:To>
            <eb:CPAId>4PFI</eb:CPAId>
            <eb:ConversationId>SWS-Test-4PFI</eb:ConversationId>
            <eb:Service>DesignatePrinter</eb:Service>
            <eb:Action>DesignatePrinterLLSRS</eb:Action>
            <eb:MessageData>
                <eb:MessageId>253992491200470611</eb:MessageId>
                <eb:Timestamp>2017-07-11T13:38:40</eb:Timestamp>
                <eb:RefToMessageId>9314594d-6c40-406b-9029-b887b13906b6</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\/ACPCRTD!ICESMSLB\/CRT.LB!-3255627259104687481!1005491!0
            </wsse:BinarySecurityToken>
        </wsse:Security>
    </soap-env:Header>
    <soap-env:Body>
        <DesignatePrinterRS xmlns="http://webservices.sabre.com/sabreXML/2011/10"
                            xmlns:xs="http://www.w3.org/2001/XMLSchema"
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                            xmlns:stl="http://services.sabre.com/STL/v01" Version="2.0.1">
            <stl:ApplicationResults status="NotProcessed">
                <stl:Error type="BusinessLogic" timeStamp="2017-07-11T08:38:40-05:00">
                    <stl:SystemSpecificResults>
                        <stl:Message>INVALID TICKET STOCK-0001</stl:Message>
                        <stl:ShortText>ERR.SWS.HOST.ERROR_IN_RESPONSE</stl:ShortText>
                    </stl:SystemSpecificResults>
                </stl:Error>
            </stl:ApplicationResults>
        </DesignatePrinterRS>
    </soap-env:Body>
</soap-env:Envelope>

如何修复此错误?也许我做错了什么?

2 个答案:

答案 0 :(得分:2)

尝试:

int filesize ( string $filename )

答案 1 :(得分:0)

@Yury,

当您尝试使用的 PCC 不允许开立或您没有正确指定票据打印机时,会发生此错误。

这是来自 SABRE 本身的建议和功能流程。

  1. 使用 // *: ContextChangeRQ /*: ChangeAAA 服务更改为 PCC 许可

  2. 使用 // *: ContextChangeRQ /*: ChangeDuty / @ Code = "4" 启用票据打印机访问权限

  3. 使用 DesignatePrinterRQ 服务指定票据打印机

  • CountryCode,您必须根据您所在的地区和航空公司验证打印机参考。
  • LNIATA、SABER 必须指定用于旅行社的打印机 ID。
相关问题