The returnXML="false" doesn't seem to stop the application returning XML. It seems to be ignored and returns the output inside a <value></value> tag.
Perhaps I'm doing something silly, but I just thought I'd check to see if anything has changed in 4.5.x with regards to this, as I know some of the documentation is a little out of date for base and 4.5.x.
Okay figured it out, new it would be something i had missed :) my entry in the rest extension config was calling th wrong alias, but my code was using the method defined here:
Base returnXml="false" not working
Hi,
I just wondered if anyone else had this issue with 4.5.2, in that when calling a base url, like this:
The returnXML="false" doesn't seem to stop the application returning XML. It seems to be ignored and returns the output inside a <value></value> tag.
Perhaps I'm doing something silly, but I just thought I'd check to see if anything has changed in 4.5.x with regards to this, as I know some of the documentation is a little out of date for base and 4.5.x.
I am experiencing the same issue in 4.6.1 (Juno) version.
I use returnXml=false directly in the .cs file in App_code directory
however the result is returned together with <value></value> element.
Does anyone experience the same issue or knows how to solve it?
Thanks,
Julius Bartkus
Hi there yes I seem to be getting the same issue I have
returnXml="false"
In the restConfig but it still returns XML any help would be very much appreciated.
L
Did you reload the config settings e.g. via touching the web.config or recycling the app pool?
Thomas
Had this working in 4,5,2 what's the type that your method is returning, string/int? and restart your app as Thomas suggested
Cheers,
Richard
Hey guys yeah i tried touching the web config and my method is returning a string.
bit stumped im sure i must just be mssing something obvious.
L
Okay figured it out, new it would be something i had missed :) my entry in the rest extension config was calling th wrong alias, but my code was using the method defined here:
http://our.umbraco.org/wiki/reference/umbraco-base/simple-base-samples
I dont think the rest config was even being used.
Thanks for your help guys!
L
is working on a reply...