PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB23 httpSendForm timeout
WB23 httpSendForm timeout
Iniciado por guest, 17,jun. 2018 01:59 - 2 respuestas
Publicado el 17,junio 2018 - 01:59
Hi All,

I'm trying to create a very simple webservice in WB23 that will ultimately be used by a WM app. I have 2 awp pages - one is the "testing" with a 2 field form and the other is the "service". On my dev machine, both pages display when I enter their url directly and the webservice page shows when I use PageDisplay from the test page. However, the test page hangs when I use httpSendForm with either httpPost or httpGet. I have a simple stringdisplay in the service's global server area and the breakpoint is never reached - the calling page times out. Any thoughts on why a SendForm isn't working?

Thanks, Bill
Publicado el 17,junio 2018 - 13:19
Hi Bill

you don't need a second page to test your webservice (at least in get mode)

to simplify and identify the problem, just type the url of the webservice page in your browser.

You should get the result sent by the stringdisplay. If you don't, the problem is in your awp 'webservice' page. If you do your problem was in the test 'calling' page.

Now, your stringdisplay should be in the INIT server side, not the global definition area.

Finally, your webservice page should never DISPLAY (ie your should never see what's in the page editor in webdev), you should always get only the result from your stringdisplay.

If you want an example, I'm using this technique (in post mode) in wxreplication

Best regards
Publicado el 18,junio 2018 - 02:41
Thank you Fabrice! I moved the PageParameter to the server init and called that page from my WM app instead of a test page within the same WB site and it worked perfectly...once I ensured all params were being sent and received as ansi strings.

Bill