Solved

Communicating with a Java Servlet via VB.NET

Posted on 2007-12-05
4
910 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
Comment Utility
>>
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
Comment Utility
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
Comment Utility
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
Comment Utility
"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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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.

744 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

12 Experts available now in Live!

Get 1:1 Help Now