Travelport / travelport-uapi-tutorial-c-sharp

The travelport-uapi-tutorial-c-sharp is a C# project for Universal API that will help you connect and code a standard Air availablity call and Hotel search, details, and booking flow.
34 stars 30 forks source link

Error unmarshalling message body: Missing required attribute "Host" #208

Closed salmanelahi93 closed 3 years ago

salmanelahi93 commented 3 years ago

Hi Vivek,

While we executing CreateTerminalSession API, I'm receiving following error:

"Error unmarshalling message body: Missing required attribute "Host"

I dont know, from where I can found Host value. Please help.

Following is the req xml:

<?xml version="1.0" encoding="utf-16"?>
<CreateTerminalSessionReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="xxxxxx">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v33_0" />
  <OverridePCC ProviderCode="1G" PseudoCityCode="xxxx" xmlns="http://www.travelport.com/schema/common_v33_0" />
</CreateTerminalSessionReq>

When I pass just dummy string value "xxxxxx" to the param Host, I found the following exception:

"No enum constant com.g2switch.core.service.Provider.xxxxxx"

vivekjyotipramanik commented 3 years ago

Hi,

Could you please try with the below request. Please use your correct TaregtBranch. Thanks.

<?xml version="1.0" encoding="utf-16"?>
<CreateTerminalSessionReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="xxxxxx">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v33_0" />
</CreateTerminalSessionReq>
salmanelahi93 commented 3 years ago

Error unmarshalling message body: Missing required attribute "Host"

Receiving above error when I tried your xml. I don't know what value I have to pass in Host parameter.

vivekjyotipramanik commented 3 years ago

Hi,

Could you please create a ticket in My.Travelport.com and we will pick it up from there. Thanks.

salmanelahi93 commented 3 years ago

https://demo.travelportuniversalapi.com/

Do you want to create ticket from here?

Is it possible to create ticket from demo site?

salmanelahi93 commented 3 years ago

I found following error when trying to create ticket on demo site (My.Travelport.com):

Purchasing an itinerary is not available on the Production version of the Demo site.

vivekjyotipramanik commented 3 years ago

Hi salmanelahi93,

Please create ticket in https://My.Travelport.com, not the demosite. You can't create support ticket in demosite. Also, I meant support ticket , not airline ticket. Thanks.

salmanelahi93 commented 3 years ago

This is showing on support ticket screen (I'm from Pakistan):

Request submission not available due to security constraints

image

vivekjyotipramanik commented 3 years ago

Hi salmanelahi93,

Please reach out to your Travelport Account Manager to provide you access in My.Travelport.com to create support ticket. Thanks.

salmanelahi93 commented 3 years ago

Hi Vivek,

CreateTerminalSession API executed successfully after passing value "1G" to the parameter "Host".