Hello,
I created an AX service, such as explained on: https://sumitsaxfactor.wordpress.com/2012/05/19/create-your-first-custom-service-ax-2012/
I succeed calling the service about 500 times a second.
500 times is one transaction.
When I run again - I succeed too.
After several time, I got the message:
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
So, I can wait few more minutes, that I can call the service again.
How can I avoid that message?
I need calling many times to the service, with no interfere, block, or any firewall.
The web.config part that declare calls the web service.
<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <standardEndpoints> <webHttpEndpoint> <standardEndpoint name="" helpEnabled="" automaticFormatSelectionEnabled="true" /> </webHttpEndpoint> </standardEndpoints> <bindings> <netTcpBinding> <binding name="NetTcpBinding_SPLSqlDisplayMethod" /> </netTcpBinding> </bindings> <client> <endpoint address="net.tcp://axdev:8201/DynamicsAx/Services/SPLSqlDisplayMethodGroup" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_SPLSqlDisplayMethod" contract="SPLSqlDisplayMethodService.SPLSqlDisplayMethod" name="NetTcpBinding_SPLSqlDisplayMethod"> <identity> <userPrincipalName value="proxy@mydomain.com"/> </identity> </endpoint> </client> </system.serviceModel>
Also, is there any delay (between each call, till I get the result)? (for some security reasons).
Thanks :)