Custom Web Service in few steps D365FO
In this article, I will explain how we can create a basic custom Web Service in D365FO with few steps.
Step-1 Create a class with the 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 the method of your class in the service operations node that you want to expose.
Reference screenshot
Step-5 Add a 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
Hello,
ReplyDeleteI`m totally new to D365 and I`m trying to create custom web service. I need to create service which can be used by 3rd party to get a list of Vendors.
I have created service just like you have described. But what`s next? From your example - how can I get a file with "Hello World"? Because that is what your service should return, right?
Hi,
ReplyDeletei created custom service class followed by this link,
https://community.dynamics.com/365/financeandoperations/b/365foandaxtechnicalworld/posts/custom-web-service-in-few-steps-d365fo
than i using json console application followed by this link,
https://community.dynamics.com/365/financeandoperations/b/goshoom/posts/json-based-custom-service-with-parameters-ax-7
i mentioned above links useful and working properly, in console application i get a json format data, but i can use only in local server browser, but i want to get a json format data
in any browser in any server.
how to achieve this.
i am waiting for your reply
ReplyDeleteHOW TO GET CROWN MAGIC ATM CARD AND WITHDRAW
ReplyDeleteUNLIMITED CASH I took the risk and in exactly 6 days latter my card and a manual was delivered to my home address here in California and that same evening i used the card was able to take out $5000 for a start its been just 3 weeks and my life has taken a new shape. I simply want to say thank you to this electronic company and help spread their fame abroad. If you ever are in need of this card details on how to get yours today, email the hackers on atm.tecnology@gmail. com YOu can also Whatsapp: +12134218707
Thank you, good share
ReplyDeleteNice Blog!! Thanks for such a valuable information.
ReplyDeleteDevOps Training
DevOps Online Training
We Website Designing Company in Chicago, Build User & SEO Friendly websites with customized features and designs all according to the needs and requirements of our clients.
ReplyDeleteThanks for sharing with us useable information.
ReplyDeleteDigital marketing agencies