Contributions
Re: Default headers for all resources
Hi, I tried to update in the OnRequest script, the header of the request by using the code below, I have this error : import com.eviware.soapui.support.types.StringToStringMap def headers = mockRequest.requestHeaders//.each {log.info it} def header = new StringToStringMap(headers) header.remove('SOAPAction') log.info header mockRequest.requestHeaders = header; // the error comes from this line. com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; groovy.lang.ReadOnlyPropertyException: Cannot set readonly property: requestHeaders for class: com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest. Can you help me?5 years agoPlace ReadyAPI QuestionsReadyAPI Questions5KViews0likes0Comments