{"action":"created","issue":{"url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/149","repository_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial","labels_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/149/comments","events_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/149/events","html_url":"https://github.com/Travelport/travelport-uapi-tutorial/issues/149","id":187548226,"number":149,"title":"Error retrieving Data: Invalid Type requested. Please provide a valid TypeCode","user":{"login":"JadChahine","id":13718061,"avatar_url":"https://avatars.githubusercontent.com/u/13718061?v=3","gravatar_id":"","url":"https://api.github.com/users/JadChahine","html_url":"https://github.com/JadChahine","followers_url":"https://api.github.com/users/JadChahine/followers","following_url":"https://api.github.com/users/JadChahine/following{/other_user}","gists_url":"https://api.github.com/users/JadChahine/gists{/gist_id}","starred_url":"https://api.github.com/users/JadChahine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JadChahine/subscriptions","organizations_url":"https://api.github.com/users/JadChahine/orgs","repos_url":"https://api.github.com/users/JadChahine/repos","events_url":"https://api.github.com/users/JadChahine/events{/privacy}","received_events_url":"https://api.github.com/users/JadChahine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-06T09:13:40Z","updated_at":"2016-11-07T19:17:58Z","closed_at":null,"body":"`ReferenceDataRetrieveRsp `and `ReferenceDataSearchRsp` are returning results for the Airport, City, Currency, State etc...\r\n\r\nBut when I am trying to retrieve carriers in both `ReferenceDataRetrieveRsp `and `ReferenceDataSearchReq` , it throws an error\r\n\r\n**ReferenceDataSearchReq:**\r\n\r\n```\r\n<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n\t<soap:Body>\r\n\t\t<ns2:ReferenceDataSearchReq xmlns=\"http://www.travelport.com/schema/common_v38_0\" xmlns:ns2=\"http://www.travelport.com/schema/util_v38_0\" xmlns:ns3=\"http://www.travelport.com/schema/vehicle_v38_0\" xmlns:ns4=\"http://www.travelport.com/schema/air_v38_0\" xmlns:ns5=\"http://www.travelport.com/schema/rail_v38_0\">\r\n\t\t\t<BillingPointOfSaleInfo OriginApplication=\"UAPI\"/>\r\n\t\t\t<ns2:ReferenceDataSearchModifiers MaxResults=\"20000\" StartFromResult=\"0\"/>\r\n\t\t\t<ns2:ReferenceDataSearchItem Type=\"Carrier\"/>\r\n\t\t</ns2:ReferenceDataSearchReq>\r\n\t</soap:Body>\r\n</soap:Envelope>\r\n```\r\n\r\n**ReferenceDataSearchRsp**\r\n\r\n```\r\n<SOAP:Envelope xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n<SOAP:Body>\r\n<SOAP:Fault>\r\n\t<faultcode>Server.InvalidResponseException</faultcode>\r\n\t<faultstring>[Error] :1:337: cvc-length-valid: Value '/*A' with length = '3' is not facet-valid with respect to length '2' for type 'typeCarrier'.</faultstring>           \r\n\t<detail>\r\n\t\t<ErrorInfo xmlns=\"http://www.travelport.com/schema/util_v38_0\">\r\n\t\t\t<Code>1000</Code>\r\n\t\t\t<Service>WEBSVC</Service>\r\n\t\t\t<Type>InvalidResponseException</Type>\r\n\t\t\t<Description>Validation failed on request message.</Description>\r\n\t\t\t<TransactionId>364E6F030A0764780594EEF9839DD335</TransactionId>\r\n\t\t\t<Auxdata>\r\n\t\t\t\t<Entry>\r\n\t\t\t\t\t<Reason> LastElement</Reason>\r\n\t\t\t\t\t<Description>ReferenceDataSearchRsp Code=/*A Name=STAR ALLIANCE Type=A     </Description>\r\n\t\t\t\t</Entry>\r\n\t\t\t</Auxdata>\r\n\t\t</ErrorInfo>\r\n\t</detail>\r\n</SOAP:Fault>\r\n</SOAP:Body>\r\n</SOAP:Envelope>\r\n```\r\n\r\nError:\r\n\r\n`Error in getReferenceDataList: Unmarshalling Error: unexpected element (uri:\"http://www.travelport.com/schema/util_v38_0\", local:\"Code\"). Expected elements are <{http://www.travelport.com/schema/common_v38_0}Type>,<{http://www.travelport.com/schema/common_v38_0}Description>,<{http://www.travelport.com/schema/common_v38_0}CommandHistory>,<{http://www.travelport.com/schema/common_v38_0}StackTrace>,<{http://www.travelport.com/schema/common_v38_0}Auxdata>,<{http://www.travelport.com/schema/common_v38_0}Service>,<{http://www.travelport.com/schema/common_v38_0}TraceId>,<{http://www.travelport.com/schema/common_v38_0}TransactionId>,<{http://www.travelport.com/schema/common_v38_0}Code>`\r\n\r\n\r\nFor `ReferenceDataRetrieveRsp `\r\n**Error retrieving Data: Invalid Type requested. Please provide a valid TypeCode**\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/comments/258933901","html_url":"https://github.com/Travelport/travelport-uapi-tutorial/issues/149#issuecomment-258933901","issue_url":"https://api.github.com/repos/Travelport/travelport-uapi-tutorial/issues/149","id":258933901,"user":{"login":"JadChahine","id":13718061,"avatar_url":"https://avatars.githubusercontent.com/u/13718061?v=3","gravatar_id":"","url":"https://api.github.com/users/JadChahine","html_url":"https://github.com/JadChahine","followers_url":"https://api.github.com/users/JadChahine/followers","following_url":"https://api.github.com/users/JadChahine/following{/other_user}","gists_url":"https://api.github.com/users/JadChahine/gists{/gist_id}","starred_url":"https://api.github.com/users/JadChahine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JadChahine/subscriptions","organizations_url":"https://api.github.com/users/JadChahine/orgs","repos_url":"https://api.github.com/users/JadChahine/repos","events_url":"https://api.github.com/users/JadChahine/events{/privacy}","received_events_url":"https://api.github.com/users/JadChahine/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T19:17:58Z","updated_at":"2016-11-07T19:17:58Z","body":"Hi VivekJyoti,\r\n\r\nPlease find below the request and the response \r\n\r\n\r\nRequest \r\n\r\n\r\n```\r\n<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n\t<soap:Body>\r\n\t\t<ns2:ReferenceDataRetrieveReq xmlns=\"http://www.travelport.com/schema/common_v38_0\" xmlns:ns2=\"http://www.travelport.com/schema/util_v38_0\" xmlns:ns3=\"http://www.travelport.com/schema/vehicle_v38_0\" xmlns:ns4=\"http://www.travelport.com/schema/air_v38_0\" xmlns:ns5=\"http://www.travelport.com/schema/rail_v38_0\" TargetBranch=\"P105201\">\r\n\t\t\t<BillingPointOfSaleInfo OriginApplication=\"UAPI\"/>\r\n\t\t\t<ns2:ReferenceDataSearchModifiers MaxResults=\"20000\" ProviderCode=\"1V\"/>\r\n\t\t</ns2:ReferenceDataRetrieveReq>\r\n\t</soap:Body>\r\n</soap:Envelope>\r\n```\r\n\r\nResponse\r\n\r\n```\r\n<SOAP:Envelope xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n\t<SOAP:Body>\r\n\t\t<SOAP:Fault>\r\n\t\t\t<faultcode>Server.InvalidRequestException</faultcode>\r\n\t\t\t<faultstring>[Error] :1:334: cvc-complex-type.4: Attribute 'TypeCode' must appear on element 'ns2:ReferenceDataRetrieveReq'.</faultstring>           \r\n\t\t\t<detail>\r\n\t\t\t\t<ErrorInfo>\r\n\t\t\t\t\t<Code>1000</Code>\r\n\t\t\t\t\t<Service>WEBSVC</Service>\r\n\t\t\t\t\t<Type>Data</Type>\r\n\t\t\t\t\t<Description>Validation failed on request message.</Description>\r\n\t\t\t\t\t<TransactionId>40374F0C0A07643C7CD6B1C53C56FAE2</TransactionId>\r\n\t\t\t\t</ErrorInfo>\r\n\t\t\t</detail>\r\n\t\t</SOAP:Fault>\r\n\t</SOAP:Body>\r\n</SOAP:Envelope>\r\n\r\n\r\n```\r\n\r\nWhat are the problem?"}}
{"actor":{"display_login":"JadChahine"}}