bobthedog Posted June 21, 2010 Posted June 21, 2010 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?
Smef Posted June 21, 2010 Posted June 21, 2010 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)
bobthedog Posted June 21, 2010 Author Posted June 21, 2010 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?
Smef Posted June 21, 2010 Posted June 21, 2010 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.
Recommended Posts
This topic is 5267 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now