Skip Ribbon Commands
Skip to main content
SharePoint

Passing a File by File Location to a Byte Array Web Service Method Parameter

The Invoke Web Service activity supports web methods with a byte array (byte array) parameter. The activity expects that the method wants to pass the contents of a file to the parameter. To pass a file to a web method's byte array, you need to use the File Location editor, which is unique to the Invoke Web Service activity.

To pass a file by file location to a byte array web service web service method parameter, complete the following steps:
  1. Check out and open the process you want to edit.
     
  2. Open the Invoke Web Service activity you want to edit.
       
  3. Click the Data Mappings: Input tab. The corresponding screen is displayed.
      
  4. Select the Manually Map Information from the Solution to the Web Service check box.
      
  5. Click the Web Service parameter editor. A drop down is displayed.
         
  6. Click the parameter that expects the byte array. The Type field is automatically populated with a value like byte array.
      
    Note:
    You can add more mappings by clicking the plus sign (+). Use the minus sign (-) to remove a mapping.

     
  7. From the Source field, click the drop-down arrow. A drop-down list is displayed.
     
  8. Select the File Location editor. The File Location editor icon is displayed.
     
  9. Click the File Location editor. The File Location window is displayed.
     
  10. From the first field, select the appropriate edit and set the field to a value that corresponds with the editor.

    Note:
    If you select Run as BPM Server, access will be granted or rejected based on the BPM Server credentials.
    If you select Specify credentials, complete Username, Password, and Include domain fields using the appropriate input field editors.
    The Include domain check box is optional.

      
  11. Click OK. Click OK. You saved the byte array web service method parameter to a data item.
Related Topics
Passing a base64 Encoded String to a Byte Array Web Service Method Parameter

Source
BPM Designer Topics > Overview of Activities and Activity Topics > Internet Activities > Invoke Web Service
Last modified at 7/31/2020 11:49 AM