Hello,
I am attempting to parse xml from a web service. i am getting a "content not allowed in prolog" error which i've debugged before. What confuses me this time is the data returned by calling the xml in a browser is significantly different than the data shown by doing a CFDump. For example, if i place the url in a web broswer, i receive this (i'm only showing the first few lines):
<ArrayOfSpecialxmlns:i="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://schemas.datacontract.org/2004/07/Some.File">
<Special>
<Id xmlns="http://schemas.datacontract.org/2004/07/Ski">300033</Id>
<CarRentalSpecial i:nil="true"/>
<Description>Some content</Description>
<Destination>Aspen</Destination>
<DestinationId>3</DestinationId>
<EquipmentRentalSpecial i:nil="true"/>
<ExpirationDate>2012-11-15T00:00:00</ExpirationDate>
When calling the same service via cfhttp and doing a cfdump, i get (again, i'm only showing the first few lines returned, as is):
[{"Name":"Aspen 7 night stay.","DestinationId":3,"Destination":"Aspen ","Description":"Buy 5 Nights, Get Two Nights Free + 1 Day Free Skiing!","MaximumSavings":2318.0,"MinimumPrice":6505.0,"NumberOfNight s":7,"Occupancy":2,"Featured":true,"FeaturedPosition":0,"ResortPositio n":2,"FeaturedFrequency":50,"RequiresGroup":false,"LodgeSpecial":
Why is the returned data different? Am i not calling the service properly? My browser seems to have no issue parsing this, but ColdFusion (version 10) can't seem to deal with this.