Skip to Content
avatar image
Former Member

File upload and file download

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 05, 2007 at 03:57 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 05, 2007 at 04:19 AM

    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

    Add comment
    10|10000 characters needed characters exceeded