NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on March 14, 2013, 05:55:43 AM

Title: NetSimple Object Question
Post by: osquiabro 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??
Title: Re: NetSimple Object Question
Post by: Bruce 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
Title: Re: NetSimple Object Question
Post by: osquiabro 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
Title: Re: NetSimple Object Question
Post by: osquiabro on March 14, 2013, 01:00:24 PM
i found a good example Mapping and Geocode Part 2...

thanks..
Title: Re: NetSimple Object Question
Post by: Bruce 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
Title: Re: NetSimple Object Question
Post by: osquiabro on March 15, 2013, 02:15:06 AM
thanks, I read the web service successfully, but is very importat the POST(EVENT:CloseWindow)...