cancel
Showing results for 
Search instead for 
Did you mean: 

File upload and file download

Former Member
0 Kudos

Hi,

I need to use file upload UI element in my screen. But on clicking the upload button, i want to extract this file and map it to a XI webservice.

Can someone please help me on that.

Regards,

Shobhit

Accepted Solutions (1)

Accepted Solutions (1)

sid_sunny
Contributor
0 Kudos

HI Shobhit,

In general all the web services are generic (XI, ABAP, EJB etc) just map the resource property of the file Upload UI to the proper node of the webservice.

Regards

Sid

Answers (1)

Answers (1)

Abhinav_Sharma
Contributor
0 Kudos

Hi Shobhit,

Normally, you execute any webservice irrespective of the technology underlying. For this scenario, I hope following should be the approach to map it with XI Web service:

1 Bind a attribute of type binary to the data property of the file upload element.

2 Read the file into ByteArrayInputStream ByteArrayInputStream dataStream =new ByteArrayInputStream(<ur attribute of type binary>)

3 Set the nodes that you have created for executing webservice.

4 Execute the webservice.

Abhinav Sharma