I have a web service. This is the interface:
<ServiceContract()>
Public Interface IService1
<OperationContract()> _
Function SendEmail(EmailAddress As String) As Boolean
End Interface
This is the implementation inside the svc file :
Public Function SendEmail(emailaddress As String) As Boolean Implements IService1.SendEmail
Return Extras.SendEmail(0, 22, emailaddress, "test Email", "Test Email", 0)
End Function
Now, I would like to call this SendEmail function from within my devextreme application. I am trying this, which obviously does not work ( hence this question ):
client = new DefaultHttpClient();
request = new HttpGet(_URL + "/SendEmail(email@subdomain.com");
request.setHeader("Accept", "application/json");
request.setHeader("Content-type", "application/json");
httpClient = new DefaultHttpClient();
response = httpClient.execute(request);
responseEntity = response.getEntity();
Can anyone please help me execute the SendEmail function from my devextreme app?