wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Call Java web application from VB" Watch "Call Java web application from VB" New topic
Author

Call Java web application from VB

vas reddy
Greenhorn

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?

thanks
vas reddy
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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
Greenhorn

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)

thanks
vas reddy
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call Java web application from VB
 
Similar Threads
Getting a return code from main
How to run VB application thr' Apache Tomcat Server
Calling Java webservices from VB app
Callig Java Methods from Visual Basic
Help with java app & excel frontend