{"action":"created","issue":{"url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/73","repository_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial","labels_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/73/comments","events_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/73/events","html_url":"https://github.com/Travelport/travelport-uapi-tutorial/issues/73","id":167831299,"number":73,"title":"Where is the SearchPassenger ref or key generated?","user":{"login":"EdmundMorris","id":2161836,"avatar_url":"https://avatars.githubusercontent.com/u/2161836?v=3","gravatar_id":"","url":"https://api.github.com/users/EdmundMorris","html_url":"https://github.com/EdmundMorris","followers_url":"https://api.github.com/users/EdmundMorris/followers","following_url":"https://api.github.com/users/EdmundMorris/following{/other_user}","gists_url":"https://api.github.com/users/EdmundMorris/gists{/gist_id}","starred_url":"https://api.github.com/users/EdmundMorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdmundMorris/subscriptions","organizations_url":"https://api.github.com/users/EdmundMorris/orgs","repos_url":"https://api.github.com/users/EdmundMorris/repos","events_url":"https://api.github.com/users/EdmundMorris/events{/privacy}","received_events_url":"https://api.github.com/users/EdmundMorris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-27T11:24:43Z","updated_at":"2016-07-28T10:41:55Z","closed_at":null,"body":"The Travelport demo site (https://demo.travelportuniversalapi.com/) generates a unique ID for the travelers which seems to be randomly generated by the client and is set in the AirPriceReq. Eg:\r\n\r\n```xml\r\n<SearchPassenger Age=\"40\" BookingTravelerRef=\"OTc4VElUZk8zRlFmekZ4dg==\" Code=\"ADT\" Key=\"OTc4VElUZk8zRlFmekZ4dg==\" xmlns=\"http://www.travelport.com/schema/common_v36_0\"/>\r\n````\r\n\r\nThis is then referenced in the AirPriceRsp and the AirCreateReservationRsp.\r\n\r\nMy problem is that any reference I generate in the AirPriceReq and AirCreateReservationReq are ignored in the AirPriceRsp and AirCreateReservationRsp respectively. Eg the traveler key and ref which are returned are not the same as the key and ref I submit. Any idea how I can resolve this? Thanks\r\n  "},"comment":{"url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/comments/235861233","html_url":"https://github.com/Travelport/travelport-uapi-tutorial/issues/73#issuecomment-235861233","issue_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/73","id":235861233,"user":{"login":"EdmundMorris","id":2161836,"avatar_url":"https://avatars.githubusercontent.com/u/2161836?v=3","gravatar_id":"","url":"https://api.github.com/users/EdmundMorris","html_url":"https://github.com/EdmundMorris","followers_url":"https://api.github.com/users/EdmundMorris/followers","following_url":"https://api.github.com/users/EdmundMorris/following{/other_user}","gists_url":"https://api.github.com/users/EdmundMorris/gists{/gist_id}","starred_url":"https://api.github.com/users/EdmundMorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdmundMorris/subscriptions","organizations_url":"https://api.github.com/users/EdmundMorris/orgs","repos_url":"https://api.github.com/users/EdmundMorris/repos","events_url":"https://api.github.com/users/EdmundMorris/events{/privacy}","received_events_url":"https://api.github.com/users/EdmundMorris/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T10:41:55Z","updated_at":"2016-07-28T10:41:55Z","body":"Ah perfect answer! Thanks @vivekjyotipramanik. The link to the correct format of keys told me exactly what was wrong. I was base64 encoding the UUID.toString() instead of taking the bytes directly from the UUID. After applying the fix I'm getting Keys of the correct number of characters and it's being persisted between requests and responses. Have a great day - Ed"}}
{"actor":{"display_login":"EdmundMorris"}}