Forum Discussion

nehamrig's avatar
11 years ago

Not able to convert Json response into xml form

Hi Team

I am using SOAP UI PRO 4.6.4 .This is a json response and I am not able to convert Json response into xml .When I click on the xml tab I am getting this <xml/> tag only and I have already tried "HTTP settings, Normalize Forward Slashes" but still its not working.If its not possible to convert then please let me know how to apply assertion in response.Please help and this is a valid JSON.

{"HotelSearchResult": {
"CheckInDate": "2014-06-28T00:00:00",
"CheckOutDate": "2014-06-30T00:00:00",
"CityCode": "10409",
"Currency": "INR",
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"ResponseStatus": 1,
"Results": [ {
"AmountAfterTax": 16897.15,
"AmountAfterTaxInSupplierCurr": 16897.15,
"AmountBeforeDiscount": 18496.11,
"AmountBeforeDiscountInSupplierCurr": 18496.11,
"AmountBeforeTax": 14390.35,
"AmountBeforeTaxInSupplierCurr": 14390.35,
"BookingSource": "IAN",
"CurrencySupplier": "INR",
"HotelAddress": "3/10, D.B. Gupta Road, Pahar Ganj, New Delhi, , 110055",
"HotelCategory": "",
"HotelCode": "389774",
"HotelContactNo": null,
"HotelDescription": "&lt;p&gt;&lt;b&gt;Property Location&lt;/b&gt; &lt;br /&gt;With a stay at Hotel Sita International, you&apos;ll be centrally located in New Delhi, convenient to Sadar Bazaar and Red Fort. This hotel is within close proximity of In New Delhi (Paharganj) ",
"HotelLocation": null,
"HotelMap": null,
"HotelName": "Hotel Sita International",
"HotelPicture": "http://images.travelnow.com/hotels/5000000/4590000/4583600/4583506/4583506_26_t.jpg",
"HotelSupplierResultType": null,
"Price": {
"AccPriceType": 0,
"AdditionalTxnFee": 0,
"AgentCommission": 0,
"AgentCommissionRate": 0,
"AgentIncentiveAmt": 0,
"AgentIncentiveRate": 0,
"AgentMarkUp": 0,
"AgentMarkUpType": 0,
"AgentPLB": 0,
"AgentPLBRate": 0,
"AirlineBaggageCharges": 0,
"AirlineMealCharges": 0,
"AirlineTransFee": 0,
"AmountPaidByAgentCreditCard": 0,
"CateringCharge": 0,
"CessTax": 0,
"ChargeBU": [],
"CommissionType": null,
"ConvenienceCharges": 0,
"Currency": null,
"CurrencyCode": null,
"DealId": null,
"Discount": 0,
"EduCessAmount": 0,
"EduCessRate": 0,
"IsGPEnabled": true,
"IsOurServiceTaxOnBaseFarePlusYQ": false,
"IsOurServiceTaxOnComm": false,
"IsPaidByAgentCreditCard": false,
"IsServiceChargeApplicable": false,
"IsServiceTaxOnBaseFarePlusYQ": false,
"Markup": 0,
"NetFare": 0,
"OtherCharges": 0,
"OurCommRate": 0,
"OurCommission": 0,
"OurCommissionType": null,
"OurEduCessAmt": 0,
"OurEduCessRate": 0,
"OurIncentiveAmt": 0,
"OurIncentiveRate": 0,
"OurPLB": 0,
"OurPLBRate": 0,
"OurServiceTaxAmt": 0,
"OurServiceTaxRate": 0,
"OurTdsCommAmt": 0,
"OurTdsIncentiveAmt": 0,
"OurTdsPLBAmt": 0,
"OurTdsRate": 0,
"PrfCurrency": null,
"PrfROE": 0,
"PriceId": 0,
"PublishedFare": 0,
"RateOfExchange": 0,
"ReverseHandlingCharge": 0,
"SegmentFee": 0,
"ServiceTaxRate": 0,
"SeviceTax": 0,
"StockType": null,
"SupplierId": 0,
"TDSPLB": 0,
"Tax": 0,
"TaxBreakup": [],
"TdsCommission": 0,
"TdsIncentive": 0,
"TdsRate": 0,
"TotalGP": 938.64,
"TransactionFee": 0,
"WLCharge": 0,
"WhiteLabelDiscount": 0,
"YQTax": 0
},
"PromoMessage": "Early Booking Bonus—Save 10% on Your Hotel Stay",
"Rating": 3,
"RoomDetails": null
}],
"TraceId": "27ce1cd5-7a15-4a1b-80b2-a27c55d67d60"
}}
No RepliesBe the first to reply