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 :

      <ns1:username soapenv:actor=""> soapenv:mustUnderstand="0" xmlns:ns1="ws-security"></ns1:username>
      <ns2:password soapenv:actor="">" soapenv:mustUnderstand="0" xmlns:ns2="ws-security">%test</ns2:password>

    J'ai trouvé de l'aide sur 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
  • 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 :
            <binding name="MultiDiffusionWSSoapBinding">
              <security authenticationMode="UserNameOverTransport" includeTimestamp="false"></security>
              <textMessageEncoding messageVersion="Soap12"></textMessageEncoding>
              <httpsTransport />

    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