NetTalk Central

Author Topic: xml tags in webservice method  (Read 2668 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
xml tags in webservice method
« on: June 10, 2014, 12:55:07 AM »
There's an option for setting xml tags on the incoming parameters in a ws method, but it doesn't seem like they're being picked up and used by the program.
Must I use field names that correspond to the tag names set by the client or am I missing something here?

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: xml tags in webservice method
« Reply #1 on: June 10, 2014, 02:45:29 AM »
which build are you on Peter? There have been some updates to this in recent builds.

cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: xml tags in webservice method
« Reply #2 on: June 10, 2014, 02:55:26 AM »
Sorry, it's 8.16

You can easily reproduce: add a parameter to dbCustomer in web77 and give it an xml tag. The only place the tag is being picked up is in the GenerateHelp routine.

Peter
« Last Edit: June 10, 2014, 04:28:26 AM by peterH »

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: xml tags in webservice method
« Reply #3 on: June 13, 2014, 01:47:44 AM »
Hi Bruce,

Did you get a chance to look into this?

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: xml tags in webservice method
« Reply #4 on: June 13, 2014, 07:14:20 AM »
yes, but I haven't completed the fix yet.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: xml tags in webservice method
« Reply #5 on: June 18, 2014, 01:31:18 AM »
Hi Peter,

>> There's an option for setting xml tags on the incoming parameters in a ws method, but it doesn't seem like they're being picked up and used by the program.

it depends on the type. This is for Table, Queue and Group types. For basic (string etc) types the variable name must match the incoming xml. More specifically the variable's "External Name" (if it exists) must match. So if, for example, you have a local variable then either name it the same as the XML or set the External name the same as the XML.

Cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: xml tags in webservice method
« Reply #6 on: June 18, 2014, 01:51:44 AM »
Hi Bruce,

Yes, that's what I've done to make it work.

Thanks
Peter