I'm trying to call a .Net (asmx) web service that takes a UTC date and returns the local date.
An input to the web service could look like this: 2015-04-30T23:00:00Z
The output from this call will look like this:
<?xml version="1.0" encoding="UTF-8"?>
<string xmlns="http://tempuri.org/">5/1/2015 12:00:00 AM</string>
I'm new to web services; I want to use the HttpSend
activity in my 2013 workflow but apart from Uri
, which is obvious, I'm not sure what to put into each of the fields?
The web service code:
namespace spLeaveBooking.WebServices
{
public class GetLocalTime : WebService
{
[WebMethod]
public string GetLocalTimePlease(string inputDateTime)
{
DateTime dateTime = DateTime.Parse(inputDateTime);
return dateTime.ToLocalTime().ToString();
}
}
}