prem saggar

Ranch Hand
+ Follow
since Aug 24, 2000
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 prem saggar

Hello ranchers I hope this is the right forum for this. I keep getting "cannot establish connection to the vm" when I try to run the debugger on any of my code in Netbeans 3.6 running java 1.5 on linux. I don't get this same issue on 4.0 running 1.5 on linux. I've messed around with the settings but had no good luck. Does anyone have any good ideas? Thanks, Prem.
Hello Ranchers . I have a class that implements ServiceLifecycle that I have deployed to axis as a Web Service. For seme reason the init method never gets called. I'm using Tomcat 5. All help is great. Prem.
15 years ago
Hello everyone, I'm using Axis to generate my web services. I'm trying to figure out what Java Data Types I can actually pass in and out of methods. I know I can use Axis's simple data types e.g., arrays, String, Calendar, boolean, etc... But I've also heard I can use any type that adheres to the JavaBean spec. I.e., it has only 1 contructor that accepts no parameters and has only get and set methods. How will a .Net client demarshall this arbitrary JavaBean type on their end? Also, I've also heard I can pass any type I want in Java e.g., a DriverManager, or a JFrame, as long as I create the serialization code. Again, how will a .Net client handle this? Should I just stay in the safety of using Axis's simple built in types? Thanks, Prem Saggar. :roll:
[ May 15, 2005: Message edited by: prem saggar ]
15 years ago
I agree with the question above. Which key is used in the keystore if there are multiple keys? Thanks for all the help. Prem
15 years ago
Hello Ranchers! Right, I'm trying to

1) pass a file in a Soap message as a byte [] and
2) pass a file in a Soap message as a dime attachment


When I try the byte array approach I get an "end of stream encountered before final boundary" exception on the client trying to access the file. All I'm doing is the service reads in a File from it's local file system into a byte array, and then returns it via a method byte[] getFile(). This method has been tested locally on it's server and it works. Then the client trys to call getFile() but when doing so I get that crazy exception "end of stream encountered before final boundary". Do you guys have any ideas? I'm stumped on this one.

Also, how on earth do you create a dime attachment for a soap message? Is there any way to implicitly have the file become a dime attachment? Or do I have to write up some Web service code to do so?

Ok Ranchers, thanks so much.

Prem
15 years ago
I agree with the above poster. What you'll do is get the WSDL for the webservice you need. Then run WSDL2Java on it. This part is tough and needs practice. You'll have this massive classpath pointing at all the axis files. Anyhow that generates all the client-remote code needed to interface with the webservice. The Axis guide will actually walk you through it. If you need more detail I'm here. Prem.
15 years ago
Hi everyone. I'm trying to create a webservice client using wsdl2java and it must comunicate with the webservice via SSL. I have the keystores set up for this. How do I get WSDL2Java to generate https ready code using my keystores? Thanks, guys.


Prem
15 years ago
Hi, I've done this, and I'm sure I got the complete information from mysql.org. Also, there are a bunch of tutorials out there. Google search = java jdbc mysql driver try. The try will probably garuntee you a code example . Happy hunting. Prem
Oh by the way Arnel, what do you mean by the URL connection of my JDBC config? Is that the string you pass to DriverManager.getConnection(String url)? Could you give me an example of what you did? Thanks so much, Prem.
Thanks Arnel. I'm using Oracle 9i here. Changing your DB parameter fixed this? We are so confused on this one.
Hello everyone. I've got an interesting problem. When I try to close a Database Connection to a connection pool I'm using, I get an "Invalid Cursor" exception, and I'm not able to close the connection! Any help is greatly appreciated. I've seen "Invalid Cursor" exceptions before, but never to strictly close a Connection! For all kind readers, I tried to keep the post short, but if you need any more information, just let me know and I'll respond quickly. Thank you for all your time.
Is it me, or is it impossible to learn webservices! I tried reading books, and I'm getting sleepy . I tried using axis, and that is better, but still tough. HELP, how do I learn this stuff!!! Prem :roll:
16 years ago
Hey thanks for the info! I really appreciate it. Do you know of a good source of info for webservices? Directed mostly to the questions I just asked? Thanks so much, Prem
16 years ago
Hi guys. I have a few questions about Webservies vs RMI. First;

1) Does a solution using webservices handle "garbage collection"? E.g., if I pass a custom data type like a Frog object via a webservice, will it be garbage collected when no longer used?

2) Can I even pass a custom data type like a Frog object via a Webservice, and have it used properly on the client side? Will a Frog object be understood by a .Net client?

3) How difficult are asynchronous webservices? Are they poor in performance?

4) RMI can handle garbage collection, and passing custom data types, but RMI only works with Java to Java. Is it true that Webservices allow any type of client to consume a webservice, e.g., a webservice written in Java can be consumed by a .Net, C++, or even Perl client?

Thanks guys, I'm really curious about these questions. I believe that if webservices can do all that I asked above, then this webservice thing is for real.

Thanks,
Prem
16 years ago
Hello Java Ranchers. Could you tell me where I could find free cd burning software to burn the Linux ISO images? I allready used the trial version of EasyCDCreator, and it timed out and won't let me install again. Any help would be great as I can't wait to get rid of Windows 2000 for Linux. I'd like to install linux because I hope it is more stable than win2k and 98. Is it? Any distro that does not crash all the time? I'd like to use it to surf the net and use forte to create java programs. Thanks again, Prem.
18 years ago