Solved

Communicating with a Java Servlet via VB.NET

Posted on 2007-12-05
4
948 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

679 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