Activate eWay-CRM API (WcfService) on the server
Description
New Versions of eWay-CRM
Since eWay-CRM 6.0, there is no need of any further installation or configuration to run the eWay-CRM. The API.svc JSON endpoint (InsecureAPI.svc in case of HTTP) runs within all standard eWay-CRM server component installations. Read more at our developer site dev.eway-crm.com.
Previous Versions and Backward Compatibility
The following artice describes installation of the deprecated eWay-API endpoint /WcfService/Service.svc. That might be still usefull for older versions of eWay-CRM or setting up backward compatibility.
Version
All versions of eWay-CRM
Difficulty
Medium
Resolution
- Go to IIS and find eWay-CRM Web Service (in this case, it is 22841).
- Right-click the WcfService subfolder and create an application from it under the same application pool as is eWay-CRM Web Service.
- Now, you need to open Web.config file in the WcfService folder and set the path to the web service - remember, you need to add eWayWS.asmx in the end.
- Now, eWay-CRM API under the filled web service address should be working.
- To test whether API is configured properly open web browser and insert:
<yourwebserviceaddress>/WcfService/Service.svc/CheckStatus
- If there is
"ReturnCode":"rcSuccess", API is configured correctly. In other case, there is an error in configuration. Error will be in API log.
CheckStatus is not available on API for eWay-CRM 4.3 and older. You can look at service web page:
<yourwebserviceaddress>/WcfService/Service.svc
You should see the list, where you find link to WSDL file which contains all API operations. Anyway, this won't test whether API connection with eWay-CRM web service works properly.
- You can also test API by prepared PHP script that calls the API and checks responses. You may also use eWay-CRM Mobile to test the API.