- Joined
- Jan 18, 2018
- Messages
- 2
- Reaction score
- 0
Hi,
I'm trying to create a custom plugin that exposes a simple REST service endpoint and a few operations available from there.
The sample code provided here https://www.3cx.com/call-center/crm-integration/ does that using named pipes, although for the specific use case I need it named pipes are not helping.
A slightly modified version of the sample code would look like this:
var binding = new BasicHttpBinding();
var baseAddress = new Uri("http://localhost:5002/CustomCallService");
_serviceHost = new WebServiceHost(this, baseAddress);
_serviceHost.AddServiceEndpoint(typeof(ICallTriggerService), binding, baseAddress);
_serviceHost.Open();
Is there a reason why the http://localhost:5002/CustomCallService URL in this case doesn't return any response?
Thank you.
I'm trying to create a custom plugin that exposes a simple REST service endpoint and a few operations available from there.
The sample code provided here https://www.3cx.com/call-center/crm-integration/ does that using named pipes, although for the specific use case I need it named pipes are not helping.
A slightly modified version of the sample code would look like this:
var binding = new BasicHttpBinding();
var baseAddress = new Uri("http://localhost:5002/CustomCallService");
_serviceHost = new WebServiceHost(this, baseAddress);
_serviceHost.AddServiceEndpoint(typeof(ICallTriggerService), binding, baseAddress);
_serviceHost.Open();
Is there a reason why the http://localhost:5002/CustomCallService URL in this case doesn't return any response?
Thank you.