How to configure an Asynchronous SAP webservice in VS2013 with async and await

Steps to follow:

  1. Right click on the project you would like the SAP webservice added.
  2. Select ‘Add’ –> ‘Service Reference’. From the Add Service Reference screen
    image
  3. Enter URL to the SAP WSDL.
  4. Select the Service.
  5. Name the service reference.
  6. Click the Advanced button. From the Service Reference Settings screen
    image
  7. Ensure the ‘Allow generation of asynchronous operations’ is checked and the ‘Generate task-based operations’ is selected.
  8. I like to change to change the ‘Collection type’ to ‘System.Collection.Generic.List’ but you don’t need to.
  9. But most importantly, uncheck ‘Reuse types in referenced assemblies’.
  10. Click ‘OK’.
  11. From the Add Service Reference screen. Click OK.