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
10 replies
Subscribers
10 subscribers
Views
4404 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Is there a way to send an Http Post with an atachment to a restful web service?.
karls
over 10 years ago
Is there a way to send an Http Post with an atachment to a restful web service?...
OriginalPostID-130561
OriginalPostID-130561
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 10 years ago
In my case I am making a Web Service call using the plug-in therefore I'm passing a string which contains the SOAP envelope and one of the fields (Stream) in the envelope is the content of the file. That said, since I'm sending a SOAP envelope my headers are:
="Content-Type"
="application/soap+xml; charset=utf-8"
and my SOAP envelope looks like this
<soap:Envelope xmlns:soap='
www.w3.org/.../soap-envelope'
xmlns:soap1='
schemas.microsoft.com/.../'>
<soap:Header/>
<soap:Body>
<soap1:CopyIntoItems>
<soap1:SourceUrl>Default</soap1:SourceUrl>
<soap1:DestinationUrls>
<soap1:string>
xxxx.xxxxx.net/.../soap1:string>
</soap1:DestinationUrls>
<soap1:Fields>
<soap1:FieldInformation Type='Text' DisplayName='xxxxxx' InternalName='xxxxx' Id='22222222-2222-2222-2222-222222222222' Value='xxxxx'/>
</soap1:Fields>
<soap1:Stream>dGhpcyBpcyBhIHRleHQgZmlsZQ==</soap1:Stream>
</soap1:CopyIntoItems>
</soap:Body>
</soap:Envelope>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 10 years ago
In my case I am making a Web Service call using the plug-in therefore I'm passing a string which contains the SOAP envelope and one of the fields (Stream) in the envelope is the content of the file. That said, since I'm sending a SOAP envelope my headers are:
="Content-Type"
="application/soap+xml; charset=utf-8"
and my SOAP envelope looks like this
<soap:Envelope xmlns:soap='
www.w3.org/.../soap-envelope'
xmlns:soap1='
schemas.microsoft.com/.../'>
<soap:Header/>
<soap:Body>
<soap1:CopyIntoItems>
<soap1:SourceUrl>Default</soap1:SourceUrl>
<soap1:DestinationUrls>
<soap1:string>
xxxx.xxxxx.net/.../soap1:string>
</soap1:DestinationUrls>
<soap1:Fields>
<soap1:FieldInformation Type='Text' DisplayName='xxxxxx' InternalName='xxxxx' Id='22222222-2222-2222-2222-222222222222' Value='xxxxx'/>
</soap1:Fields>
<soap1:Stream>dGhpcyBpcyBhIHRleHQgZmlsZQ==</soap1:Stream>
</soap1:CopyIntoItems>
</soap:Body>
</soap:Envelope>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data