authentication « Web Service « Java Enterprise Q&A





1. how to implement a web service client which connects to an external web service with authentication based on NTLM Authentication    stackoverflow.com

Hi i'm quite new in implementing web service client in java. i found a tutorial very useful...http://wso2.org/library/tutorials/creating-web-service-client-3-steps-using-eclipse. in my case i got 401 error: Unauthorized. It is normal as to access the wsdl ...

2. Mutual-authentication with web services    stackoverflow.com

Currently, I've been successful implementing Mutual Authentication security so long as the client accesses the website using a web browser, because browsers take care of all the certificate exchange for you. ...

3. Java: JAX-WS passing authentication info to a call to webservice    stackoverflow.com

I am using JAX-WS. I am connecting to .NET webservice that requires authentication. I first call the Authentication.asmx so that I can be authenticated. The call returns me a LoginResult that ...

4. Access Authentication from Javax-jws web service    stackoverflow.com

I have implemented a web service using JAX-JWS. I would like this web service to authenticate the incoming request or atleast be able to access the username - password information sent ...

5. Exchange web services Kerberos Authentication    stackoverflow.com

I need to consume exchange web services through JAVA Proxies generated by JAX-WS. I have a few doubts : 1) Can we connect to the exchange server with kerberos authentication 2) If yes help ...

6. I'm having problems creating a web service that takes a username and password and checks against a database    stackoverflow.com

I am developing a web service that authenticates a user trying to access a web application. I'm new to web services and have seen a lot of different APIs and have ...

7. jaxws webservice url additional parameter for authorization    stackoverflow.com

I created WebService using JAXWS. Glassfish generated wsdl, and whole webservice is published under http://localhost:8081/mycompanyApi/api?wsdl How can I add some additional parameter to this url like http://localhost:8081/mycompanyApi/api?wsdl&hash=asdfa. I'd like to do ...

8. Calling a Java web service using server authentication from .net    stackoverflow.com

I have a web service I want to call: https://someserver.com/Service The service is built on a IBM WAS server in Java. It is using SSL authentication so on the WAS ...

9. Design pattern for webservice authentication    stackoverflow.com

Is there a best practice or design pattern on how web services should be authenticated. I am especially concerned about not having to pass the authentication data every time I hit ...





10. Authenticate java web service from .net client    stackoverflow.com

I'm trying to access java web service, protected with JAAS role based security from C Sharp .net client.. They are implemented as stateless EJB and deploying to glassfish V2. I have been successful ...

11. how to implement two way authentication and encryption for a web service    stackoverflow.com

Background : I am trying to build a java client for web service , the service is bound to a public IP on my router. I want to achieve encryption and authentication ...

12. Exchange web service authentication from java    stackoverflow.com

Can I build a web-service client to EWS (exchange web services) with NTLM authentication using the current windows logon? thank you.

13. Calling basic authentication java webservice with C# Client    stackoverflow.com

I have a c# client application calling java web services. Everything works great but now i need to send some authentication data since we are trying to restrict who calls the ...

14. A facade to hide authentication details from Java web service    stackoverflow.com

I'm building an UI client that uses a service API that behind the scene uses Web services. One of the API services looks like this:

interface UserService {
    ...

15. Secured authentication in web service    stackoverflow.com

I am developing a web service using Spring framework for Java and deploy on JBoss AS. This web service needs authentication and authorization and security solution so that some method user ...

16. Java Web Service client basic authentication    stackoverflow.com

I have created a JAX-WS Web Service on top of Glassfish which requires basic HTTP authentication. Now I want to create a standalone java application client for that Web Service but I ...





17. Alfresco web service authentication    stackoverflow.com

I'm trying to connect to a remote Alfresco webservice using this java instrunction:

WebServiceFactory.setEndpointAddress(configFile.getProperty("WebServiceFactory"));

AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub) new AuthenticationServiceLocator().getAuthenticationService();
The authentication fails because the authority properties of AuthenticationServiceSoapBindingStub it's not remote URL but ...

18. what way of user notification about authentication failure in a web service is better?    stackoverflow.com

This is my first try of develop a web service. Authentication is implemented by sending login and password in the context of user request (used this example: http://www.mkyong.com/webservices/jax-ws/application-authentication-with-jax-ws/), and ...

19. Mutual authentication in Web Services    coderanch.com

Hi, I have already built my webservice and it is ready for use... But I want to implement security into my service using SSL. Let me first tell you I have used jwsdp-1.3 and the web container as Tomcat 5.0 to build my JAXPRC service. I have followed the mutual authentication example provided in the jwstutorial but that does not seem ...

20. 2-Way SSL Authentication and Web Services    coderanch.com

Hi All, Basically I have below two queries which are related to each other : 1. What are the steps that need to be taken care before running any java web service client program to communicate to a web service server that uses 2 way authentication. Can any one please list down the steps. 2. When I wrote a web service ...

22. Authentication web services    coderanch.com

I'm developing a web service who has to query other web services using a security certificates. The remote web service calls are executed from different threads (simultaneous calls). Which is the best way to implement security here? When I access a single web service there is no problem. But when I try to access a second one I get the following: ...

23. web service and basic authentication.    coderanch.com

Hello, I am writing a webservice that needs authentication. I can find some examples but those examples never specify how to get the Stub from the server in a secure way. I have set my application so that I need to authenticate whenever I do a request. But this means I cannot request my wsdl file without authentication. So I need ...

24. Client Authentication for a web services    coderanch.com

HI, I trying to call a web servcices fom my client class. The Webservice when accessed from browser ,asks for user and password. How to pass the user and password to the webservice,when invoking it I am using the client jar build in weblogic platform. While calling the Web services i am getting following error. java.io.IOException: Server returned HTTP response code: ...

25. Sun Java Systems Directory Server Authentication    coderanch.com

Hello all, I'm sorry if this sounds like an extreme newbie question, but I am new to the web dev world and am trying to figure out how to write a web app that begings with an authentication method to authenticate my users against a Sun Java Systems Directory server, read their group membership information and direct them to the correct ...

28. Web Service Authentication    coderanch.com

29. Certificate based authentication    coderanch.com

It means that a WS client does not send a username and password, but instead a cryptographic digital certificate to the server (e.g., an X-509 certificate). The WS-Security standard defines how this works for WS. What would this authentication service do? If a certificate gets sent, all the WS (or rather, its WS-Security implementation layer) needs to do is check whether ...

30. Custom Authentication in Axis1.4    coderanch.com

Hi, I have used my own AuthenticationHandler(extends HTTPAuthHandler of Axis), to authenticate all incoming requests, in an application which host multiple web services using Apache Axis 1.4. There is a appropritely defined server-config.wsdd, snippet as follows:- . . . .

31. Client changes to support mutual authentication in web services    coderanch.com

Hi, I have a web service client (using axis) developed using axis: Ran WSDL2Java on WSDL to generate the client stubs and then filled in the logic to access the web service exposed by soap server. We need to add mutual authentication (2 way TLS authentication) to this existing web service communication. What changes do I need to make in the ...

34. Authentication in Webservices    coderanch.com

35. Basic authentication    coderanch.com

I was able do a basic authentication with the help of the article..thanks Ulf. My next step is to go on with SOAP authentication. I think Ulf, your part2 article talks about soap authentication right?..I havent gone through it yet. Eclipse 3.3.1.1 uses Axis/1.4, I saw that in the http header. Can anyone please suggest if there are any articles/examples related ...

36. URL Access to SSRS is asking for authentication    coderanch.com

Hi All I am trying to connect to my report server through URL access and then trying to retrieve some values from my SSRS from my local machine like : <%=name%> But when i click on this hyperlink it asks for the username and password for that server. However , i am using the following code to connect to ...

37. Web Service Authentication    coderanch.com

There is a spec for web service security, I'll go look for it. Basically it provides options for data in the soap header, and includes provisions for authentication, thumbprinting, preventing record and resubmit and other issues at this level. It doesn't prevent snooping. I had a discussion with a friend a while ago and they recommended using 'INstream' authentication, so that ...

38. Consume authentication web services    coderanch.com

Hi, i am new to web services , i have got the Client jar . Got the end point for the WSDL file. Now with the Client jar i dono where to start.I have no idea how to identify Stub class. Is there any link to start with web services. Can anyone help me.

39. Credentials cannot be used for NTLM authentication    coderanch.com

i have webservice deployed over another server and on client side i am generating a stub which is using that service. But the problem is that i have to pass through the proxy settings of my company so its giving me this errors ---------------------------------------------------------------------- ERROR 11:44:16,688 INFO [STDOUT] 2008-10-30 11:44:16,688 ERROR [HttpMethodDirector-authenticate-235]-Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials ...

40. SSO authentication    coderanch.com

Hi , I have to perform auto login with other application . I am using http client and using HttpPost method i am submitting form of target url . with crenditials ( username and password) ..and forwarding request to target url..but auto login is not happening. Could you please help me out how to submit form using httppost and also how ...

41. certificate authentication using java    coderanch.com

I need some help regarding how to do secured httppost for transmitting a xml file. I am able transmit the file without using certificate options but get certificate errors. I have got the the private key with password,Root certicate,Server certificate.Please tell me how can we use this to transmit the xml file I have.

42. Authenticate and authorise access to webservices    coderanch.com

Hello all, We have 6 webservices serving different applications within the organization. Now we want to allow external applications over the internet to be able to access these webservices, to do this we want to authenticate and authorize both external and internal applications against a oracle database/LDAP active directory. Please advise me how to do this, I thought of couple of ...

44. Authentication in BPEL    coderanch.com

45. XFire Authentication Failure    coderanch.com

46. How to enable cached authentication details..??    coderanch.com

Hi, I am using Oracle Service Bus(OSB). I have two web services running in OSB. One importing schema and making use of it and other one without using schema. I have no problem to invoke the service that doesn't import schema. I am sending the username and password as given in the below code snippet. weblogic.wsee.connection.transport.http.HttpTransportInfo httpInfo = new weblogic.wsee.connection.transport.http.HttpTransportInfo(); httpInfo.setUsername(username.getBytes()); ...

47. digest authentication on client side implementation.    coderanch.com

Hi My project has webservices that are using digest authentication. I am trying to modify client implementation(JAX-RPC) to include unsername and password. i am using axis 1. i got how to include basic authentication from here . but not able to find one for digest authentication. webservices work fine using soap UI using username and password. if anyone has implemented digest ...

48. help with Web Services authentication    coderanch.com

Hello, I'm lost regarding web services authentication. This is my situation: Im using JAX-WS RI and Glassfish, and I have two distributed web services. I need the client to be authenticated (login and password) and then use the first services and then the second, combine the result and show it. I need both web services to be secured. My question is: ...

49. Authentication between JAX-WS RI components    coderanch.com

Hello Java-ranchers, Im using JAX-WS RI and Glassfish, and I have two distributed web services. I need the client to be authenticated with each web service and then use the first services and then the second, combine the result and show it. I need both web services to be secured. I submitted this same post about a week ago and I ...

50. Adding usename authentication in a web service, Metro 2.0    coderanch.com

Hi, I have written a simple Hello World web service using metro, eclipse as IDE and have deployed it to tomcat. The HelloWorld service is running fine, without any issue. But now i want to add username authentication into this HelloWorld Service. Can anybody guide me for the same. I have gone through couple of tutorials online, but most of the ...

51. Getting services to work with NTLM Authentication over HTTPS/SSL    coderanch.com

I cannot seem to get NTLM working with SSL/HTTPS. I get the following exception: java.lang.NoSuchMethodException: jcifs.http.NtlmHttpURLConnection.getSSLSocketFactory() I am using the NTLM Authentication example almost verbatim, and then used a conduit set to allow HTTPS (example to follow). It seems that the NtlmHttpURLConnection doesn't support SSL, is there an implementation that does? Is it actually possible to use both ...

52. Proxy authentication errors    coderanch.com

53. Matual Authentication error    coderanch.com

i have to appliactions (P2P) and the first has a web service that need a certificate for authentication and the second application is web service clientand the two appliactions deployed at Glassfish v2.1 i configured the webservice to accept Matual Authentication (certificates) using JAX-WS,WS-Security by metro project but when i try to call the web service from the second application that ...

54. Web Services and X509 Certificate Authentication    coderanch.com

I am having difficulty putting all the pieces together to make it happen. I will tell you about my scenario and perhaps some kind-hearted person could fill in the rest for me. I have a web service deployed to Tomcat 6.0 currently. It is tested to work just fine via a client I wrote. It makes use of Axis (but not ...

55. Basic HTTP authentication through admin console on WAS 7    coderanch.com

I am trying to do Basic HTTP Authentication for web services (We are the web services provider and trying to secure web services through admin console). Following steps are given for WAS 6 to perform basic authentication. We are using WAS 7, and dont find any relevant configuration steps for WAS 7. WAS7 onwards security settings are changed and seems IBM ...

56. The HTTP request is unauthorized with client authentication scheme 'Anonymous'    coderanch.com

Hi! First of all, note that there is a special page in soapUI with authentication and security-related settings in connection to a request. Have you tried using it, instead of manipulating HTTP headers directly? The Java EE principal being set to 'Anonymous' can mean that the principal has not been set at all and thus that your authentication has failed, for ...

57. SSL Mutual Authentication Issue    coderanch.com

I am supposed to call a web service that is written in .NET. It uses mutual Authentication. I have been give *.p7b and *.pfx file. 1. used jetty.jar to get the new jks file from *.pfx file used instructions here - http://www.entrust.net/knowledge-base/technote.cfm?tn=7925 java -classpath lib/jetty-6.1.1.jar org.mortbay.jetty.security.PKCS12Import You should get a message in your comand window that looks like this: usage: java ...

58. WS-Security verses SSL and mutual authentication    coderanch.com

WSS, for a couple of reasons: Transport-level security (like HTTPS) ends the moment the message arrives at the web server, whereas message-level security (like WSS) is in effect until the moment a message has to be in cleartext. That means a SOAP message can be routed around a network securely until it reaches its final destination; that's generally not possible with ...

59. Webservice authentication    coderanch.com

60. JAX-WS Authentication    coderanch.com

Hi Ulf, Thanks for your answer. My only requirement is to create a callback method which can authenticate the username and password and add these two attributes in the header. Is rampart the only way of implementing it? Actually I am using JAX-WS with annotations, hence I was looking for something in annotation which can perform this task. (I am having ...

62. Best practice for user authentication    coderanch.com

About to implement a solution which allows a user to login/register from a JSP page OR from an Android client. We will be using REST exclusively. What I plan on doing is as follows. User Registers, causing a user token (name/pwd) to be POSTED to my REST service. This will be persisted and an Auth token created for this user and ...

63. Consuming peoplesoft webservices using Jdeveloper authentication error    forums.oracle.com

Hi , I am using Jdeveloper to consume the peoplesoft webservice and following the exact steps mentioned in the following article. http://www.oracle.com/technology/tech/fmw4apps/peoplesoft/ofm-psft-blog-postings.html#web-services The webservice i am using is different than in the example as i am using the production version of wsdl file. After following all the steps, the generated proxy does not create getter setters for Username,password(basic authentication). Is it ...

64. Mutual Authentication client for Web Service    forums.oracle.com

Hi, How I can tell java to use this particular client certificate in mutual authentication. I have two certificates 1) cacert.pem and 2) client.pem (includes private key), client.pem is signed by cacert.pem and also contains the private key. I have the wsdl file for the webservice that I have to call and I can generate java wrappers of it using wsdl2java. ...