Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

Security Header question

Hello,
Hopefully I can explain the issue clearly.

In my projects I have specified the security credentials at the interface level.

However, now the credential structure is changes such that the security headers is specified in each web service method rather than at the web service interface.

old method:

 

 
     
       
       
           
            gero et
            sonoras imperio
            quae divum incedo
       

     

 


new method:

 

     
        verrantque per auras
        per auras
     

 

 
     
       
       
           
            gero et
            sonoras imperio
            quae divum incedo
       

     

 


My question what would be the easiest way to refactor my existing scripts so that each testrequest includes this new 'AuthHeader'


Thanks

Ali

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Ali,

    hmm.. that is a tough one.. maybe easiest is to do a find-and-replace on the project file, where you replace



    with


         
            verrantque per auras
            per auras
         

     


    I guess you can't just run this straight off since it might modify request not desired.. but it's still easier than going into each request. I guess we should add a multi-request "Find-and-Replace" functionaliy in soapUI for this..

    regards,

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    ya... i ended up using a regular expression to find/replace the appropriate fields.

    InfoRapid Search and Replace tool was pretty helpful.

    Ali