[英]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.