sethuraman sukumaran

Greenhorn
+ Follow
since Jul 14, 2004
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 sethuraman sukumaran

Just to add, I am able to invoke the standalone EJB without any security issues. I am getting (401)Unauthorized only if I invoke through the AXIS stubs from my client.

Can someone help.
12 years ago
Hi,

I have a stateless session bean wrapped as a webservice and deployed in BEA weblogic 8.1 server.

I created the stubs from the WSDL through AXIS 1.4 and I am getting the below exception when I call it through my client

Exception in thread "main" AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}:return code: 401

Any thoughts.

Thanks & Regards,
Sethu.
12 years ago
Thanks a lot Ben! Yours is the best explanation I ever read for the difference between a HttpSession and a cookie
12 years ago
Can someone help me understand how a standalone client can call an EJB deployed on the server.

I do know that we need the home and remote interfaces to compile the client and the stub classes to invoke but my question is how can I generate stub classes.

I developed an EJB and deployed them on the weblogic server. From what I understand, stubs and skeleton classes will be generated when we deploy. But how do I get those stubs to call it using a standalone client.

I have another question. When I create an EJB and a client project using RAD, when I build it, stub classes are being generated inside the client project. When I deploy that EJB on weblogic server can I use the stub which Websphere IDE (RAD) generated.

Thanks in advance,
Sethu.
Thanks ppl for your response.

Actually, I missed "call.setMaintainSession(true);" before making a webservice call. By default its false and hence it didn't attached the response headers / cookies while making subsequent calls.

Thanks again...
13 years ago
In our project, from one of our applications, we need to call a 3 rd party tool which exposes its methods as webservice (document style).

First we need to call one of the operations, LogIn which I could call successfully and get the response.

But I am unable to make subsequent call to other methods which they expose. When contacted the tool administrators, I was told that they send the Cookie back which I need to set it in the HTTP Header before making any subsequent call.

My question is, is there a way to get the HTTP Headers from the SOAPEnvelope which is the return type of call.invoke(...).
I am using AXIS 1.2.

Any help will be greatly appreciated as we are in the crunch situation in delivering the project.

Thanks & Regards,
Sethu.
13 years ago
In our project, from one of our applications, we need to call a 3 rd party tool which exposes its methods as webservice (document style).

First we need to call one of the operations, LogIn which I could call successfully and get the response.

But I am unable to make subsequent call to other methods which they expose. When contacted the tool administrators, I was told that they send the Cookie back which I need to set it in the HTTP Header before making any subsequent call.

My question is, is there a way to get the HTTP Headers from the SOAPEnvelope which is the return type of call.invoke(...).

Any help will be greatly appreciated as we are in the crunch situation in delivering the project.

Thanks & Regards,
Sethu.
Hi Ranchers,

Glad to inform that I cleared SCWCD today with 88 %.
Questions on session management, servlet technology model, security were straight forward but few questions on custom tags and EL were tricky. I didn't get even a single question on server side exception handling but around 10 questions on custom tags and EL.

Thanks to the authors of HFSJ for a phenominal book.

Good luck to everybody preparing for this exam.

Thanks again!!

Sethuraman.
14 years ago
In my servlet class, I have a try-catch block to catch business exception that extends from Exception. In the catch block, I wrap it to the servlet exception and throw them.

I have two scenario's :

1. In web.xml I have mappings for both ServletException and the business exception. Which one will the container choose ?

2. In web.xml, I don't have a mapping for the business exception but I have only for ServletException. Will that path be taken ? I read in a book saying the container will use getRootCause() method on the ServletException that is thrown to get the wrapped exception. Then it will search for the matching exception type in web.xml

Can anyone help me out ?
How many instances of the listener class will be created by the container.

In other words are the instance variables defined in the listener class thread safe ?

There is a listener class which implements HttpSessionListener. Will there be as many instances of the listener as the number of sessions ?