Full width home advertisement

Post Page Advertisement [Top]

Custom Web Service in few steps D365FO


Today, I will explain how to create basic custom Web Service in D365FO with few steps.



Step-1 Create a class with name of IntegrationService  and write a method get foo.

Reference screenshot

public class IntegrationService  
{
    public str getFoo()
    {
        return "Hello World";
    }
}

Step-2  Create Add new Service and associate your class with newly created service
Reference screenshot


Step-3 Class association with service.
Reference screenshot



Step-4 Add method of your class in service operations node those you want to expose.
 Reference screenshot

Step-5 Add Service group and associate your service with the service group.

Step-6 Set the service property Auto deploy= YES

Reference screenshot




Step-7 Perform Build & Sync and verify from browser..
Reference screenshot


Service URL 
https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/[ServiceGroupName]/[ServiceName]/[MethodName]

Sample
https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/IntegrationGroup/IntegrationService/getfoo


Follow this link to consume web service using POSTMAN

Tidak ada komentar:

Posting Komentar

Bottom Ad [Post Page]