When calling a JAX-WS endpoint, how can I get the HTTP response code?
In the sample code bellow, when calling the web service at port.getCustomer(customerID);
port.getCustomer(customerID);
The below post is similar to your question. Hopefully it should work for you
https://stackoverflow.com/a/35914837/4896191