It is possible.
Add the properties to your projectlevel (example: name: "sample", value: "user") In the field that requires the sample value, add : ${#Project#sample} (Example: on the wsdl definition open the endpoints tab and enter the syntax for the required fields) This can be done for username, pass, etc.
|
Hi Finan,
I've followed your instructions and I think I'm probably doing something wrong. This is what I did:
- Edited the project -> Added a property with Name:'authHeader', Value:'Authorization: Basic <XXXX>' where <XXXX> is the data we need sent in the HTTP request header called 'Authorization'
- Edited the WSDL (one level down from project) -> Gone to 'Service Endpoints' tab -> Added '${#Project#authHeader}' into the 'Username' cell for the endpoint.
I've tried running a request after this and the Authorization header is not sent. Am I doing something wrong is is your method for something other than HTTP request headers?
Thanks,
Dave