NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on November 17, 2022, 02:09:11 AM

Title: Service Method always contains Field Prefix NT12.46
Post 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:
Quote
<?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
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Alberto on November 17, 2022, 07:27:37 AM
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
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Niels Larsen on November 17, 2022, 07:45:01 AM
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
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Alberto on November 17, 2022, 10:24:55 AM
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.
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Alberto on November 17, 2022, 10:28:56 AM
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>
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Niels Larsen on November 18, 2022, 01:10:22 AM
It seems to work in json but I still get prefix with in xml no matter what.
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Niels Larsen on November 18, 2022, 04:20:28 AM
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 ?
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Alberto on November 18, 2022, 06:50:58 AM
You need to change a property that sets the pefix length.
Sorry Im not at the office now to help more.
Title: Re: Service Method always contains Field Prefix NT12.46
Post by: Niels Larsen on November 19, 2022, 01:12:40 AM
Thanks for info Alberto

It becomes a bit of a hassle when I work with different lengths on the prefix.