Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
12 replies
Subscribers
5 subscribers
Views
4739 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
What is the best way to send XML from Appian to REST Service
mohammedz
A Score Level 2
over 7 years ago
Hi All,
We have a requirement to send a XML generated from Appian to External Service [REST Service]. This is not a WSDL Service.
What would be the best way to POST the xml to REST API
If anyone experienced similar requirement in your way, Please share your thoughts
OriginalPostID-241342
Discussion posts and replies are publicly visible
Parents
0
chetany
A Score Level 1
over 7 years ago
@mohammedz, You have these options:
1. a!httpWrite() function - This can be used from SAIL form. It returns a writer. So, you need to use it in SAIL form.
2. Use the HTTP Query Smart Service from the process model. You can use the POST request and pass the data. You may need to specify the application or content type in the headers of the request to specify that you are passing XML in the body/headers. I would prefer this, as it is easy to setup/configure(compared to the function where you need to use it in SAIL form in combination with bind() ). If possible, you could also create a reusable process model for this, and call it from a SAIL form in a saveInto using the a!startProcess function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chetany
A Score Level 1
over 7 years ago
@mohammedz, You have these options:
1. a!httpWrite() function - This can be used from SAIL form. It returns a writer. So, you need to use it in SAIL form.
2. Use the HTTP Query Smart Service from the process model. You can use the POST request and pass the data. You may need to specify the application or content type in the headers of the request to specify that you are passing XML in the body/headers. I would prefer this, as it is easy to setup/configure(compared to the function where you need to use it in SAIL form in combination with bind() ). If possible, you could also create a reusable process model for this, and call it from a SAIL form in a saveInto using the a!startProcess function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data