NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Wolfgang Orth on July 12, 2014, 12:43:52 PM

Title: WebClient calling several different URLs during one session
Post by: Wolfgang Orth on July 12, 2014, 12:43:52 PM
Hello again.... ;-)

My WebClient will call several different methods on the SOAPserver, mostly from one window. The .PageReceived method will then receive results in quite some different shaped.

My question: The .PageReceived-method ought to contain a State-Machine then, to direct the received data into the correct QUEUEs, TABLEs, VARs and whatever, right?

Each request has its own Button, in each Button the ClientRequest will be set to a certain value. Like ClientRequest = EQ:GetCompletVendorTable


In .PageReceived the code may look like

CASE ClientRequest
OF EQ:GetCompleteCustomerTable
  DO FillCustomerTable
OF EQ:GetCompletVendorTable
  DO FillVendorTable
OF EQ:GetAnInvoice
  DO WriteThatInvoiceIntoLocalVars
END


Did I get that right?

Thanks a lot for your patience!

bye
Wolfgang
Title: Re: WebClient calling several different URLs during one session
Post by: peterH on July 12, 2014, 04:08:57 PM
Hi Wolfgang,
Yes, that's also how I do it. Since you know which method you called you also know which structure to save the result to.

Peter