Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

intensive using of service.

$
0
0
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 :)


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>