can please me?
i'm trying connect web service; code that:
public class test { static logger logger = logger.getlogger(test.class.getname()); /** * @param args */ public static void main(string[] args) { string result=null; try { string pi = "\u03a0"; byte[] = pi.getbytes(); wsbindingimplsoapbindingstub service = new wsbindingimplsoapbindingstub(); service._setproperty(service.endpoint_address_property,"https://*****implservice"); service._setproperty(service.username_property, "username"); service._setproperty(service.password_property, "pass"); result = service.dir("*"); //result = service.put(a, "pippo"); logger.info("info result: " +result); } catch (exception e) { logger.error("info error: "+e.getmessage()); } } }
but, following error:
(401) unauthorized
cause of 401 unauthorized errors
the 401 unauthorized error http status code means page trying access can not loaded until first log on valid user id , password. how fix 401 unauthorized error
check errors in url. it's possible 401 unauthorized error appeared because url typed wrong or link clicked on points wrong url - 1 authorized users only.
if you're sure url valid, visit website's main page , link says login or secure access. enter credentials here , try page again. if don't have credentials, follow instructions provided on website setting account.
if you're sure page you're trying reach shouldn't need authorization, 401 unauthorized error message may mistake. @ point it's in best interest contact webmaster or other website contact , inform them of problem. webmaster of internet sites can reached via email @ webmaster@website.com, replacing website.com actual website name.
the 401 unauthorized error can appear after login indication web site received user name , password found them invalid (e.g. password incorrect). follow whatever process in place @ website regain access system. still getting 401 errors?
if you've followed troubleshooting advice above still receiving 401 unauthorized error when accessing webpage or site, see more information contacting me on social networks or via email, posting on tech support forums, , more.
be sure let me know error http 401 error , steps, if any, you've taken fix problem.
Comments
Post a Comment