Заработало!
переписал web.config:
PHP код:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBindingWindowsAuth">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows">
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="serviceBehaviorConfiguration" name="Microsoft.Dynamics.IntegrationFramework.Service.InventoryOnHandService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBindingWindowsAuth" bindingNamespace="http://schemas.microsoft.com/dynamics/2008/01/services" contract="Microsoft.Dynamics.IntegrationFramework.Service.InventoryOnHandService" />
</service>
</services>
и app.config:
PHP код:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_InventoryOnHandService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://zeus2.ealtd.com/MicrosoftDynamicsAXAif50/inventoryonhandservice.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_InventoryOnHandService"
contract="AIFInventOnHandRef.InventoryOnHandService" name="BasicHttpBinding_InventoryOnHandService" />
</client>
</system.serviceModel>
</configuration>