Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try adding someting similar to this</p> <pre><code>&lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior name="DelegationBehaviour"&gt; &lt;clientCredentials&gt; &lt;windows allowNtlm="false" allowedImpersonationLevel="Delegation"&gt;&lt;/windows&gt; &lt;/clientCredentials&gt; &lt;dataContractSerializer maxItemsInObjectGraph="4194304"&gt;&lt;/dataContractSerializer&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;/behaviors&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="BasicHttpBinding_SampleWebService" &gt; &lt;readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192"&gt;&lt;/readerQuotas&gt; &lt;security mode="TransportCredentialOnly"&gt; &lt;message algorithmSuite="Default" clientCredentialType="UserName"&gt;&lt;/message&gt; &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm=""&gt;&lt;/transport&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="http://server/WebServices/Service/Service.svc" behaviorConfiguration="DelegationBehaviour" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_SampleWebService" contract="SampleWS" name="BasicHttpBinding_SampleEndpoint"&gt;&lt;/endpoint&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; </code></pre> <p>This is the server side code</p> <pre><code> &lt;system.serviceModel&gt; &lt;services&gt; &lt;service behaviorConfiguration="CustomBehavior" name="CustomWebService"&gt; &lt;endpoint address="" behaviorConfiguration="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_Service" contract="WebService"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="basicHttpBinding_Service" maxReceivedMessageSize="4194304" receiveTimeout="00:30:00"&gt; &lt;security mode="TransportCredentialOnly"&gt; &lt;transport clientCredentialType="Windows"/&gt; &lt;message clientCredentialType="UserName"/&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="CustomBehavior"&gt; &lt;dataContractSerializer maxItemsInObjectGraph="4194304" ignoreExtensionDataObject="True"/&gt; &lt;serviceMetadata httpGetEnabled="True"/&gt; &lt;serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true"/&gt; &lt;serviceAuthorization impersonateCallerForAllOperations="true"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; </code></pre> <p>As well as having these over our WebMethods</p> <pre><code>&lt;WebMethod(), OperationContract(), OperationBehavior(Impersonation:=ImpersonationOption.Required)&gt; _ </code></pre> <p>Works for us</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload