NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: markster on November 06, 2014, 07:46:06 AM

Title: WebService feature request for return Q
Post by: markster on November 06, 2014, 07:46:06 AM
I would like to request that an embed point be inserted in the BuildResultFields routine in a WebService procedure before a returned Queue is saved to XML. Then there would a place to insert XML save options.

BuildResultFields  Routine
! Start of "Start of BuildResultFields Routine"
! [Priority 5000]

! End of "Start of BuildResultFields Routine"
  xml._indent = IndentLen
  xml.SaveEncoding = 'utf-8'
  If Records(p_web.ServiceErrorQueue)
    xml.save(p_web.ServiceErrorQueue,'ServiceErrors','Error')
    packet.append(sub(xml.xmldata,1,xml.xmldatalen))
  Else
    If Records(p_web.ServiceResultQueue)
      xml.save(p_web.ServiceResultQueue,'ServiceResults','Result')
      packet.append(sub(xml.xmldata,1,xml.xmldatalen))
    End
    If records(p_web.ServiceResultQueue) = 0
      packet.append(all(' ',IndentLen) & '<'&p_web.Nocolon('InvoiceQueryResult',Net:SingleUnderscore+Net:NoSpaces)&'>'......
    End ! Condition
    If records(p_web.ServiceResultQueue) = 0
===================>>>> new embed point here
      xml.save(QInvoice,'','QInvoice')
      packet.append(sub(xml.xmldata,1,xml.xmldatalen))
    End ! Condition
  End

Thanks, Mark
Title: Re: WebService feature request for return Q
Post by: Bruce on November 07, 2014, 07:22:39 AM
done for 8.32