MarcoCastro
asked on
Issue with WCF security
Hi,
I`ve created a WCF service (http://wcf.boaviagemdistribuidora.com.br/McSoftPersistenciasSistema.svc?wsdl) and it works fine in the development machine. When I put it in Internet I get the message that says "No connection could be done because the destin machine actively refused my IP".
The binding I'm using is wsHttpBinding. In the server the configuration is:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="McSoftPersistenciasB asico">
<serviceMetadata httpGetEnabled="true" />
<!-- Colocar FALSE para receber as falhas -->
<serviceDebug includeExceptionDetailInFa ults="fals e" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<!-- Modulo de Sistema -->
<service name="McSoft.Persistencias .Sistema.D adosAtivos " behaviorConfiguration="McS oftPersist enciasBasi co" >
<endpoint address="" binding="wsHttpBinding" contract="McSoft.Persisten cias.Siste ma.IDadosA tivos" />
<endpoint contract="IMetadataExchang e" binding="mexHttpBinding" address="mex" />
</service>
What is needed in the client application? Seems to be a password... But I don't know how to set it up.
The clients configuration is:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="St rongWildca rd" maxBufferPoolSize="524288" maxReceivedMessageSize="21 47483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="81 92" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="163 84" />
<reliableSession ordered="true" inactivityTimeout="00:10:0 0" enabled="false" />
<security mode="Message">
<transport clientCredentialType="Wind ows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Wind ows" negotiateServiceCredential ="true" algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<!-- Module Sistema -->
<endpoint address="http://wcf.boaviagemdistribuidora.com.br/McSoftPersistenciasSistema.svc" binding="wsHttpBinding" bindingConfiguration="WSHt tpBinding"
contract="ServiceReference Sistema.ID adosAtivos " name="WSHttpBinding_IDados Ativos">
</endpoint>
Thanks,
Marco Castro
I`ve created a WCF service (http://wcf.boaviagemdistribuidora.com.br/McSoftPersistenciasSistema.svc?wsdl) and it works fine in the development machine. When I put it in Internet I get the message that says "No connection could be done because the destin machine actively refused my IP".
The binding I'm using is wsHttpBinding. In the server the configuration is:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="McSoftPersistenciasB
<serviceMetadata httpGetEnabled="true" />
<!-- Colocar FALSE para receber as falhas -->
<serviceDebug includeExceptionDetailInFa
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<!-- Modulo de Sistema -->
<service name="McSoft.Persistencias
<endpoint address="" binding="wsHttpBinding" contract="McSoft.Persisten
<endpoint contract="IMetadataExchang
</service>
What is needed in the client application? Seems to be a password... But I don't know how to set it up.
The clients configuration is:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00" bypassProxyOnLocal="false"
hostNameComparisonMode="St
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="81
<reliableSession ordered="true" inactivityTimeout="00:10:0
<security mode="Message">
<transport clientCredentialType="Wind
<message clientCredentialType="Wind
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<!-- Module Sistema -->
<endpoint address="http://wcf.boaviagemdistribuidora.com.br/McSoftPersistenciasSistema.svc" binding="wsHttpBinding" bindingConfiguration="WSHt
contract="ServiceReference
</endpoint>
Thanks,
Marco Castro
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good reference.
I would take a look at the system/network firewall, as the message says that connection to destination have been refused..
Best regards.