NetTalk Central

Author Topic: NetWebServiceMethod - Unknown Variable "%nIncludeMethod"  (Read 4917 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
NetWebServiceMethod - Unknown Variable "%nIncludeMethod"
« on: July 30, 2019, 04:12:03 AM »
Hi,

I got this problem in NT 11.11, but after installing 11.18, the problem is still there. So I guess it's something in the app that causes the problem.

When compiling the app, I get the error Unknown Variable "%nIncludeMethod". I tried to find the spot in the template where this variable is defined, but could only get it in NETWEB.TPW where it is used. No other file in that folder contains any reference to the variable.

Is there a setting in the app or IDE to define the variable?

Thys
« Last Edit: July 30, 2019, 04:16:48 AM by Thys »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebServiceMethod - Unknown Variable "%nIncludeMethod"
« Reply #1 on: July 30, 2019, 10:01:24 PM »
It's declared on line 19750 of netweb.tpw

#prompt('Document Methods',DROP('GET & POST[GETPOST]|GET|POST')),%nIncludeMethod,default('GETPOST')

If you are getting an error it suggests that one of your methods is set to be "Part of" a "service".
but the "part of" it is pointing to is not a NetWebService procedure. So follow that line of thought...

cheers
Bruce

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetWebServiceMethod - Unknown Variable "%nIncludeMethod"
« Reply #2 on: July 30, 2019, 10:09:56 PM »
Thanks Burce, found it. I'm not sure why it changed, must have been by accident..