Solved

Communicating with a Java Servlet via VB.NET

Posted on 2007-12-05
4
919 Views
Last Modified: 2013-11-24
I'm a well-versed Windows service/VB.NET programmer, but know nothing regarding Java servlets.

I have a client who houses a database which can be updated via a Java servlet.

Updating the database involves building a URL which looks like this:

http://client_url.com:8080/client_servlet/index_update?docid=1234&name=SMITH

The servlet will then send a response: success/failure.

Is it possible to write code in VB.NET that can send the data to the servlet as well as receive the response?

Thanks much!

Whah
0
Comment
Question by:Whah
4 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 150 total points
ID: 20413777
>>
Is it possible to write code in VB.NET that can send the data to the servlet as well as receive the response?
>>

Certainly. You just need to use a WebRequest class or subclass. Check out its docs
0
 
LVL 9

Expert Comment

by:ysnky
ID: 20415232
you do not need to know anything about java to call a servlet, you just need to know how httpcall can be done in vb.net. you will send http request and will receive http response. that is not matter with you, that service is developed in java or any other language and runs on iis, weblogic, tomcat etc....
0
 
LVL 92

Accepted Solution

by:
objects earned 350 total points
ID: 20415466
really a vb.net question, has nothing to do with java (as the servlet is simply accessed using http)
heres some sample code

http://joel.net/code/easyhttp.aspx
0
 

Author Comment

by:Whah
ID: 20421197
"really a vb.net question, has nothing to do with java (as the servlet is simply accessed using http)
heres some sample code

http://joel.net/code/easyhttp.aspx"

Thank you, objects!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now