Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.45 KB | None | 0 0
  1. %dw 2.0
  2. output application/xml encoding="UTF-8"
  3. ns soapenv http://schemas.xmlsoap.org/soap/envelope/
  4. ns sec http://schemas.xmlsoap.org/ws/2002/12/secext
  5. ns mes http://www.ebxml.org/namespaces/messageHeader
  6. ns sab http://webservices.sabre.com/sabreXML/2011/10
  7. ns xs http://www.w3.org/2001/XMLSchema
  8. ns xsi http://www.w3.org/2001/XMLSchema-instance
  9. ---
  10. soapenv#Envelope @("xmlns:sec": sec, "xmlns:mes": mes, "xmlns:ns": sab) : {
  11.     soapenv#Header: {
  12.         sec#Security: {
  13.             sec#BinarySecurityToken: "{{BinarySecurityToken}}"
  14.         },
  15.         mes#MessageHeader @(mes#id: "?", mes#version: "?"):{
  16.             mes#From:{
  17.                 mes#PartyId: "WebServiceClient"
  18.             },
  19.             mes#To:{
  20.                 mes#PartyId: "WebServiceSupplier"
  21.             },
  22.             mes#CPAId: "{{CpaID}}",
  23.             mes#ConversationId: "{{ConversionID}}",
  24.             mes#Service: "Session",
  25.             mes#Action:"OTA_AirAvailLLSRQ",
  26.             mes#MessageData: {
  27.                 mes#MessageId: "{{MessageID}}",
  28.                 mes#Timestamp: "2014-05-26"
  29.             }
  30.         }
  31.     },
  32.     soapenv#Body: {
  33.         OTA_AirAvailRQ @(Version: "2.4.0", "xmlns":sab, "xmlns:xs":xs ,"xmlns:xsi":xsi ): {
  34.             sab#OptionalQualifiers: {
  35.                 sab#FlightQualifiers @(Scan: "true"): {
  36.                     VendorPrefs: {
  37.                         Airline @(Code: "VN"): {}
  38.                     }
  39.                 }
  40.             },
  41.             OriginDestinationInformation: {
  42.                 FlightSegment @(DepartureDateTime: "2018-09-06", ResBookDesigCode: ""): {
  43.                     DestinationLocation @(LocationCode: "HAN"): {
  44.                        
  45.                     },
  46.                     OriginLocation @(LocationCode: "SGN"): {
  47.                        
  48.                     }
  49.                 }
  50.             }
  51.         }
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement