File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Call Java web application from VB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Call Java web application from VB" Watch "Call Java web application from VB" New topic

Call Java web application from VB

vas reddy

Joined: Jun 11, 2008
Posts: 23
Hi Can some please let me know how to call java web application from VB.

I have a web application developed in struts. How can I call one of the module of web application from VB?

vas reddy
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

What does it mean to "call" a web application? Do you mean you want to send a request to one of the app's URLs and receive the response from it?
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
This is where web services shine. Integration, integration.

If you expose business logic of the "web application" as one or more web services, then you can simply call the services by sending SOAP messages from the VB application.

Web applications that are built using Struts typically are GUI based applications that are used by a human that is using a web browser.

If you want communication from application-to-application, you may need to reengineer the business logic of the web application and expose it as one or more web services.

If you coded all the business logic in Struts Action classes, you did not use Struts correctly and will have more work to do implementing web services.
vas reddy

Joined: Jun 11, 2008
Posts: 23
My Java web application have one of the module(say modulex) responsible for submiting some data or update data to the DB. I set some session variable as soon as user logged into java web application. And modulex uses those variables.
Now I am not sure how to invoke that jsp (or modulex) from VB. ( Basically VB application also uses the same jsp (and behind their action classes) to write the data or update data to DB, same as like java web application)

vas reddy
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Did you pay any attention at all to James' post?

P.S. RESTful web services are rapidly replacing SOAP-based services and are much easier to implement.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Call Java web application from VB
jQuery in Action, 3rd edition