Solved

Communicating with a Java Servlet via VB.NET

Posted on 2007-12-05
4
954 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…
Suggested Courses

738 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