June 21, 201015 yr Hi, I am trying to send some XML via http post to my test server using 360works Web Assistant. I have altered example layout number 4 in the example database to read... WASetRawPostData('<?xml version ="1.0" encoding ="ISO -8859 -1"? > 25000 CreditLimit > 0 CreditUsed > ') WAGetURL("https://garytest.nordic-e.com/__API__/customer/1" ; "username=testuser" ; "password=testpass") where WASetRawPostData is the data I want to post. It logs in fine, but when I try and post the data it comes back with a "An Evaluation Error Occurred: 102" Anyone can see where I'm going wrong here?
June 21, 201015 yr I think that the issue is with your quotation marks. You will need to escape the quotations, or else filemaker will think that you are ending your quotes and have errors when searching for fields in the database with the names you have there. You may want to put your XML in a text field, and then reference the text field in the WASetRawPostData function so that you don't have to do the escaping yourself. You could write a script step like: Set Variable: $Post - WASetRawPostData ( MyTable::Myfield)
June 21, 201015 yr Author Hi David! It worked! I set it up as a text field and a variable and it done the business. One other question. This is http POST can we deal with http PUT as well?
June 21, 201015 yr WebAssistant does not support PUT at this time. If you are interested in having us customize this for you to support PUT please send an email to [email protected] and we will get you an estimate for this customization.
Create an account or sign in to comment