Forum Discussion
You might want to start the pipeline with a DirectoryBrowser snap to get the list of files that you are interested in. You can follow that snap with Filter and/or Sort snaps to prune the list and sort it. Once you have a series of documents with the desired paths, you can feed that into a FileReader snap.
- SpiroTaleski4 years agoValued Contributor
Probably you will need to send the whole xml as a string.
Try, after the File Reader Snap to put Binary to Document Snap(with NONE for Encode or Decode):
and then, send the content in REST Post Snap:
BR,
Spiro Taleski- yashasvi744 years agoNew Contributor
On doing this I am getting error in Rest post snap. PFB the snapshot.
Regards,
Yashasvi- SpiroTaleski4 years agoValued Contributor
No, my proposal is to:
- After File Reader Snap(if file that you are reading is xml) to add Document to Binary and then pass the content to REST Post Snap.
BR,
Spiro Taleski
hi @yashasvi74,
Could you please provide the body of the request, and the error that you got? Did you already try to build the body of the request in the form of XML as a String? The body must include all namespaces like env:…. I worked for me in my case.
Regards,
Trung.- yashasvi744 years agoNew Contributor
I am having an xml file & that I am trying to post.
Hi @yashasvi74,
did you try to user a mapper to parse this body as a String into a $body param?
Regards,
Trung.
- bojanvelevski4 years agoValued Contributor
The REST Post snap is offering you a single file upload, so there’s no need to parse the file.
Try upload the file directly into the snap.
Related Content
- 11 months ago
- 10 months ago