SOAP WCF Webservice behaves differently when called locally or remotely

Posted by Idriss on Stack Overflow See other posts from Stack Overflow or by Idriss
Published on 2010-05-14T10:28:35Z Indexed on 2010/05/14 12:24 UTC
Read the original article Hit count: 227

Filed under:
|
|
|

I have a WCF SOAP 1.1 Webservice with the configuration specified below.

A concurrent call to any method of this endpoint hangs until the other returns when called remotely (from another computer on the network).

I cannot replicate this when these methods are called locally (with a client located on the same machine).

I tried to increase the maxConcurrentCalls with no luck ... the service behavior seems to be different according to the client local/remote location. Any guess?

Thanks,

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.serviceModel>
    <services>
      <service behaviorConfiguration="MyCustomBehavior" name="CONTOSO.CONTOSOServerApi.IContosoServiceApiImplV1">
        <endpoint address="" binding="customBinding" bindingConfiguration="WebBinding"
          bindingNamespace="http://contoso.com" contract="CONTOSO.CONTOSOServerApiInterfaceV1.IContosoServiceApiV1" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyCustomBehavior">
          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8080/MyEndPointV1" />
          <serviceDebug httpHelpPageEnabled="false" includeExceptionDetailInFaults="true" />
          <serviceThrottling maxConcurrentSessions="10000" maxConcurrentCalls="1000"/>
          <dataContractSerializer maxItemsInObjectGraph="2147483647" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <customBinding>
        <binding name="WebBinding">
          <textMessageEncoding messageVersion="Soap11" maxReadPoolSize="2147483647" maxWritePoolSize="2147483647">
            <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
            maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          </textMessageEncoding>
          <httpsTransport />
        </binding>
      </customBinding>
    </bindings>
  </system.serviceModel>
</configuration>

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET