Steps to Call WEB service with JSON Payload from SharePoint Workflow:

I have a request from client for calling JSON
Ideas : 
1.  Call HTTP from Sharepoint Workflow to Get and Post data from a SOAP web API.

2. Create a an event Listner to call each time item create or update methods.

3. Add an adaptor layer on top of the SOAP service which converts the SOAP response to a JSON response which is returned via the REST interface.


Steps to Call WEBservice with JSON Payload from Sharepoint Workflow:


1. Build the JSON payload in workflow. Sharepoint 2013 has new functionality of Build Dictionary which will store a dictionary value which are basically the json objects building for sending to the WSDL.
2. We need to build a WEB API with the service references to the SOAP WSDLs and instantiate the members of the SOAP service reference. We need to instantiate the ServiceManagerClient which gets created when we add a WSDL as service reference.
3. We also need a MVC project with WebAPI in Visual studio.
4. Now we need the call http action in Workflow to call the webapi.
5.  We send the JSON as object to the webAPI which will send the xml to the client application.
6. Also I have used JSONNewtonSoft assembly to parse the data using JSONConverter which I got from googling.

I will expand this bit more for more clarity once I get some more time.

Comments

Popular posts from this blog

Birthday Javascript Sharepoint 2013

Multivalue Dropdown Refiner Sharepoint 2013

Event Registration Sharepoint 2013