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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Custom Service using File System Adapter

(0) ShareShare
ReportReport
Posted on by 225

Hi,

I have created a Custom service and corresponding port with File system adapter. Now, i have to initialize this custom service inside AX (say on some button click) so that a XML file will be generated and saved into the file system adapter folder.

So could you please help me to tell how to initialize any custom service inside AX ... seems no one have tried this :(  

Any help is appreciated !

Cheers,

Kumar  

*This post is locked for comments

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

    If you really mean a custom service (as per AX2012 terminology) and not a custom document service, the question is interesting. I'm surprised that you can add custom services to outbound ports at all (but yes, you can). I'm quite sure you can't use the existing infrastructure for outbound document services with any general service, therefore I would say that you can't reasonably use custom services in outbound ports. If you want to save data created by a method to a file, just do that - you don't need AIF.

    If your question is indeed about document services, please look at Walkthrough: Deploying the Document Service in an Outbound Exchange.

  • chendurkumar Profile Picture
    225 on at

    Hi Martin,

    I meant the real Custom Service where i have my own Data contracts defined !

    For example, if I use Service groups and automatic deployment then by default framework creates a NetTcp Adapter for my custom service and I could WSDL to initialize my service.

    If I am right, like NetTcp, file system is another kind of adapter ... So logically its possible but not technically :(

    Cheers,

    Kumar

  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    When a NetTcp inbound is deployed, WCF (C#) classes are generated and a WCF endpoint is exposed by AOS for service calls. When a WCF message is received, AX business logic is executed (synchronously).

    When you use the outbound file-system adapter, AX asynchronously (queues, batches) use X++ classes to serialize data and call an X++ class (AifFileSystemSendAdapter) to save the file to file system. (No WCF involved.)

    It doesn't sound very similar to me.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans