Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

XML packet is malformed or otherwise unreadable

$
0
0
XML packet is malformed or otherwise unreadable
Web Connection 5.0
XML packet is malformed or otherwise unreadable
Jan. 21, 2013
02:43 pm
3P40VIW7UShow this entire thread in new window
Gratar Image based on email address
From:Hermann Strijewski
To:All
I loaded THIS xml request
<?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


Viewing all articles
Browse latest Browse all 10393

Trending Articles