Response in AIF custom service class
At the previous post I already show how to customize Response Value list in AIF Document standard service, today we will talk about response in Custom AIF service class.
We already know for Custom AIF service we actually need 2 classes, one is
contract for data input and one is
service to process a logic. With
Response class, it’s literally same with
contract class. They both hold parm value.
contractclass gets parametters.
Responseclass sets return values.
I want to get
HcmWorkerName of current userID on C#.NET application.
Write Custom AIF service to get Worker information, and then public this service.
Write C#.NET console to consume that service.
two value that I want to return is
HcmWorkerName, I will store it in 2 parms method
MaxPRService Class, This class consume through service that need to be extend
In AOT create new service and add recent created class to that Service, in operations node add
getEmployee method, you will get something likes
Then right click service > Add-ins > Register Service.
go to AIF inbound form to create new service and add
getEmployee operation to that service then Active.
Add recent WSDL URI
http://WINSERVER:8104/DynamicsAx/Services/MaxPurchReqGeneral into Service reference in C# Console project
Thank you for reading.