NetTalk Central

Author Topic: WebService - Access to XML.AssignField procedure  (Read 2065 times)

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
WebService - Access to XML.AssignField procedure
« on: July 05, 2014, 07:08:26 AM »
Hi Bruce
I have a web service that returns a view.  In my view is a date, I would like to format this date before it is sent.  I do not seem to have access to the xml.AssignField procedure to do this though.  Any way I can do this?

Thanks
Debra

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: WebService - Access to XML.AssignField procedure
« Reply #1 on: July 09, 2014, 05:13:45 AM »
The webServiceMethod template generates a "local object" called xml.
In your case you would need to
a) tell the webServiceMethod _not_ to generate the declaration and
b) add the xFiles Local object extension, being sure to name the object there
xml
(NOT MyXML1)
Then you will have access to all the derived methods.

The switch (for (a) above) is included in 8.18

Cheers
Bruce



debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
Re: WebService - Access to XML.AssignField procedure
« Reply #2 on: July 09, 2014, 06:36:25 AM »
Perfect, thank you!