NetTalk Central

Author Topic: How do I XML insert Parent and related Child data  (Read 4642 times)

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
How do I XML insert Parent and related Child data
« on: March 06, 2016, 12:59:48 PM »
Hello

I have set up a NT9 web service

I have lead providers posting xml and the data inserts into a single lead table fine.

I now want to explore inserting xml data into the parent table AND some of that data into a related child table, how would I do this?

Many thanks

Edwin
C10 ABC and NT 9.01
Windows 10 pro


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: How do I XML insert Parent and related Child data
« Reply #1 on: March 08, 2016, 09:54:05 PM »
Hi Edwin,

you can have multiple incoming parameters, then what you do with them is up to you.
In this case you would add a bit of hand-code to write the vhild records away;
see
http://www.capesoft.com/docs/NetTalk9/NetTalkWebServices.htm#YourCode

Cheers
Bruce

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: How do I XML insert Parent and related Child data
« Reply #2 on: March 09, 2016, 02:35:17 AM »
Hi Bruce

Thanks for explaining

BUT not registering with my brain just yet :-) but I get the fact that if data is sent I can manipulate that data and insert certain data into related tables but I cant see where / how to add in those extra data items for the related table.

If I want  to populate a child record how do I get the paramters to be used to show in the service documentation / wsdl file?

I feel I am missing something fundamental here,

Are there any examples of this anywhere?

Cheers

Edwin

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: How do I XML insert Parent and related Child data
« Reply #3 on: March 09, 2016, 06:30:05 PM »
Check out the xfiles docs as there are examples of creating and consuming these types of xml structures.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: How do I XML insert Parent and related Child data
« Reply #4 on: March 10, 2016, 01:45:02 AM »
Hi Edwin,

Probably best to come to the User Group webinar today (Thursday) so I can work through this with you.
It should be simple, but if you mis some basic concept then it will look harder than it is.

cheers
Bruce

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: How do I XML insert Parent and related Child data
« Reply #5 on: March 10, 2016, 06:01:31 AM »
Hi

Joining webinar's is a little difficult for me at present,

Currently working as a UK Mortgage Adviser (one of my other hats :-) ) 12 noon to 8pm then travelling home, back in my home my office around 8:45pm.

I gather that at the moment the NT9 templates do not cater for ralated tables and all auto documentation is for the table specified and I will need to look at constructing some embed source code to parse the xml received.

I will study the xfiles example that Kevin has mentioned and hope that you do include this topic in tonights webinar so I may catch up with it in a recording :-)


Much Appreciated

Edwin


Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: How do I XML insert Parent and related Child data
« Reply #6 on: June 17, 2016, 12:30:30 AM »
Hi Bruce

>you can have multiple incoming parameters, then what you do with them is up to you.
>In this case you would add a bit of hand-code to write the vhild records away;

yes this is what I have now done :-)

Thanks for your help

Cheers

Ed