web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AIF service consume other AX instance

(0) ShareShare
ReportReport
Posted on by

I am Created the AIF WEB SERVICE  I want to consume the this service  in another ax instance please guide me.i Add the AIf services in service references of Class library project and add to AOT.

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,399 Most Valuable Professional on at

    If you're looking for documentation, it's here Consuming Web Services (White paper) [AX 2012].

    If you have some particular problem, you'll have to write down what it is.

  • Jie G Profile Picture
    Microsoft Employee on at

    Hi,

    You can consider the AIF WEB service as a external web service for another AOS instance.

    msdn.microsoft.com/.../cc604242(v=ax.50).aspx

  • Community Member Profile Picture
    on at

    find the below job written by me

    static void tstjob(Args _args)

    {

           AXtestproj.AXREF.AXCODEDATAPROVIDERSERVICE                                  service;

    CLRObject                                                                                                  _clientype;        

           AXCdemst                                                                                              AXCdemst;

           AXtestproj.AXREF.AXCODEDATAPROVIDERSERVICEClient                           _client;

           AXtestproj.AXREF.AXCODEDATACONTRACT                                                datacontract;

           AXtestproj.AXREF.AXCODEDATALIST[]                                                         datacontractdet;

           AXtestproj.AXREF.CallContext                                                                    _callcontext;

           System.Type                                                                                                 type;

           AXtestproj.AXREF.AXCODEDATAPROVIDERSERVICEDatawithdetailsRequest           resquest;

           AXtestproj.AXREF.AXCODEDATAPROVIDERSERVICEDatawithdetailsResponse          response;

           str res;

           type=CLRInterop::getType("AXtestproj.AXREF.AXCODEDATAPROVIDERSERVICEClient");        

           _client=AifUtil::createServiceClient(type);

          while  select  * from AXCdemst where AXCdemst.Code=='11043000'

       {

           datacontract = new AXtestproj.AXREF.AXCODEDATACONTRACT();      

             datacontract.set_CGST(AXCdemst.item1);

             datacontract.set_IGST(AXCdemst.item2);

             datacontract.set_SGST(AXCdemst.item3);

             datacontract.set_CODE(AXCdemst.item4);        

             datacontractdet.Add(datacontract);      ---in this line am getting a error(CLRObject object not initialised.)  

          // resq.GetType(datacontractdet);

       }

       _client.datawithdetails(_callcontext,datacontractdet);

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans