[英]How to use the WSDL generated classes
您好,我已經使用了從Amadeus Developer門戶下載的WSDL,用於所有服務。 我的程序中確實有類型
AmadeusPDT.Fare_DisplayFaresForCityPair ap = new BookingEngine.AmadeusPDT.Fare_DisplayFaresForCityPair();
// FLIGHT DATES
List<AmadeusPDT.DateAndTimeDetailsTypeI2> flightDates = new List<AmadeusPDT.DateAndTimeDetailsTypeI2>();
flightDates.Add(new AmadeusPDT.DateAndTimeDetailsTypeI2 { date = DepartureDate.ToString("yyyy-MM-dd"), qualifier = Util.GetQualifierFromFlightType(FlightType) });
// For multiple flight dates? like that plus or minus date thing?
ap.dateOfFlight = flightDates.ToArray();
var results = ap.Dosomething?; // <------
我設置了航班日期和票價類型,但沒有設置。而且我不確定如何“致電”或“執行”或現在獲取結果
看來好像是這樣。.現在我必須學習什么是Session,TransactionFlowLinkType和ama_SecurityHostedUser
AmadeusPDT.AmadeusWebServicesPTClient c = new AmadeusPDT.AmadeusWebServicesPTClient();
AmadeusPDT.Session thisSession = new AmadeusPDT.Session();
AmadeusPDT.TransactionFlowLinkType flowType = new AmadeusPDT.TransactionFlowLinkType();
AmadeusPDT.AMA_SecurityHostedUser aMA_SecurityHostedUser = new AmadeusPDT.AMA_SecurityHostedUser();
AmadeusPDT.Fare_DisplayFaresForCityPairReply results = c.Fare_DisplayFaresForCityPair(ref thisSession,ref flowType,aMA_SecurityHostedUser,ap);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.