Vamsi k

Vamsi k

  • NA
  • 296
  • 46.3k

WCF service issue

Oct 20 2019 10:16 PM
Hi Everyone,
 
We have created a WCF service . We are able to access that service locally. But when we deployed that service in Test server we are not able to access that service, Can you pls suggest how to publish the wcf code and how to deploy in the server. what changes we need to do before deploying into Test server? Below are confg files information.
 
Example
 
Service web.test1.config:
 
<services>
<service name="ABC_WcfService.ABCService" behaviorConfiguration="ABCBehaviorName">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="ABCBindName" contract="ABC_WcfService.IABCService"></endpoint>
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="ABCBindName" maxReceivedMessageSize="10485760" maxBufferSize="10485760" >
</binding>
</basicHttpBinding>
</bindings>
Client web.test.config
<system.serviceModel>
<bindings>
<basicHttpBinding>
<!--<binding name="BasicHttpBinding_IABCService" maxReceivedMessageSize="100485760"/>-->
<binding name="BasicHttpBinding_IABCService" closeTimeout="00:50:00" openTimeout="00:50:00"
receiveTimeout="00:50:00" sendTimeout="00:50:00" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true" messageEncoding="Text">
<readerQuotas maxDepth="32" maxStringContentLength="5242880"
maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://abc_wcfservicetest1.test.intranet/ABCService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IABCService" contract="ServiceReference1.IABCService" name="BasicHttpBinding_IABCService"/>
</client>
</system.serviceModel>
 
Please give response ASAP.
Thanks,
Vamsi.

Answers (3)