I have a scenario where I need to access a WCF web service (locally hosted) from a SharePoint 2013 Visual Studio workflow. Below given is what I have done so far:
This is what the workflow does:
This is my Variables List
This is the message in the 1st WriteToHistory
This is the property window of 'BuildDynamicValue'
The HTTPSend activity and its propertie are shown below:
RequestHeaders Property of the WCF call
Final WriteToHistory's Message
The Code Behind of the WCF Services are shown below:
IService1.cs Data Contract
Service1.cs Method Implementation
DTOTest class
What Should Happen?: The 2nd WriteToHistory should write 'You Accessed the WCF service" message taken from the WCF service.
Please Help!
** ******UPDATE 1:****** **
I manage to get a REST web service running with methods using json. How can I get the values of a custom class object returned by the REST web service. This is what I get on the browser when I hit the web service uri.
{"GetDTOTestResult":{"DateTimeNow":"The DTOTest was returned at 9/15/2014 10:28:49 AM","Message":"Sample Message"}}
How can I get the DateTimeNow property via the GetDynamicValueProperties activity?