Is this POST and httpHeaders script syntax correct?

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Mon Sep 17 06:18:35 EDT 2012


Hi folks,
I'm trying to post a soap login message to a web service and I'm getting no response at all. 

I can prove the call using SOAPClient. So, as this is my first experiment with posting to a server, I suspect my 'POST' button script.

Any clues?

on mouseUp
   --prepare for the response
   put empty into field "loginResponse"
   set the LoginResponse of this card to null
   --prepare the soap login envelope
   put the LoginRequest of this card into tLoginRequest
   put urlencode (tLoginRequest) into tRequest
   --prepare the HTTP POST request
   set the httpHeaders to field "LoginHeaders"
   post tRequest to URL field "LoginURL"
   --Process the login response
   set the LoginResponse of this card to it
   put it into field "loginResponse"
end mouseUp

Best,
Keith..


More information about the use-livecode mailing list