Hello,
Is there a way to call a particular AIF inboundPort ( with AIF job, all the active inboundPort are processed ) ? maybe with webservice call ?
Thanks
Hello,
Is there a way to call a particular AIF inboundPort ( with AIF job, all the active inboundPort are processed ) ? maybe with webservice call ?
Thanks
What are you trying to achieve?
Of course, the endpoint defines the web service address, so you can’t ever call an AX web service without using a specific endpoint.
I want to call a particular InboundPort ( with Adapter = File System Adapter ) from outside AX ( or inside AX but I don’t want to use AifGateWayReceiveService().run() that read all the InboundPort ).
If your requirement is using the file system adapter, talking about web services can’t help you, because that’s something completely different.
What problem do you have with processing all eligible ports? Maybe you want to disable some. Maybe you should lock them. Maybe you want to modify the logic inside AifGateWayReceiveService. Maybe you want to execute a single channel directly. Maybe you should redesign your solution. It’s hard to say without any information.
My problematic : I create a sales order manually in AX . Then , I call an external program to create a sales Line. When I validate the sales line created in my external program , a file is created in a directory and must be proceed in real-time in AX to create the sales Line.If I call AIF or create a AIF Job , it can take too long to proceed the file if there is multiple inboundPort to proceed.
Adapter-based communication is asynchronous, therefore if you need real-time synchronous processing, it’s a wrong solution. But your last sentence suggests that you need something fast, but not necessarily in real time.
If you call an external program, can’t it directly return a response instead of creating a file?
yes he can return a response
otherwise, I can call directly the method processChannel(myInboundChannel,Adapter ) … ? ( like in processInboundMessages method ) .
If you can get response data directly, the whole problem disappears. There won’t be any file that you would have to import, so you don’t need AIF at all - no file system adapter, no batches, no problem. 
You just have to make sure that waiting for response don’t block users.