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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -