Jump to content
Server Maintenance This Week. ×

XML via Web Assistant


This topic is 5068 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

This topic is 5068 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.