Note that there are some explanatory texts on larger screens.

plurals
  1. POWrong net.tcp base address in wsdl. It takes the server name instead of http dns binding
    text
    copied!<p>We have a WCF service in net.tcp binding. This one is hosted in IIS 7 with WAS. The bindings of the web site are : http mydns.mysocity.com 80 nt.tcp 8001 (nothing to specify dns)</p> <p>The configuration of the service is something like this :</p> <pre><code>&lt;system.serviceModel&gt; &lt;client /&gt; &lt;bindings&gt; &lt;netTcpBinding&gt; &lt;binding name="netTCP" maxReceivedMessageSize="2147483647" receiveTimeout="06:00:00" &gt; &lt;security mode="Transport" &gt; &lt;transport clientCredentialType="Windows" /&gt; &lt;message clientCredentialType="Windows" /&gt; &lt;/security&gt; &lt;reliableSession enabled="true" inactivityTimeout="06:00:00" ordered="true" /&gt; &lt;readerQuotas maxDepth="2000001" maxStringContentLength="2000001" maxArrayLength="2000001" maxBytesPerRead="2000001" maxNameTableCharCount="2000001" /&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;wsDualHttpBinding&gt; &lt;binding name="dualHttp" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="06:00:00" /&gt; &lt;security mode="Message"&gt; &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsDualHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="serviceBehavior"&gt; &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt; &lt;serviceMetadata httpGetEnabled="true"/&gt; &lt;serviceThrottling maxConcurrentCalls="2000" maxConcurrentInstances="2000" maxConcurrentSessions="2000"/&gt; &lt;dataContractSerializer maxItemsInObjectGraph="96553600" ignoreExtensionDataObject="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;services&gt; &lt;service name="MyService.Services.PublishSubscribeService" behaviorConfiguration="serviceBehavior"&gt; &lt;!--Service de souscription/publication pour les clients qui veulent publier/souscrire et etre notify sur le meme canal. TCP,dualHttp et PoolingDuplex ONLY--&gt; &lt;endpoint binding="netTcpBinding" bindingConfiguration="netTCP" address="/ITransientPublishSubscribeService/netPublicEndPoint" name="netPublicEndPoint" contract="MyService.Services.Interfaces.ITransientPublishSubscribeService"&gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;!--service de publication--&gt; &lt;endpoint binding="wsDualHttpBinding" bindingConfiguration="dualHttp" address="/IPublishService/wsDualPublicEndPoint" name="wsDualPublicEndPoint" contract="MyService.Services.Interfaces.IPublishService"/&gt; &lt;endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" name="mexEndPoint" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;endpoint binding="netTcpBinding" bindingConfiguration="netTCP" address="/ITransientGuarantedPublishSubscribeService/netPublicEndPoint" name="netPublicEndPoint" contract="MyService.Services.Interfaces.ITransientGuarantedPublishSubscribeService"&gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;endpoint binding="netTcpBinding" bindingConfiguration="netTCP" address="/ITransientGuarantedSubscribeService/netPublicEndPoint" name="netPublicEndPoint" contract="MyService.Services.Interfaces.ITransientGuarantedSubscribeService"&gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;endpoint binding="netTcpBinding" bindingConfiguration="netTCPNotReliable" address="/ITransientGuarantedPublishSubscribeService/netPublicEndPointNotReliable" name="netPublicEndPointNotReliable" contract="MyService.Services.Interfaces.ITransientGuarantedPublishSubscribeService"&gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;endpoint binding="netTcpBinding" bindingConfiguration="netTCPNotReliable" address="/ITransientGuarantedSubscribeService/netPublicEndPointNotReliable" name="netPublicEndPointNotReliable" contract="MyService.Services.Interfaces.ITransientGuarantedSubscribeService"&gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" name="mexEndPoint" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;/system.serviceModel&gt; </code></pre> <p>And the WSDL contains MachineName.MySocity.com for base address instead of mydns.mysocity.com :</p> <pre><code> &lt;wsdl:port name="netPublicEndPoint" binding="tns:netPublicEndPoint"&gt; &lt;soap12:address location="net.tcp://MachineName.MySocity.com:8001/Services/PublishSubscribeService.svc/ITransientPublishSubscribeService/netPublicEndPoint"/&gt; &lt;wsa10:EndpointReference&gt; &lt;wsa10:Address&gt; net.tcp://MachineName.MySocity.com:8001/Services/PublishSubscribeService.svc/ITransientPublishSubscribeService/netPublicEndPoint &lt;/wsa10:Address&gt; &lt;Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity"&gt; &lt;Dns&gt;localhost&lt;/Dns&gt; &lt;/Identity&gt; &lt;/wsa10:EndpointReference&gt; &lt;/wsdl:port&gt; </code></pre> <p>The application is working but the client is caching the MetaData so we must close the application when we change the hosting server.</p> <p>How can I change the base address in the WSDL to have mydns.mysocity.com ?</p> <p>I have tested to add base address to my configuration but it doesn't work :</p> <pre><code>&lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="net.tcp://mydns.mysocity.com:8001/Services/PublishSubscribeService.svc"/&gt; &lt;add baseAddress="http://mydns.mysocity.com/Services/PublishSubscribeService.svc"/&gt; &lt;/baseAddresses&gt; &lt;/host&gt; </code></pre>
 

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