In the following steps, you will modify the workflow to use the Call Web Service action instead of the Create item action to create the material record in SAP. Navigate to the Material Maintenance Requests list and from the workflow Settings select Manage Workflows with Nintex Workflow.
Select the workflow for editing.
Disable (or Delete) the Create item activity.
Add a Call web service activity as shown below.
Configure the Call web service activity:
URL = http://sp2013/vti bin/SAPMaterialWebService.svc/mex
Username / Password = (specify credentials of user with sufficient privileges to invoke the service)
Web method = CreateSAPMaterial
Web service input: The SOAP message will contain the references to the Item Properties of the Material Maintenance Request list.
Save and then Publish the workflow. Repeat the other steps described in the first scenario to verify the functionality of the updated workflow.
Create a new Material and approve the Material request.
Verify the result in SAP.