Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
Home arrow Forum arrow NetTalk Web Serverarrow Web Server - Ask For Helparrow NetWebServiceMethod: JSON plus more parameters
NetTalk Central
October 19, 2017, 08:58:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
   Home   Help Search Login Register  
Pages: [1]
Author Topic: NetWebServiceMethod: JSON plus more parameters  (Read 140 times)
Full Member
Posts: 224

View Profile WWW Email
« on: June 14, 2017, 05:42:24 AM »


I have a method dbAddress for normal CRUD functionality. When I do an insert (POST with content application/json in the body) for multiple records, it works fine.

But I want to pass extra values to the method as well. It only works when the values are passed in the URL, which I don't want to. When it's added to the header, it doesn't receive the value. The only option is to add it to the JSON in the body, but I can't seem to get the formatting right - can extra values be added via the JSON in the body?

The JSON in the body looks like this:

      "description":"First address",
      "physicaladdress":"1 Short Street, Centurion",
      "postaladdress":"P.O.Box 1234, Centurion"
      "description":"Second address",
      "physicaladdress":"2  Long Street, Centurion",
      "postaladdress":"P.O.Box 7, Centurion"

« Last Edit: June 14, 2017, 05:55:36 AM by Thys » Logged
Global Moderator
Hero Member
Posts: 8786

View Profile
« Reply #1 on: June 20, 2017, 12:02:23 AM »

I think this one might best be discussed at the User Group webinar on Thursday Thys.

Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.

Lost Password?
No account yet? Register
home contact search contact search