Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

akhil karthik

Greenhorn
+ Follow
since Jul 06, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by akhil karthik

I have a javaclient calling in Htts :// webservice call. As SSL eanbled ,the message will be encryted. Is there a way, i can log the Request/Response XMLS, as it will be easy for my debugging. I wanted to have the logging avaliable for debugging. How do we accomplish using Apache Axis stubs? as i am using Apache Axis wsdl2java and would like to know if there are any example on how to use any Axis logging to log the SOAP Request/Responses?

Any suggestions are highly appreciable.
Thanks,
AkhilKarthik
11 years ago
What I'd like to do is have a proxy that can accept a plain text request over http and proxy it to an https server. can i do this using apache TCPMON . Can anyone confirm or provide an alternate solution? Any suggestions are highly appreciated.
Thanks,
11 years ago
It has to be set from Server's adminstrative console after you configure your server.
Also, This link will be useful to know basics of j2ee Security ..
http://www.redbooks.ibm.com/redbooks/SG246846/wwhelp/wwhimpl/java/html/wwhelp.htm

AkhilKarthik
11 years ago
Assuming that you are testing in RAD and that you are connecting to an EJB instance :
Is you application server enabled for global security ?

If your app server is not enabled with Global security , you see null subject. So either you have to enable Global Security on local env or you should be using WebService instance of the service(if available)..

AkhilKathik.
11 years ago
I used RAD6 Websphere built in too to generate the client stubs. I don't know which API it must using..
12 years ago
My client app is calling a webservice which has basic authentication. How should i approach using java. I used wsdl2java to generate the stubs etc. But when i am actually calling the methos in the service, i am getting 401 unauthOrised..
12 years ago
I.e. i will frame it this way, My client app is calling a webservice which has basic authentication. How should i approach using java. I used wsdl2java to generate the stubs etc. But when i am actually calling the methos in the service, i am getting 401 unauthOrised..
12 years ago
THANKS SO MUCH FOR THE INPUTS.. CAN YOU GUIDE ME WHAT I SHOULD DO to connect to BASIC Authentication. I have valid username,password. But WSDL provided has basic authentication set to authenticate the users. ANY HELP in this? I don't want to be container specific settings like setting global security on the server i am using. I would like to get this from say like property files.
12 years ago
ITS IS VERY URGENT.ANY HELP PLEASE...
12 years ago
Hello all,

Someone has put up a webservice and provided me with a WSDL file. I now need to connect to this service from my java-projects.

I know some of the theory behind webservices but now I need to put some code into practice for the first time... Can anyone point out how to go about it from here?

I am using Rad 6 websphere environment.
12 years ago
Can anyone help on this? Its urgent! thanks
12 years ago
I am trying to connect to a j2EE security enabled system using Programmatic login using the userId and Password but the subject object returned from lc.getSubject() is just Subject: . it is not even null though. My login is successful, but for subject object it is returning Subject: and when i go to next line i.e. WSSubject.setRunAsSubject() it is throwing me a null pointer exception.

Why is this happening. I am using JDK1.3 and is it because the JAAS is not compatible with JDK1.3 version. If it is so, how should i be able to establish a connection to j2EE secured application.

Any help is appreciated . Thanks in advance!

LoginContext lc = new LoginContext("WSLogin", new WSCallbackHandlerImpl(username, "realm", password));
lc.login();
log.info("Login done successfully " );
log.info("about to get subject");
Subject sub = lc.getSubject();
System.out.println("subject is:sub" );

WSSubject.setRunAsSubject(sub);

Here is the message is am receiving when i try to establish a connection:

[7/6/09 12:32:22:334 EDT] 0000002e SystemOut O Login done successfully
[7/6/09 12:32:22:334 EDT] 0000002e SystemOut O about to get subject
[7/6/09 12:32:22:334 EDT] 0000002e SystemOut O subject is:Subject:
[7/6/09 12:32:22:350 EDT] 0000002e ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method. Exception data: java.lang.NullPointerException
at com.ibm.ws.security.auth.distContextManagerImpl.isWSSubject(distContextManagerImpl.java:605)
at com.ibm.ws.security.auth.distContextManagerImpl.addWSSubjectToCache(distContextManagerImpl.java:2450)
at com.ibm.websphere.security.auth.WSSubject$3.run(WSSubject.java:448)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.websphere.security.auth.WSSubject.setRunAsSubject(WSSubject.java:444)
.....................
12 years ago
I am trying to connect to a j2EE security enabled system using Programmatic login using the userId and Password but the subject object returned from lc.getSubject() is just Subject: . it is not even null though. My login is successful, but for subject object it is returning Subject: and when i go to next line i.e. WSSubject.setRunAsSubject() it is throwing me a null pointer exception.

Why is this happening. I am using JDK1.3 and is it because the JAAS is not compatible with JDK1.3 version. If it is so, how should i be able to establish a connection to j2EE secured application.

Any help is appreciated . Thanks in advance!

LoginContext lc = new LoginContext("WSLogin", new WSCallbackHandlerImpl(username, "realm", password));
lc.login();
log.info("Login done successfully " );
log.info("about to get subject");
Subject sub = lc.getSubject();
System.out.println("subject is:sub" );
WSSubject.setRunAsSubject(sub);

Here is the message is am receiving when i try to establish a connection:

[7/6/09 12:32:22:334 EDT] 0000002e SystemOut O Login done successfully
[7/6/09 12:32:22:334 EDT] 0000002e SystemOut O about to get subject
[7/6/09 12:32:22:334 EDT] 0000002e SystemOut O subject is:Subject:
[7/6/09 12:32:22:350 EDT] 0000002e ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method. Exception data: java.lang.NullPointerException
at com.ibm.ws.security.auth.distContextManagerImpl.isWSSubject(distContextManagerImpl.java:605)
at com.ibm.ws.security.auth.distContextManagerImpl.addWSSubjectToCache(distContextManagerImpl.java:2450)
at com.ibm.websphere.security.auth.WSSubject$3.run(WSSubject.java:448)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.websphere.security.auth.WSSubject.setRunAsSubject(WSSubject.java:444)
.....................
12 years ago