NetTalk Central

Author Topic: Service Method always contains Field Prefix NT12.46  (Read 4059 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Service Method always contains Field Prefix NT12.46
« 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #1 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
-----------
Regards
Alberto

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #2 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #3 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.
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #4 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>
-----------
Regards
Alberto

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #5 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.

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #6 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 ?

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #7 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.
-----------
Regards
Alberto

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Service Method always contains Field Prefix NT12.46
« Reply #8 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.