NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on November 17, 2022, 02:09:11 AM
-
Hi Bruce
I would like to remove the Field Prefixes from the Returns (XML).
Therefore, I have removed the check in "Include Field Prefixes" but it makes no difference.
Result:
<?xml version="1.0" encoding="utf-8"?>
<databaseTest_response xmlns="database">
<test>
<test:name>Ole</test:name>
<test:name>Jens</test:name>
<test:name>Hans</test:name>
</test>
<skippedrecords>0</skippedrecords>
<resultcomplete>1</resultcomplete>
</databaseTest_response>
I have attached a test app.
Regards Niels
-
Hi Niels, as I can see in your image you are setting the "Include Field Prefixes" in the Parameters tab and not in the Resluts tab.
Regards
-
You are absolutely right Alberto but the same checkbox on the results tab has no effect. There is always a prefix on the result.
But thanks
-
If I recall ok, I had to cut those prefixes manually in a server made using NT11.
I willl test it using NT12 and let you know.
-
Cheking using web77 example it works ok with and without prefixes
<?xml version="1.0" encoding="utf-8"?>
<dbProduct_response xmlns="Database">
<ProductDetails>
<ID>1</ID>
<NAME>File Manager 2</NAME>
<RRP>239</RRP>
</ProductDetails>
</dbProduct_response>
-
It seems to work in json but I still get prefix with in xml no matter what.
-
An update to xFiles4+ made no difference.
But when I changed the prefix from 4 characters to 3 it works.
@Bruce Is this a bug or ?
-
You need to change a property that sets the pefix length.
Sorry Im not at the office now to help more.
-
Thanks for info Alberto
It becomes a bit of a hassle when I work with different lengths on the prefix.