java - JAX-WS client get response headers -
i'am trying implement logic. http 401
or 403
error after making call wcf service using jax-ws client (wsimport).
com.sun.xml.ws.client.clienttransportexception: server sent http status code 401: unauthorized
how can response headers after making call? need implement soaphandler.class
?
i find solution :
(integer) ((bindingprovider) servclient).getresponsecontext().get(messagecontext.http_response_code);
Comments
Post a Comment