Current location - Quotes Website - Signature design - When java calls webservice, it needs to verify HTTP Basic Authorization. The webservice client is generated by eclipse as follows:
When java calls webservice, it needs to verify HTTP Basic Authorization. The webservice client is generated by eclipse as follows:
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(url);
p>
call.setUsername(username);
call.setPassword(password);
You haven’t tried it yet, you can set it directly~