473,388 Members | 1,001 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Converting SoapResponse to Class

hi,

I am using a webservice which Returns the Result in an XML string,
The XML response i get i svery cumbersome to parse,
But if i could convert it to the Corresponding Class using the
System.Xml.Serialization, i think that can solve my problem.
But i tried using the Deserialize method for converting the XML to the
Corresponding Object, neither i get error nor i get any luck for converting
it to Object.

well if i am debuging the project i can see that the Serializer goes to the
UnKnownElement event.

Below is the LIMITED XML Response(Dont Blame me the actual response is 4-5
times this).

<OTA_AirLowFareSearchRS Version="1.001">
<Success></Success>
<PricedItineraries>
<PricedItinerary SequenceNumber="1">
<AirItinerary DirectionInd="OneWay">
<OriginDestinationOptions>
<OriginDestinationOption>
<FlightSegment DepartureDateTime="2005-04-08T13:28:00"
ArrivalDateTime="2005-04-08T16:22:00" StopQuantity="0"
RPH="1" FlightNumber="1700" ResBookDesigCode="L" NumberInParty="3">
<DepartureAirport LocationCode="MIA">Miami International, FL,
US</DepartureAirport>
<ArrivalAirport LocationCode="JFK">New York-JFK, NY,
US</ArrivalAirport>
<OperatingAirline Code="AA">AMERICAN AIRLINES</OperatingAirline>
<Equipment AirEquipType="AB6">AIRBUS INDUSTRIE A300-600/600C
JET</Equipment>
<MarketingAirline Code="AA">AMERICAN AIRLINES</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-08T20:10:00"
ArrivalDateTime="2005-04-09T22:55:00" StopQuantity="1"
RPH="1" FlightNumber="0102" ResBookDesigCode="L" NumberInParty="3">
<DepartureAirport LocationCode="JFK">New York-JFK, NY,
US</DepartureAirport>
<ArrivalAirport LocationCode="BOM">Mumbai, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="744">BOEING 747-400 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-10T00:01:00"
ArrivalDateTime="2005-04-10T02:30:00" StopQuantity="0"
RPH="1" FlightNumber="0680" ResBookDesigCode="B" NumberInParty="3">
<DepartureAirport LocationCode="BOM">Mumbai, IN</DepartureAirport>
<ArrivalAirport LocationCode="CCU">Calcutta, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="310">AIRBUS INDUSTRIE 310 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
</OriginDestinationOption>
</OriginDestinationOptions>
</AirItinerary>
<AirItineraryPricingInfo PricingSource="Published">
<ItinTotalFare NegotiatedFare="0">
<BaseFare Amount="222100" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="241780" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</ItinTotalFare>
<PTC_FareBreakdowns>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="1"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>LA3TN</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
</FareBasisCodes>
<ArrivalAirport LocationCode="BOM">Mumbai, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="744">BOEING 747-400 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-10T00:01:00"
ArrivalDateTime="2005-04-10T02:30:00" StopQuantity="0"
RPH="1" FlightNumber="0680" ResBookDesigCode="B" NumberInParty="3">
<DepartureAirport LocationCode="BOM">Mumbai, IN</DepartureAirport>
<ArrivalAirport LocationCode="CCU">Calcutta, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="310">AIRBUS INDUSTRIE 310 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
</OriginDestinationOption>
</OriginDestinationOptions>
</AirItinerary>
<AirItineraryPricingInfo PricingSource="Published">
<ItinTotalFare NegotiatedFare="0">
<BaseFare Amount="228200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="247880" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</ItinTotalFare>
<PTC_FareBreakdowns>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="1"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>NA3TN</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="87200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="93760" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="2"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>NA3TN</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="141000" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="154120" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
</PTC_FareBreakdowns>
<FareInfos>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T13:10:00</DepartureDate>
<FareReference>NA3TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="CO"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="EWR"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="JFK"></DepartureAirport>
<ArrivalAirport LocationCode="BOM"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-10T00:01:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="BOM"></DepartureAirport>
<ArrivalAirport LocationCode="CCU"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T13:10:00</DepartureDate>
<FareReference>NA3TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="CO"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="EWR"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="JFK"></DepartureAirport>
<ArrivalAirport LocationCode="BOM"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-10T00:01:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="BOM"></DepartureAirport>
<ArrivalAirport LocationCode="CCU"></ArrivalAirport>
</FareInfo>
</FareInfos>
</AirItineraryPricingInfo>
<TicketingInfo TicketTimeLimit="2005-04-05T00:00:00"
TicketType="eTicket"></TicketingInfo>
</PricedItinerary>
<PricedItinerary SequenceNumber="3">
<AirItinerary DirectionInd="OneWay">
<OriginDestinationOptions>
<OriginDestinationOption>
<FlightSegment DepartureDateTime="2005-04-08T14:00:00"
ArrivalDateTime="2005-04-08T16:55:00" StopQuantity="0"
RPH="1" FlightNumber="2086" ResBookDesigCode="H" NumberInParty="3">
<DepartureAirport LocationCode="MIA">Miami International, FL,
US</DepartureAirport>
<ArrivalAirport LocationCode="LGA">New York-La Guardia, NY,
US</ArrivalAirport>
<OperatingAirline Code="AA">AMERICAN AIRLINES</OperatingAirline>
<Equipment AirEquipType="757">BOEING 757-200/300 JET</Equipment>
<MarketingAirline Code="AA">AMERICAN AIRLINES</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-08T20:10:00"
ArrivalDateTime="2005-04-09T22:55:00" StopQuantity="1"
RPH="1" FlightNumber="0102" ResBookDesigCode="L" NumberInParty="3">
<DepartureAirport LocationCode="JFK">New York-JFK, NY,
US</DepartureAirport>
<ArrivalAirport LocationCode="BOM">Mumbai, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="744">BOEING 747-400 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-10T00:01:00"
ArrivalDateTime="2005-04-10T02:30:00" StopQuantity="0"
RPH="1" FlightNumber="0680" ResBookDesigCode="B" NumberInParty="3">
<DepartureAirport LocationCode="BOM">Mumbai, IN</DepartureAirport>
<ArrivalAirport LocationCode="CCU">Calcutta, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="310">AIRBUS INDUSTRIE 310 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
</OriginDestinationOption>
</OriginDestinationOptions>
</AirItinerary>
<AirItineraryPricingInfo PricingSource="Published">
<ItinTotalFare NegotiatedFare="0">
<BaseFare Amount="279200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="298880" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</ItinTotalFare>
<PTC_FareBreakdowns>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="1"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>HA0TN</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="104200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="110760" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="2"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>HA0TN</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="175000" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="188120" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
</PTC_FareBreakdowns>
<FareInfos>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T14:00:00</DepartureDate>
<FareReference>HA0TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AA"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="LGA"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="JFK"></DepartureAirport>
<ArrivalAirport LocationCode="BOM"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-10T00:01:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="BOM"></DepartureAirport>
<ArrivalAirport LocationCode="CCU"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T14:00:00</DepartureDate>
<FareReference>HA0TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AA"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="LGA"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCo

Thanks and Regards
Nov 23 '05 #1
3 2456
save this as xml file, make sure it's a valid xml file, open this in
VS.Net or XMLSpy the generate XSD schema. The you can use xsd.exe to
generate the types

regards
erymuzuan
Nov 23 '05 #2
Hi thanks 4 the reply,
i have done all that but all in vain.
Let me elaborate my problem a bit.
see i am working on consuming some webservices related to travel domain.
and there are basically three providers for this. Sabre , Amadeus and Galileo
Sabre and Amadeus Return the Objects of the classes Generated in the
referance.cs file by VS.NET. while Galelio webservice returns the XML string
and not the Object of the Class(as its in Java i think so).

Now i have all the classes already ( i have also tried by generating the
classes with XSD.EXE )
while when i am deserializing the XML to that class object

it is not giving any error and nor does it transforms into object.
but when i debug it it goes to the event UnknownElement( while thses are all
defined in the class)

i have also tried at the support of the webservice but no reply yet.

thanks
"erymuzuan" wrote:
save this as xml file, make sure it's a valid xml file, open this in
VS.Net or XMLSpy the generate XSD schema. The you can use xsd.exe to
generate the types

regards
erymuzuan

Nov 23 '05 #3
Hi Parvesh,

One thing that I do on my projects when I have alot of XML to consume and to
manipulate is to read it into an Dataset object. I have found that there are
some advantages to doing this:

1. If there are multiple elements at the same level the Dataset class will
automatically split them out into different tables and the child elements
would be fields. (see below)
Dim ioStringReader As New IO.StringReader(xmlString)
Dim dsFlights As New DataSet
dsFlights.ReadXml(ioStringReader)
Return dsFlights

2. Ease of manipulation...it's much easier to say
Dim myDestination as string =
dsFlights.Tables("OriginDestinationOptions").Rows( 0)("Option1")

3. Ease of deserialization...it's easy to move from being a dataset back to
XML string.

Hope this helps.
Delly_jm

"Parvesh" wrote:
hi,

I am using a webservice which Returns the Result in an XML string,
The XML response i get i svery cumbersome to parse,
But if i could convert it to the Corresponding Class using the
System.Xml.Serialization, i think that can solve my problem.
But i tried using the Deserialize method for converting the XML to the
Corresponding Object, neither i get error nor i get any luck for converting
it to Object.

well if i am debuging the project i can see that the Serializer goes to the
UnKnownElement event.

Below is the LIMITED XML Response(Dont Blame me the actual response is 4-5
times this).

<OTA_AirLowFareSearchRS Version="1.001">
<Success></Success>
<PricedItineraries>
<PricedItinerary SequenceNumber="1">
<AirItinerary DirectionInd="OneWay">
<OriginDestinationOptions>
<OriginDestinationOption>
<FlightSegment DepartureDateTime="2005-04-08T13:28:00"
ArrivalDateTime="2005-04-08T16:22:00" StopQuantity="0"
RPH="1" FlightNumber="1700" ResBookDesigCode="L" NumberInParty="3">
<DepartureAirport LocationCode="MIA">Miami International, FL,
US</DepartureAirport>
<ArrivalAirport LocationCode="JFK">New York-JFK, NY,
US</ArrivalAirport>
<OperatingAirline Code="AA">AMERICAN AIRLINES</OperatingAirline>
<Equipment AirEquipType="AB6">AIRBUS INDUSTRIE A300-600/600C
JET</Equipment>
<MarketingAirline Code="AA">AMERICAN AIRLINES</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-08T20:10:00"
ArrivalDateTime="2005-04-09T22:55:00" StopQuantity="1"
RPH="1" FlightNumber="0102" ResBookDesigCode="L" NumberInParty="3">
<DepartureAirport LocationCode="JFK">New York-JFK, NY,
US</DepartureAirport>
<ArrivalAirport LocationCode="BOM">Mumbai, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="744">BOEING 747-400 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-10T00:01:00"
ArrivalDateTime="2005-04-10T02:30:00" StopQuantity="0"
RPH="1" FlightNumber="0680" ResBookDesigCode="B" NumberInParty="3">
<DepartureAirport LocationCode="BOM">Mumbai, IN</DepartureAirport>
<ArrivalAirport LocationCode="CCU">Calcutta, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="310">AIRBUS INDUSTRIE 310 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
</OriginDestinationOption>
</OriginDestinationOptions>
</AirItinerary>
<AirItineraryPricingInfo PricingSource="Published">
<ItinTotalFare NegotiatedFare="0">
<BaseFare Amount="222100" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="241780" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</ItinTotalFare>
<PTC_FareBreakdowns>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="1"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>LA3TN</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
</FareBasisCodes>
<ArrivalAirport LocationCode="BOM">Mumbai, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="744">BOEING 747-400 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-10T00:01:00"
ArrivalDateTime="2005-04-10T02:30:00" StopQuantity="0"
RPH="1" FlightNumber="0680" ResBookDesigCode="B" NumberInParty="3">
<DepartureAirport LocationCode="BOM">Mumbai, IN</DepartureAirport>
<ArrivalAirport LocationCode="CCU">Calcutta, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="310">AIRBUS INDUSTRIE 310 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
</OriginDestinationOption>
</OriginDestinationOptions>
</AirItinerary>
<AirItineraryPricingInfo PricingSource="Published">
<ItinTotalFare NegotiatedFare="0">
<BaseFare Amount="228200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="247880" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</ItinTotalFare>
<PTC_FareBreakdowns>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="1"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>NA3TN</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="87200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="93760" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="2"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>NA3TN</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="141000" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="154120" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
</PTC_FareBreakdowns>
<FareInfos>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T13:10:00</DepartureDate>
<FareReference>NA3TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="CO"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="EWR"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="JFK"></DepartureAirport>
<ArrivalAirport LocationCode="BOM"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-10T00:01:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="BOM"></DepartureAirport>
<ArrivalAirport LocationCode="CCU"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T13:10:00</DepartureDate>
<FareReference>NA3TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="CO"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="EWR"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="JFK"></DepartureAirport>
<ArrivalAirport LocationCode="BOM"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-10T00:01:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 05APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="BOM"></DepartureAirport>
<ArrivalAirport LocationCode="CCU"></ArrivalAirport>
</FareInfo>
</FareInfos>
</AirItineraryPricingInfo>
<TicketingInfo TicketTimeLimit="2005-04-05T00:00:00"
TicketType="eTicket"></TicketingInfo>
</PricedItinerary>
<PricedItinerary SequenceNumber="3">
<AirItinerary DirectionInd="OneWay">
<OriginDestinationOptions>
<OriginDestinationOption>
<FlightSegment DepartureDateTime="2005-04-08T14:00:00"
ArrivalDateTime="2005-04-08T16:55:00" StopQuantity="0"
RPH="1" FlightNumber="2086" ResBookDesigCode="H" NumberInParty="3">
<DepartureAirport LocationCode="MIA">Miami International, FL,
US</DepartureAirport>
<ArrivalAirport LocationCode="LGA">New York-La Guardia, NY,
US</ArrivalAirport>
<OperatingAirline Code="AA">AMERICAN AIRLINES</OperatingAirline>
<Equipment AirEquipType="757">BOEING 757-200/300 JET</Equipment>
<MarketingAirline Code="AA">AMERICAN AIRLINES</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-08T20:10:00"
ArrivalDateTime="2005-04-09T22:55:00" StopQuantity="1"
RPH="1" FlightNumber="0102" ResBookDesigCode="L" NumberInParty="3">
<DepartureAirport LocationCode="JFK">New York-JFK, NY,
US</DepartureAirport>
<ArrivalAirport LocationCode="BOM">Mumbai, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="744">BOEING 747-400 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
<FlightSegment DepartureDateTime="2005-04-10T00:01:00"
ArrivalDateTime="2005-04-10T02:30:00" StopQuantity="0"
RPH="1" FlightNumber="0680" ResBookDesigCode="B" NumberInParty="3">
<DepartureAirport LocationCode="BOM">Mumbai, IN</DepartureAirport>
<ArrivalAirport LocationCode="CCU">Calcutta, IN</ArrivalAirport>
<OperatingAirline Code="AI">AIR INDIA</OperatingAirline>
<Equipment AirEquipType="310">AIRBUS INDUSTRIE 310 JET</Equipment>
<MarketingAirline Code="AI">AIR INDIA</MarketingAirline>
</FlightSegment>
</OriginDestinationOption>
</OriginDestinationOptions>
</AirItinerary>
<AirItineraryPricingInfo PricingSource="Published">
<ItinTotalFare NegotiatedFare="0">
<BaseFare Amount="279200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="298880" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</ItinTotalFare>
<PTC_FareBreakdowns>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="1"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>HA0TN</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
<FareBasisCode>LWSPOW51</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="104200" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="110760" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
<PTC_FareBreakdown>
<PassengerTypeQuantity Code="ADT" Quantity="2"></PassengerTypeQuantity>
<FareBasisCodes>
<FareBasisCode>HA0TN</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
<FareBasisCode>LWSPOW51/CH25</FareBasisCode>
</FareBasisCodes>
<PassengerFare>
<BaseFare Amount="175000" CurrencyCode="USD"
DecimalPlaces="2"></BaseFare>
<TotalFare Amount="188120" CurrencyCode="USD"
DecimalPlaces="2"></TotalFare>
</PassengerFare>
</PTC_FareBreakdown>
</PTC_FareBreakdowns>
<FareInfos>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T14:00:00</DepartureDate>
<FareReference>HA0TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AA"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="LGA"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="JFK"></DepartureAirport>
<ArrivalAirport LocationCode="BOM"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-10T00:01:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCode="BOM"></DepartureAirport>
<ArrivalAirport LocationCode="CCU"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T14:00:00</DepartureDate>
<FareReference>HA0TN</FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AA"></FilingAirline>
<DepartureAirport LocationCode="MIA"></DepartureAirport>
<ArrivalAirport LocationCode="LGA"></ArrivalAirport>
</FareInfo>
<FareInfo NegotiatedFare="0">
<DepartureDate>2005-04-08T20:10:00</DepartureDate>
<FareReference></FareReference>
<RuleInfo>
<ResTicketingRules>
<AdvResTicketing>
<AdvTicketing>LAST TKT DTE 06APR05 - SEE ADV PURCHASE
</AdvTicketing>
</AdvResTicketing>
</ResTicketingRules>
<ChargesRules>
<VoluntaryChanges>
<Penalty PenaltyType="TICKETS ARE NON-REFUNDABLE"></Penalty>
</VoluntaryChanges>
</ChargesRules>
</RuleInfo>
<FilingAirline Code="AI"></FilingAirline>
<DepartureAirport LocationCo

Thanks and Regards

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Govind | last post by:
Hi All, I want to Convert 32 bit integers to byte in right alighed format . For 32 = the usual way is BitConverter.GetBytes(int32)==> xx xx 00 00 , but i want right aligned like 00 00 xx xx.Is...
3
by: Pete Davis | last post by:
I've never done this in C# so I don't know what the appropriate way of doing it is. I've got an array of bytes and I need to convert the array into "usable" data. For example, the first 4 bytes...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
4
by: Brett | last post by:
Hi, I'm having trouble converting an old project to visual studio C++ .net v7.1.3088 I've updated one of the header files to use #include <iostream>, and used the std namspace. After...
0
by: Mark Allen | last post by:
Hello, I am creating an RTF document server side for a report. However I am having problems converting images into the required RTF format. I am converting the image into a string (binary)...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
3
by: Michael | last post by:
Hi All, I need a little help converting a class to vb.net. I have the following to convert: internal class BBBSDIForm : BBBForm { public BBBSDIForm(FormInfo fi, FormMgr formMgr) : base(fi,...
9
by: Terry | last post by:
I am converting (attempting) some vb6 code that makes vast use of interfaces. One of the major uses is to be able to split out Read-only access to an obect. Let me give you a simple (contrived)...
25
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.