Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML via Web Assistant

Featured Replies

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?

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)

  • 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?

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

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.