I’m trying to connect and use a web service method. I’m getting the following error:
The SOAP action specified on the message, '', does not match the HTTP SOAP Action, 'http://tempuri.org/xpto/foobar'.
In fact, the code says this:
_state.getMessageContext().setProperty("http.soap.action", "http://yadayadayada");
but it doesn’t state anything about the message.
The WSDL states this:
<wsdl:input wsaw:Action="http://tempuri.org/foo/bar" message="tns:xpto"/>
This question has been solved. I had to alter the code auto generated by WSDL2Java.
In the Stub class, the auto generated code looks like this;
I had to add the following, before the setRequestHeaders: