NetTalk Central

Author Topic: WebClient calling several different URLs during one session  (Read 2773 times)

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
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

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: WebClient calling several different URLs during one session
« Reply #1 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