none
How to add custom security header in WCF in visualstudio 2005 RRS feed

  • Question

  • J'aimerai que mon client d'un webservice soap axis 1.1 écrit c# envoi un soaphearder tel que  celui ci :

    <soapenv:Header>
      <ns1:username soapenv:actor="">schemas.xmlsoap.org/soap/actor/next soapenv:mustUnderstand="0" xmlns:ns1="ws-security">herve.bargain@test.com</ns1:username>
      <ns2:password soapenv:actor="">schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns2="ws-security">%test</ns2:password>
    </soapenv:Header>

    J'ai trouvé de l'aide sur  luislee818.blogspot.fr/2009/06/add-custom-security-header-in-wcf.html mais je butte sur l'erreur que mon proxy généré automatiquement ne contient pas de définition pour EndPoint

    Monday, February 11, 2013 6:24 PM

All replies

  • Hi,

    Could you please tell more details about your question in English. I do not understand your word.

    Best Regards.


    Amy Peng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Tuesday, February 12, 2013 12:27 PM
    Moderator
  • I'm working on a problem that involves connecting to a Web Service in java axis 1.2 and using WS-Security and I'm using WCF.

    in app.conf :
    <customBinding>
            <binding name="MultiDiffusionWSSoapBinding">
              <security authenticationMode="UserNameOverTransport" includeTimestamp="false"></security>
              <textMessageEncoding messageVersion="Soap12"></textMessageEncoding>
              <httpsTransport />
            </binding>
     </customBinding>

    but when i use the proxy generated with service references
    mdws.ClientCredentials.UserName.UserName = username;
    mdws.ClientCredentials.UserName.Password = password;

    i get the error : not definition for ClientCredentials  why?

    Wednesday, February 13, 2013 10:40 AM