# RESTWebServices missing input parameters

**URL:** <https://community.linx.software/community/t/restwebservices-missing-input-parameters/301>\
**Category:** Support\
**Created:** [July 17, 2018, 3:26pm UTC](https://community.linx.software/community/t/restwebservices-missing-input-parameters/301 "2018-07-17T15:26:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![igiordani](https://community.linx.software/community/letter_avatar_proxy/v4/letter/i/8dc957/32.png) [@igiordani](https://community.linx.software/community/u/igiordani)\
**Post date:** [July 17, 2018, 3:26pm UTC](https://community.linx.software/community/t/restwebservices-missing-input-parameters/301/1 "2018-07-17T15:26:57Z")

</div>

Hi,

I’m wondering to set up a RESTWebServices, in order to load up several parameters using a POST command and a multipart/form-data input message, composed by two strings and one file (PDF).

Since I don’t have any issue to import swagger WS description, I’m not able to catch the input parameters (guessing $.Input).

Thank you in advance for your support.

![image](https://community.linx.software/uploads/default/original/1X/4b5fbb3a8bebb5e6e5706c1e8138d581ea027e6c.png)

![image](https://community.linx.software/uploads/default/original/1X/193a751844d2df7f23c81ee87040338dd730adcd.png)

In attachment the WS swagger json definition.

[swagger.json.txt](https://community.linx.software/uploads/default/original/1X/e44b047239acad942d9bd9f20b487e4b61874ddf.txt) (2.3 KB)

---

<div class="post-metadata">

**Author:** ![Dawie\_Botes](https://community.linx.software/community/user_avatar/community.linx.software/dawie_botes/32/288_2.png) [@Dawie\_Botes](https://community.linx.software/community/u/Dawie_Botes)\
**Post date:** [July 19, 2018, 1:30pm UTC](https://community.linx.software/community/t/restwebservices-missing-input-parameters/301/2 "2018-07-19T13:30:34Z")

</div>

Hi,

I’ve played with your definition. I don’t think Linx allows FormData yet. I will confirm for you. The rest works: Body, Query, Path.

Do you have control of the consuming service as well? You could use Body and accept a Base64 string as the file?

---

<div class="post-metadata">

**Author:** ![igiordani](https://community.linx.software/community/letter_avatar_proxy/v4/letter/i/8dc957/32.png) [@igiordani](https://community.linx.software/community/u/igiordani)\
**Post date:** [July 19, 2018, 2:00pm UTC](https://community.linx.software/community/t/restwebservices-missing-input-parameters/301/3 "2018-07-19T14:00:32Z")

</div>

Hi Dawie,

Yes, I have control of consuming services, so I can change the invoke method as well.  
Is it possible to get several parameters (including a file) in Body, using POST method with Linx? If yes, could you please provide me an example? I’ve played with the other options but I didn’t succeed.

Thank you,  
Ivan

---

<div class="post-metadata">

**Author:** ![Dawie\_Botes](https://community.linx.software/community/user_avatar/community.linx.software/dawie_botes/32/288_2.png) [@Dawie\_Botes](https://community.linx.software/community/u/Dawie_Botes)\
**Post date:** [July 19, 2018, 2:21pm UTC](https://community.linx.software/community/t/restwebservices-missing-input-parameters/301/4 "2018-07-19T14:21:10Z")

</div>

Hi,

Yes, I’ll write up a quick example. I’ll do both the consume and API in a single solution, just different processes.

Dawie

---

<div class="post-metadata">

**Author:** ![Dawie\_Botes](https://community.linx.software/community/user_avatar/community.linx.software/dawie_botes/32/288_2.png) [@Dawie\_Botes](https://community.linx.software/community/u/Dawie_Botes)\
**Post date:** [July 19, 2018, 3:10pm UTC](https://community.linx.software/community/t/restwebservices-missing-input-parameters/301/5 "2018-07-19T15:10:02Z")

</div>

Hi,

Here’s a quick example of how to do a Base64 upload Server and Client.

NB: The Service’s Base URI must not use the same port number as Linx (8022). In this example I’m using no port number (thus it defaults to 80)

Just set the Input parameters for the UploadAFile process. I’m writing the files to the c:\temp folder.

To show the way the process works I’m also writing the Source and Target Base64 strings to text files.

[FileUploadExample.lsoz](https://community.linx.software/uploads/default/original/1X/0652c8cd11738b4bb9896f2d3abc51d7efe11499.lsoz) (8.9 KB)

Regards,  
Dawie

---

<div class="post-metadata">

**Author:** ![igiordani](https://community.linx.software/community/letter_avatar_proxy/v4/letter/i/8dc957/32.png) [@igiordani](https://community.linx.software/community/u/igiordani)\
**Post date:** [July 19, 2018, 3:42pm UTC](https://community.linx.software/community/t/restwebservices-missing-input-parameters/301/6 "2018-07-19T15:42:54Z")

</div>

Hi Dawie,

Thank you! I’m gonna check your solution, I’ll provide you a feedback asap.

Regards,  
Ivan

– Update  
Yep, your solution works perfectly. Thank you!
