Forum Discussion
SmartBear_Suppo
16 years agoSmartBear Alumni (Retired)
Hello,
You are creating test steps with associated operations. When test step is run associated operation, or to be more precise request(s) in that operation is called. So, basically you could iterate trough all requests in operation, get their headers and modify them.
Use WsdlOperation.getRequestAt() or WsdlOperation.getRequestByName() to get request and than WsdlRequest.getRequestHeaders() and to set them WsdlRequest.setRequestHeaders().
Hope this helps, let me know.
robert
You are creating test steps with associated operations. When test step is run associated operation, or to be more precise request(s) in that operation is called. So, basically you could iterate trough all requests in operation, get their headers and modify them.
Use WsdlOperation.getRequestAt() or WsdlOperation.getRequestByName() to get request and than WsdlRequest.getRequestHeaders() and to set them WsdlRequest.setRequestHeaders().
Hope this helps, let me know.
robert
Related Content
- 2 years agoKimdongart1
- 6 years ago678
- 5 years agost-pat