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

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -