NetTalk Central

Author Topic: NetSimple Object Question  (Read 3907 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
NetSimple Object Question
« on: March 14, 2013, 05:55:43 AM »
NetSimple Object only work in a windows?? i try to use in a source procedure with netwebclient.

My intention is call  a webservice via source procedure, is possible??

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetSimple Object Question
« Reply #1 on: March 14, 2013, 06:38:07 AM »
all TCP/IP communications is event driven.
So it needs an ACCEPT command, which in turn needs a window.
But of course you can Hide the window.

cheers
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: NetSimple Object Question
« Reply #2 on: March 14, 2013, 10:28:18 AM »
do you have example?? i have a search window with a values, i need to call a webservice and then display the result in a browse, how i can call a window, i try in a button in a search form:

p_web.Script(p_web.WindowOpen('WebServiceClient'))

but received The page cannot be found.. my windows is hide 0{prop:hide}=True

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: NetSimple Object Question
« Reply #3 on: March 14, 2013, 01:00:24 PM »
i found a good example Mapping and Geocode Part 2...

thanks..

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetSimple Object Question
« Reply #4 on: March 14, 2013, 11:00:38 PM »
you wouldn't call it like this;

p_web.Script(p_web.WindowOpen('WebServiceClient'))

because that's an instruction for the browser to do something - and you are communicating with the service from the _server_ not the browser.

On the server side you can just call the procedure

WebServiceClient()

it's a normal Clarion procedure, so you call it in the normal way.

Cheers
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: NetSimple Object Question
« Reply #5 on: March 15, 2013, 02:15:06 AM »
thanks, I read the web service successfully, but is very importat the POST(EVENT:CloseWindow)...