<?xmlversion="1.0" encoding="utf-8" ?><YourMembership><Version>1.95</Version><ApiKey>00000000-0000-0000-0000-0000000000</ApiKey><CallID>001</CallID><SaPasscode>******</SaPasscode><Call Method="Sa.Members.All.GetIDs"></Call></YourMembership>
into a memory variable CXML:
and then try to send it to a server with this code:
oHTTP = CREATEOBJECT("wwHttp") oHTTP.HTTPConnect("api.yourmembership.com",,,.T.) oHTTP.nHttpPostMode = 4 && XML oHTTP.AddPostKey(CXML) LCHTML="" LNTEXT=0 lnResult=oHTTP.HTTPGetEx("/",@lcHTML,@lnText) ? "RESULT:"+TRIM(lcHTML)
But I always get back the error message:
XML packet is malformed or otherwise unreadable.
The YourMembership company tells me that if they send my XML packet with normal .NET/C# code to their server it runs fine and gives a result XML. But they don't support VFP, so they can't tell me where I'm going wrong.
Any suggestions as to how I could solve this? (I don't want to have to learn C# --- Aargh :(
Hermann