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
June 28, 2017, 07:35:58 AM *
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]
  Print  
Author Topic: NetWebServiceMethod: JSON plus more parameters  (Read 59 times)
Thys
Full Member
***
Posts: 201



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

Hi,

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:

{"Address":[
   {
      "guid":"",
      "description":"First address",
      "physicaladdress":"1 Short Street, Centurion",
      "postaladdress":"P.O.Box 1234, Centurion"
   },
   {
      "guid":"",
      "description":"Second address",
      "physicaladdress":"2  Long Street, Centurion",
      "postaladdress":"P.O.Box 7, Centurion"
   }
   ]
}


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



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.
http://www.capesoft.com/accessories/NetTalkUserGroup.htm

Cheers
Bruce
Logged
Pages: [1]
  Print  
 
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