Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %dw 2.0
- output application/xml encoding="UTF-8"
- ns soapenv http://schemas.xmlsoap.org/soap/envelope/
- ns sec http://schemas.xmlsoap.org/ws/2002/12/secext
- ns mes http://www.ebxml.org/namespaces/messageHeader
- ns sab http://webservices.sabre.com/sabreXML/2011/10
- ns xs http://www.w3.org/2001/XMLSchema
- ns xsi http://www.w3.org/2001/XMLSchema-instance
- ---
- soapenv#Envelope @("xmlns:sec": sec, "xmlns:mes": mes, "xmlns:ns": sab) : {
- soapenv#Header: {
- sec#Security: {
- sec#BinarySecurityToken: "{{BinarySecurityToken}}"
- },
- mes#MessageHeader @(mes#id: "?", mes#version: "?"):{
- mes#From:{
- mes#PartyId: "WebServiceClient"
- },
- mes#To:{
- mes#PartyId: "WebServiceSupplier"
- },
- mes#CPAId: "{{CpaID}}",
- mes#ConversationId: "{{ConversionID}}",
- mes#Service: "Session",
- mes#Action:"OTA_AirAvailLLSRQ",
- mes#MessageData: {
- mes#MessageId: "{{MessageID}}",
- mes#Timestamp: "2014-05-26"
- }
- }
- },
- soapenv#Body: {
- OTA_AirAvailRQ @(Version: "2.4.0", "xmlns":sab, "xmlns:xs":xs ,"xmlns:xsi":xsi ): {
- sab#OptionalQualifiers: {
- sab#FlightQualifiers @(Scan: "true"): {
- VendorPrefs: {
- Airline @(Code: "VN"): {}
- }
- }
- },
- OriginDestinationInformation: {
- FlightSegment @(DepartureDateTime: "2018-09-06", ResBookDesigCode: ""): {
- DestinationLocation @(LocationCode: "HAN"): {
- },
- OriginLocation @(LocationCode: "SGN"): {
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement