title: Need to use yatra.com API in my website
body: <p>asalamualikum , I need to used yatra.com api on my website which is an asp.net website.I have got a word document from yatra(air integration document). Yatra api is xml based , air integration document shows format of xml requests and responses but I haven't used xml in webservices and have no idea but I have concept of xml but have used xml only to read and write files on local system.Now I have a problem I dont know how to use xml in webservices and how to recieve response from api and display it on my page or sent request to api..If any one can help me I will be very thankful to him......If you could give me ne url or a video where user have used some api(xml based) for integration. Help will be strongly appreciated.If anyone can give me sample code for below request and resonse.</p>
  
  <p>Sample request to yatra api:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;soapenv:Body&gt;
  &lt;OTA_AirLowFareSearchRQ EchoToken="0" SequenceNmbr="0" TransactionIdentifier="0" AvailableFlightsOnly="" DirectFlightsOnly="" xmlns="http://www.opentravel.org/OTA/2003/05"&gt;
              &lt;POS xmlns="http://www.opentravel.org/OTA/2003/05"&gt;
                  &lt;Source AgentSine="" PseudoCityCode="NPCK" TerminalID="1"&gt;
                      &lt;RequestorID ID="AFFILIATE"/&gt;
                  &lt;/Source&gt;
                  &lt;YatraRequests&gt;
                      &lt;YatraRequest AffiliateID="EASTBOUND"/&gt;
                  &lt;/YatraRequests&gt;
              &lt;/POS&gt;
              &lt;TravelerInfoSummary&gt;
                  &lt;AirTravelerAvail&gt;
                      &lt;PassengerTypeQuantity Code="ADT" Quantity="1"/&gt;
                      &lt;PassengerTypeQuantity Code="CHD" Quantity="1"/&gt;
                      &lt;PassengerTypeQuantity Code="INF" Quantity="1"/&gt;
                  &lt;/AirTravelerAvail&gt;
              &lt;/TravelerInfoSummary&gt;
              &lt;SpecificFlightInfo&gt;
                  &lt;Airline Code=""/&gt;
              &lt;/SpecificFlightInfo&gt;
              &lt;OriginDestinationInformation&gt;
                  &lt;DepartureDateTime&gt;2011-09-11T00:00:00&lt;/DepartureDateTime&gt;
                  &lt;OriginLocation CodeContext="IATA" LocationCode="DEL"&gt;DEL&lt;/OriginLocation&gt;
                  &lt;DestinationLocation CodeContext="IATA" LocationCode="BOM"&gt;BOM&lt;/DestinationLocation&gt;
              &lt;/OriginDestinationInformation&gt;
              &lt;TravelPreferences&gt;
                  &lt;VendorPref Code="SG"/&gt;
                  &lt;VendorPref Code="DN"/&gt;
                  &lt;CabinPref Cabin=""/&gt;
              &lt;/TravelPreferences&gt;
          &lt;/OTA_AirLowFareSearchRQ&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Sample Response from yatra api</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;soapenv:Body&gt;
          &lt;OTA_AirLowFareSearchRS Version="2.001" xmlns="http://www.opentravel.org/OTA/2003/05"&gt;
              &lt;PricedItineraries&gt;
                  &lt;PricedItinerary CompositeFlightNumber="S2101" CountCompositeFlightNumber="1" OriginDestinationRPH="0" SequenceNumber="1" SupplierSystem="Amadeus"&gt;
                      &lt;AirItinerary SupplierSystem="Amadeus"&gt;
                          &lt;OriginDestinationOptions&gt;
                              &lt;OriginDestinationOption Duration="01:55:00" FromCache="true" SupplierSystem="Amadeus"&gt;
                                  &lt;FlightSegment ArrivalDateTime="2007-11-11T08:55:00" DepartureDateTime="2007-11-11T07:00:00" E_TicketEligibility="Eligible" FlightNumber="101" RPH="1" ResBookDesigCode="O"&gt;
                                      &lt;BookingClassAvail RPH="1" ResBookDesigCode="O" ResBookDesigQuantity="4"/&gt;
                                      &lt;DepartureAirport LocationCode="DEL"/&gt;
                                      &lt;ArrivalAirport LocationCode="BOM"/&gt;
                                      &lt;Equipment AirEquipType="737"/&gt;
                                      &lt;MarketingAirline Code="S2"/&gt;
                                  &lt;/FlightSegment&gt;
         &lt;FormData&gt;
                  &lt;FareInformationIDs&gt;
                  &lt;FareInformationID BaseFare="1825" Code="" FareCode="UGOSAVE" FareID="0" PTCID="1" Quantity=""&gt;0&lt;/FareInformationID&gt;
              &lt;/FareInformationIDs&gt;
        &lt;/FormData&gt;                            
  &lt;/OriginDestinationOption&gt;
                          &lt;/OriginDestinationOptions&gt;
                      &lt;/AirItinerary&gt;
                      &lt;AirItineraryPricingInfo&gt;
                          &lt;ItinTotalFare&gt;
                              &lt;BaseFare Amount="1875" CurrencyCode="INR"/&gt;
                              &lt;Taxes&gt;
                                  &lt;Tax Amount="1575" CurrencyCode="INR" TaxCode="TTL"/&gt;
                              &lt;/Taxes&gt;
                              &lt;TotalFare Amount="3461.63" CurrencyCode="INR"/&gt;
                              &lt;ServiceTax Amount="11.63" Currency="INR" Description="Service Tax" ServiceTaxCode="ST" ServiceTaxRate="0.0062"/&gt;
                          &lt;/ItinTotalFare&gt;
                          &lt;PTC_FareBreakdowns&gt;
                              &lt;PTC_FareBreakdown&gt;
                                  &lt;PassengerTypeQuantity Code="ADT" Quantity="1"/&gt;
                                  &lt;FareBasisCodes&gt;
                                      &lt;FareBasisCode&gt;OSASAS&lt;/FareBasisCode&gt;
                                  &lt;/FareBasisCodes&gt;
                                  &lt;PassengerFare&gt;
                                      &lt;BaseFare Amount="1875" CurrencyCode="INR"/&gt;
                                      &lt;Taxes&gt;
                                          &lt;Tax Amount="1575" CurrencyCode="INR" TaxCode="TTL"/&gt;
                                      &lt;/Taxes&gt;
                                      &lt;TotalFare Amount="3450" CurrencyCode="INR"/&gt;
                                  &lt;/PassengerFare&gt;
                              &lt;/PTC_FareBreakdown&gt;
                          &lt;/PTC_FareBreakdowns&gt;
                          &lt;FareInfos&gt;
                              &lt;FareInfo&gt;
                                  &lt;FareReference&gt;OSASAS&lt;/FareReference&gt;
                                  &lt;FilingAirline Code="ZZ"/&gt;
                                  &lt;DepartureAirport LocationCode="DEL"/&gt;
                                  &lt;ArrivalAirport LocationCode="BOM"/&gt;
                              &lt;/FareInfo&gt;
                          &lt;/FareInfos&gt;
                      &lt;/AirItineraryPricingInfo&gt;
                      &lt;TicketingInfo DeliveryMethod="EMAIL" TicketTimeLimit="" TicketType="eTicket" TicketingStatus="" eTicketNumber=""&gt;
                          &lt;TicketAdvisory Language="English"/&gt;
                      &lt;/TicketingInfo&gt;
                  &lt;/PricedItinerary&gt;
              &lt;/PricedItineraries&gt;
          &lt;/OTA_AirLowFareSearchRS&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt; 
  </code></pre>