Solved

Communicating with a Java Servlet via VB.NET

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 47
Show/Hide ASP.NET controls with JQuery best practices 3 46
null output 3 24
Running JavaFX on JDeveloper 12C 1 31
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…
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 learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

776 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