NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Manuel on February 08, 2013, 11:06:10 AM
-
Hi,
I need to press a button at netwebbrowse selected record, call a webservice and display the response.
The response are links to pdf files at external server, that user may choose open.
Tried calling webservice in Preupdate memory netWebForm and get the error "Net simple object init() method was no called before open method".
If write sentence net.init(), no errors at net.post but pageRecieved method doesn´t run.
I don´t known the right way to do that.
NT 6.49
Thank you in advance.
Regards
Manuel
-
Hi Manuel,
probably the best way to do it is to make a separate (window) procedure, with a NetWebClient object.
this can be fully automated to send the request to the other server, and get the reply, and then feed that reply back to the calling procedure.
You can use one of the WEbClient examples to develop this procedure, experiment with the right settings for it and so on. Then copy the procedure across to your web app.
The window itself can be set to "hidden" in the web app, so it never appears on the server.
cheers
Bruce
-
Hi Bruce
It´s working in the way you said.
Thank you
Regards
Manuel Allo