Forum Discussion

bharat_sethi's avatar
bharat_sethi
Occasional Contributor
13 years ago

Adding Custom header with wsse security tags

Hi,



I have a web service which expect security credential in header tag, but not getting how to add this header information via test complete GeneralEvents_OnWebServiceRequest



      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://xyz.xsc">

         <wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://Xyz.xsd">

            <wsse:Username>Username</wsse:Username>

            <wsse:Password Type="http://xyz-wss-username-token-profile-1.0#PasswordText">Password</wsse:Password>

            <wsse:Nonce EncodingType="http://XYZ-wss-soap-message-security-1.0#Base64Binary">XYZ</wsse:Nonce>

         </wsse:UsernameToken>

      </wsse:Security>

 

Please advise how should I add this security information in my request via Test Complete.

 

Thanks

2 Replies

  • bharat_sethi's avatar
    bharat_sethi
    Occasional Contributor
    Is this a binding that is not supported by Test Complete?




    Supported Binding Types



    TestComplete allows creating tests only for those WCF web services that use one of the



    Following binding types to communicate with client applications:




    • BasicHttpBinding - WCF services communicate with client applications via endpoints that conform to the WS-I Basic Profile 1.1 specification.


    • WSHttpBinding - WCF services communicate with client applications via endpoints that conform to WS-* specifications.


    • NetTcpBinding - WCF services communicate with client applications using the desired TCP port numbers.



    Creation of functional tests for WCF services that use other binding types is not supported.