Madi Sagimbekov
Madi Sagimbekov

Reputation: 319

SOAPAction header value Exception java web services

created the web service source using WSDL in netbeans IDE. Then in servlet class generated code to call web service method. I got code like this:

private void getSomething() {
com.bla.bla.SomeService service = new com.bla.bla.SomeService();
QName portQName = new QName("http://bla.com/test/services", "SomeServiceSoap");
String req = "<getSomething xmlns="\url\"><a id=\"5\"/></getSomething>";
try {
    Dispatch<Source> dispatch = null;
    dispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD);
    Source result = dispatch.invoke(new StreamSource(new StringReader(req)));
} catch (Exception ex) {
    ex.printStackTrace();
}
}

But when I call this method, I am getting an Exception: javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP header SOAPAction: . How to solve this problem? Any help is appreciated! thanks!

Upvotes: 1

Views: 2731

Answers (1)

TheWhiteRabbit
TheWhiteRabbit

Reputation: 15768

That error means, though there is some webservice running at the endpoint http://bla.com/test/services there is no operation is available on that purticular service.

OR

client didnt supply any operation to invoke on SimpleSoapService

Upvotes: 1

Related Questions