Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to change the web.config at the server side, your client web.config will be automatically updated after a refresh on the web reference. If you do not want to use login/password, i can advice you to set up a mutual certificate authentication.</p> <p>This approach is secure and interoperable with other WS stacks (eq. Java CXF, ...)</p> <p>For Mutual Certification Authentication : You will need a X.509 certificate to allow the client to be sure that the server is really who is pretend to be and an other X.509 certificate at the client-side.</p> <p>Here an example of web.config, more informations at <a href="http://msdn.microsoft.com/en-us/library/ms733102.aspx" rel="nofollow">MSDN</a> :</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="serviceCredentialBehavior"&gt; &lt;serviceCredentials&gt; &lt;serviceCertificate findValue="Contoso.com" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" /&gt; &lt;/serviceCredentials&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;services&gt; &lt;service behaviorConfiguration="serviceCredentialBehavior" name="ServiceModel.Calculator"&gt; &lt;endpoint address="http://localhost/Calculator" binding="wsHttpBinding" bindingConfiguration="InteropCertificateBinding" name="WSHttpBinding_ICalculator" contract="ServiceModel.ICalculator" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="InteropCertificateBinding"&gt; &lt;security mode="Message"&gt; &lt;message clientCredentialType="Certificate" negotiateServiceCredential="false" establishSecurityContext="false" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;client /&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre>
    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. 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