I am using a WSDL file to pull data from an external source.
The data pull works from Postman. If I add the header "SOAPAction" it fails with the message "The configured protocol is not SOAP, which has been requested."
The same error happens when I run the request from Java Spring with the WSDL file. The problem is that I am not finding a way to remove this header from the request. In my Spring application I am using 'jakarta.xml.ws' to handle the request flow.
I tried creating a "HandlerResolver" to intercept the request and adjust the headers. This seems to only work for manually added header field, because my "SOAPAction" field is not showing in the list of headers.
This question suggests adding an interceptor, but my client class has no function "getOutInterceptors" where I can add my custom interceptor.
Is there any way to intercept the request properly after all headers have been added? Is there another way to remove this header field from the request?
I hope I provided all information necessary. If not I am happy to provide more information!
Thanks in advance!