NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: peterH on June 10, 2014, 12:55:07 AM

Title: xml tags in webservice method
Post by: peterH 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
Title: Re: xml tags in webservice method
Post by: Bruce 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
Title: Re: xml tags in webservice method
Post by: peterH 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
Title: Re: xml tags in webservice method
Post by: peterH on June 13, 2014, 01:47:44 AM
Hi Bruce,

Did you get a chance to look into this?

Peter
Title: Re: xml tags in webservice method
Post by: Bruce on June 13, 2014, 07:14:20 AM
yes, but I haven't completed the fix yet.
Title: Re: xml tags in webservice method
Post by: Bruce 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
Title: Re: xml tags in webservice method
Post by: peterH on June 18, 2014, 01:51:44 AM
Hi Bruce,

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

Thanks
Peter