none
How client can create & call my wcf service when MEX is secured RRS feed

  • Question

  • here is a secured mex which use credential type windows and message security now i like to know when client will type the mexendpoint address or service address in their VS service reference box then what will happen ?

    any windows auth dialog comes ? if yes then how outside user will be able to create service proxy at their client side ?

    in case of secured mex do i need to distribute contract assembly or proxy class file ? just guide me what i need to give to client to create proxy at their end?

    <endpoint address="mex"
           binding="wsHttpBinding"
           bindingConfiguration="Binding2"
           contract="IMetadataExchange" />
         </service>
     </services>
     <bindings>
       <wsHttpBinding>
         <binding name="Binding2">
             <security mode="Message">
           <message clientCredentialType="Windows" />
            </security>
         </binding>
       </wsHttpBinding>
     </bindings>
    Friday, April 11, 2014 8:57 AM

Answers

  • Hi,

    >>suppose if client try to add my service url from VS IDE like add service reference then any problem would occur ? any dialog comes for user id & password ?

    I have test in my client, if we add service reference, it will appear a windows dialog like below:

    >>if client is outsider then how they will be able to provide our domain user id & password.

    If your client and service are not in a same domain or a trust domain, then the client can not access the service by using windows authentication.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Friday, April 18, 2014 9:45 AM
    Moderator

All replies

  • please take a look at Microsoft patterns & practices here on this subject matter.

    PS: make sure you go through the complete list of articles under this node so that you are well informed :)

    hope this helps!

    Friday, April 11, 2014 9:10 AM
  • Hi,

    Then the client will need to apply the windows username and password. Or it can provide it by using code:

    proxy.ClientCredentials.Windows.ClientCredential.Domain = "mydomain";
    proxy.ClientCredentials.Windows.ClientCredential.UserName = "ABC";
    proxy.ClientCredentials.Windows.ClientCredential.Password = "pwd";

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 14, 2014 6:07 AM
    Moderator
  • suppose if client try to add my service url from VS IDE like add service reference then any problem would occur ? any dialog comes for user id & password ? if client is outsider then how they will be able to provide our domain user id & password.

    Thursday, April 17, 2014 8:37 AM
  • Hi,

    >>suppose if client try to add my service url from VS IDE like add service reference then any problem would occur ? any dialog comes for user id & password ?

    I have test in my client, if we add service reference, it will appear a windows dialog like below:

    >>if client is outsider then how they will be able to provide our domain user id & password.

    If your client and service are not in a same domain or a trust domain, then the client can not access the service by using windows authentication.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Friday, April 18, 2014 9:45 AM
    Moderator
  • if i give the proxy class to client then client will not have to add service ref from their VS IDE....so in that case client can consume & call my service?
    Saturday, April 19, 2014 6:02 PM