john s murray

Ranch Hand
+ Follow
since Apr 26, 2009
Merit badge: grant badges
For More
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 john s murray

Been searching the web and still not understanding why it's not working. On the server side, I can see that the MessageElement[] _any is created in the classes. When loading the wsdl (client), it doesn't show in the wsdl. Once deployed and the client downloads and generates the classes, it creates it as JAXBElement. Am I not deploying the server-config.wsdd file properly? or am I missing something. Thanks in advance.
12 years ago
Running into a bit of an issue with "any" not showing in the generated wsdl. Using Axis1.4 and created as wsdl with something like:


Once it's deployed, it displays something like the below. Seems to be missing the "xsd:any". Any I not writing the wsdl properly?

12 years ago
thanks for the clarification. had doubts as I still new to threads.
I'm somewhat newbie here in trying to understand synchronization and threads. Here is an example of what I'm doing and want to get some inputs to see if that makes sense.

thanks for all the input. after some testing, i was able to get it working.
13 years ago
Thanks for the reply Paul. However, you did provide some some info. However, I'm using applets. When using applets, it's using the Canvas and drawing using the mouseEvent is collected with the double xy coordinates. What's strange is that there's no info to be found on the web on how to save that canvas drawing into a jpeg, gif, or even a tiff. Any other help would be greatly appreciated.
13 years ago
another thought. is there a way to just get what is current drawn on the canvas and save it as an image?
13 years ago
When drawing, I get a string of x and y coordinates. How can I take these coordinates and draw them out and save as an image. I can write a servlet to take the string. Just need to know how to repaint and save that image.
13 years ago
Hi, newbie to applets. Apologize in advance. I have an applet that does the basic drawing. I'm able to get the x/y coordinates. How do I get this into a BufferedImage and convert into a TIFF file. I noticed ImageIO doesn't support TIFF so my options are JAI.
13 years ago
Actually, I was able to deploy and generate the wsdl. however, when I use the wsdl2java tool to generate the java class files, it doesn't seem to be generating the MyArrayObjects classes. I would expect it generate class files for MyArray1Type objects and MyArrayObjects. Or a way for me to do something like:


Do I need to change it to something like?
13 years ago
thks for the reply. Yes, it does compile. I was able to wsdl2java it and it only creates the classes for the "MyArrayObjects". Meaning I was able to doing something like: This would only create something like:


The above will not work as it's expecting:


How would I do it so that it creates the above?
13 years ago
Is something like the below valid? It looks correct but how does one go about initializing the objects?



It easily done in php by using something like: How would one do it in Java? thanks in advance.
13 years ago
sorry, just made changes to clarify the opening and closing of the braces so it's more understandable. I also tried doing it like the following with no luck. getting the same error as #2.
13 years ago
thanks for help comments. However, I tried implement it both ways:

The 1st option works. The 2nd option doesn't. It returns java.lang.NoClassDefFoundError. Any idea as to why?
13 years ago
hi, i'm a bit confused with thread in servlets. i'm trying to run a background process with a while(true) loop and sleep 2mins each time. The idea is that the thread would retrieve a url (ie stock quotes). Each time a request comes thru on doGet, they would automatically have an updated quote. I also looked at the isPrime example. Is that the proper way of accomplishing this task or should i be taking a different approach?

example 1:
public class PrimeSearcher extends HttpServlet implements Runnable
// kick off in init
public void getQuotes()

example 2:
public class extends HttpServlet
// kick off the getQuotes thread in init
class getQuotes implements Runnable

13 years ago