tag:blogger.com,1999:blog-4252337628624509450.post8365977643949877253..comments2023-08-10T08:54:43.030-07:00Comments on ETF_DevLab: HTTP basic authentication with JAX-WS (Client)Illya Yalovyyhttp://www.blogger.com/profile/13312879121282598277noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-4252337628624509450.post-25433769732615214712015-05-29T04:22:29.127-07:002015-05-29T04:22:29.127-07:00Excellent! worked as expected. Thanks a ton. keep ...Excellent! worked as expected. Thanks a ton. keep it upAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-32427794357434913962015-05-29T04:20:38.054-07:002015-05-29T04:20:38.054-07:00Thanks a ton!
It really worked for me and saved my...Thanks a ton!<br />It really worked for me and saved my time.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-86904780509752810372014-10-01T01:00:43.696-07:002014-10-01T01:00:43.696-07:00Thanks a lot.Its saved much time for me.Great help...Thanks a lot.Its saved much time for me.Great help.<br /><br />Krishna<br />www.ssrinfoservsystems.inGK Chaitanyahttps://www.blogger.com/profile/03698701149307941741noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-37006676467389696942014-08-14T07:25:38.742-07:002014-08-14T07:25:38.742-07:00is there any answer to David's comment. I woul...is there any answer to David's comment. I would be interested in thatObserver, Seeker, Finderhttps://www.blogger.com/profile/14397123043698425292noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-63026970790235649692014-05-22T12:46:53.339-07:002014-05-22T12:46:53.339-07:00this helped on WLS
-DUseSunHttpHandler=truethis helped on WLS<br />-DUseSunHttpHandler=trueAdrianhttps://www.blogger.com/profile/11771933952287696333noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-6661555626048341992013-07-05T11:08:08.572-07:002013-07-05T11:08:08.572-07:00@knopfit
Hi, I am also facing the problem with SA...@knopfit<br /><br />Hi, I am also facing the problem with SAP NetWeaver server authentication<br /><br />In the above there methods, which code you fallowed??<br /><br />Please give me your code, then it can help me lot.<br /><br />Please...DEATH.COMhttps://www.blogger.com/profile/17185637360822075135noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-19381602283327642522012-08-17T15:47:18.425-07:002012-08-17T15:47:18.425-07:00Muchas gracias!Muchas gracias!Unknownhttps://www.blogger.com/profile/11864735212654888437noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-65995410908313307192012-01-04T05:00:24.214-08:002012-01-04T05:00:24.214-08:00Thanks for these steps, helped me a lot.
Concernin...Thanks for these steps, helped me a lot.<br />Concerning step 1, for me it was necessary to set VM property -Dhttp.auth.preference=basic, otherwise NTLM authentication was used somehow. Also be sure you don't use too long username/password combinations, otherwise you might bump into base64 issues (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6459815). This one seems to be solved in Java 7.<br /><br />RamonRamon Rockxhttps://www.blogger.com/profile/10559805077205800323noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-43784110698606676722011-11-02T02:49:14.991-07:002011-11-02T02:49:14.991-07:00Thanx for the enlightenment.
I was really struggl...Thanx for the enlightenment. <br />I was really struggling with Basic Auth in a SAP Netweawer Webservice. Your post made it easy to bind and connect.knopfithttps://www.blogger.com/profile/01493574069045148139noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-7271894358168296202011-11-02T02:48:19.596-07:002011-11-02T02:48:19.596-07:00Thanx for the enlightenment.
I was really struggl...Thanx for the enlightenment. <br />I was really struggling with Basic Auth in a SAP Netweawer Webservice. Your post made it easy to bind and connect.knopfithttps://www.blogger.com/profile/01493574069045148139noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-20835376365631407332011-04-01T11:11:40.509-07:002011-04-01T11:11:40.509-07:00Thank you! it works.
However just wondering if the...Thank you! it works.<br />However just wondering if the following code is a global change, meaning that all program running in the same JVM will be affected?<br /> Authenticator.setDefault(new Authenticator() {<br /> @Override<br /> protected PasswordAuthentication getPasswordAuthentication() {<br /> return new PasswordAuthentication(<br /> USER_NAME,<br /> PASSWORD.toCharArray());<br /> }<br /> });<br /><br /><br />to be more precise, I have to WS to call, say, http://hotst1:8080/service1 and http://hotst2:8080/service2 . service1 requires username fool and password bar while service2 requires foo2:bar2.<br />How can I set different credentials for different services, since the method "setDefault" makes me think that all services will use the same credential.<br />Thank you againDawei Jinhttps://www.blogger.com/profile/12770165122313238765noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-84577305664997774242011-04-01T11:09:30.330-07:002011-04-01T11:09:30.330-07:00Thank you! it works.
However just wondering if the...Thank you! it works.<br />However just wondering if the following code is a global change, meaning that all program running in the same JVM will be affected?<br /> Authenticator.setDefault(new Authenticator() {<br /> @Override<br /> protected PasswordAuthentication getPasswordAuthentication() {<br /> return new PasswordAuthentication(<br /> USER_NAME,<br /> PASSWORD.toCharArray());<br /> }<br /> });<br /><br /><br />to be more precise, I have to WS to call, say, http://hotst1:8080/service1 and http://hotst2:8080/service2 . service1 requires username fool and password bar while service2 requires foo2:bar2.<br />How can I set different credentials for different services, since the method "setDefault" makes me think that all services will use the same credential.<br />Thank you againDawei Jinhttps://www.blogger.com/profile/12770165122313238765noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-20717360828126817482011-03-16T15:53:06.264-07:002011-03-16T15:53:06.264-07:00Saved my butt! LOL! Thanks.Saved my butt! LOL! Thanks.Unknownhttps://www.blogger.com/profile/06015324861143219472noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-41997122964689821272011-03-16T15:52:38.922-07:002011-03-16T15:52:38.922-07:00Saved my butt. lol Thanks.Saved my butt. lol Thanks.Unknownhttps://www.blogger.com/profile/06015324861143219472noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-10050348303616424892010-11-12T00:40:22.933-08:002010-11-12T00:40:22.933-08:00Interestingly enough, we found step 3 was only nec...Interestingly enough, we found step 3 was only necessary for running inside a Weblogic container. Glassfish seems to authenticate fine as long as the Authenticator.setDefault(..) is called with correct credentials.Unknownhttps://www.blogger.com/profile/11840886882807377446noreply@blogger.comtag:blogger.com,1999:blog-4252337628624509450.post-63221953840316755862010-09-09T00:21:00.543-07:002010-09-09T00:21:00.543-07:00Perfect - you saved me some trouble ;)
THX MikePerfect - you saved me some trouble ;)<br /><br />THX MikeMikehttps://www.blogger.com/profile/09516349865110546519noreply@blogger.com