Pramod Chris

Greenhorn
+ Follow
since Oct 15, 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 Pramod Chris

somia razzaq wrote:..But i found them difficult in the sense how i use these handlers in my service and client code. Which thing i add at client side and which one at service side. Can you people send me an example or link which clearly show how handlers can be implemented in web service and client code.



If you could elaborate a little more on what you're trying to do, (whether you're building a web service client for an external web service and you need to implement security as specified or you're building a new web service which needs to have the security feature etc) then I guess I could take a look.
11 years ago
Generally security is implemented in JAX-WS web services by embedding security information in the SOAP header. You'd typically use a username token along with a time-stamp and a nonce to sign every SOAP message sent to a web service.

To add this information to the header (if you're writing a client) or to read the username token from the header (if you're building the web service), you'd need to write JAX-WS Handlers. Handlers intercept the SOAP message and give you a handle over the SOAP message where you can add or read the security information to or from the header.

I hope it makes sense!
11 years ago
I guess you could write one yourself and i guess it'd take lesser time as compared to searching for one. just my thought
11 years ago
I'd agree, it's not a good idea, but if your API call does return a java.util.concurrent.Future object or if it provides a way to get one, you could wait till that thread finishes by calling it's get() method.
If you need info on how to zip files, then do take a look at the java.util.zip pacakage.

On another note, this really isn't struts related.
12 years ago
Hi,
I don't know if this has been discussed already. I am new to web services and axis2 in particular. I have a web service with a method that takes an ArrayList as a parameter. the ArrayList further has a Hashtable as one of its elements.
when i call the web service from a client, passing the ArrayList as the input, on the server side (at the web service), i am getting <empty>false</empty>. is this a problem of serializing and deserializing paramters? the client code snippet is below..


and my services.xml look like this...


when i print out the arraylist in the webservice it prints <empty>false</empty>
any idea what the issue is?

thanks in advance!
13 years ago
Hi,
I have a problem deploying an ear on the Websphere Community edition 2.1.
The ear has a 'lib' folder which has third party libraries (all are jar files). the manifest file in some of these have a classpath that references other jars but are not found in the ears lib folder.
whenever i try deploying on the Websphere community edition, i get the following error...whereas it works fine on websphere 6.1 or weblogic etc.

for example, the lib folder has jakarta-commons-logging-1.0.3.jar which internally has log4j.jar defined in its manifest file classpath, but it is not found in the lib folder of my ear.



Thanks in advance,
Chris
[ September 05, 2008: Message edited by: Pramod Chris ]
13 years ago
To give a background on what I'm trying to do, I have an application which generates an HTML report. There is a 'Save report' link that allows the user to save the report into a MS Excel file on the client.
In the servlet, the application uses Apache POI to build an Excel sheet with the report data. Then the contents of the file are written into the ServletOutputStream to be sent to the client on the browser, which pops up a dialog asking the user to either 'Open', 'Save' or 'Cancel'.

Now the problem is that once this pop-up appears and if the 'Save' button is hit after several minutes (say 5-6 minutes), the saved file turns out to be corrupt. Almost always the file size is 96KB. This doesn't happen on Firefox though. If the save button is hit immediately this problem doesn't occur on IE.
Now it could well be some sort of IE behavior with respect to caching or streaming of application data such as Excel, but I'm trying to understand what exactly is happening, if someone has had a problem with such loss of data and if I can have some sort of a workaround to avoid this. (Especially since the user behavior is such that they will almost certainly hit the 'save report' and probably go for a coffee till it downloads)
I'm using IE 6 on Windows XP Professional OS.

Thanks in advance for the help!
I am using HTMLEditorKit to edit an HTML page which is displayed in a JTextPane, and well, I'm doing this for the first time and I have two queries here,
I want to know how I can apply a CSS to this displayed HTML and also by any chance does the HTMLEditorKit have any problems with hiding commented lines in the HTML? The displayed pages show all the commented lines.

Thanks in advance.
15 years ago
Hi,
I'm trying to the use the JDBCRowSet and CachedRowSet implementation by importing the com.sun.rowset package. But it says it cannot resolve it. I downloaded and included the ocrs12.jar, but of no avail. So I needed to know which .jar include in my program. Thanks.
Just to add, object references are stored in the stack if created within a method, else it is stored in the heap. Objects created are stored on the heap. Stack memory is the programs memory and Heap memory is outside the program.
Both are the same and call a native method for freeing up memory. System.gc() internally calls Runtime.getRuntime().gc(). So they are effectively the same.
In the method another, the state of the object pointed to by
v is changed. ie., i is now 20. By doing
v = vh;
the reference v points to the object created at
ValHold vh = new ValHold();
so v.i is now 10.
Since Java passes parameters strictly by value, once back in the method amethod, v would not point to the object that vh is pointing to, anymore.
But since you had passed the object reference v into another(), where its state was changed, back in amethod it still points to the very same object whose state was changed. Hence it still prints 20.
It prints just "vandeleur". sName is never modified when it is displayed in the main thread.
If an S.O.P were to be inserted inside the run to display sName as well, then it would print
vandeleur
vandeleur 0
vandeleur 0 1
vandeleur 0 1 2
vandeleur 0 1 2 3.