File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Create Web - Service from a simple Java project. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Create Web - Service from a simple Java project." Watch "Create Web - Service from a simple Java project." New topic
Author

Create Web - Service from a simple Java project.

Ramakrishna Udupa
Ranch Hand

Joined: Aug 09, 2013
Posts: 253
Hi All,

I've Core-java App. which do all operations like creating threads, DB communication etc., Now I want to take inputs from out-side. So when I expose a single method(from Core-Java App) with required user inputs, Then from Web-sites(JEE) they can give inputs. Using that, I can run this Java-App. But I want good example with proper explanation. I heard SOAP and RESTful Web-services are there. Which one to use, what is the difference between them and which one having more Advantage.

Thanks All,
Ramakrishna K.C
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
You will find loads of helpful articles with examples linked in the Web Services FAQ here at the ranch.

Bill
Ramakrishna Udupa
Ranch Hand

Joined: Aug 09, 2013
Posts: 253
I created simple Web - Service in core-java project. I want to access my web-service from another computer. But, URL is



Here local-host is my machine. How to access from another machine. So, how to change my URL?

Thanks:
Ramakrishna K.C
Ramakrishna Udupa
Ranch Hand

Joined: Aug 09, 2013
Posts: 253
This is my code to publish



So, Instead of one reference (In above code, Endpoint endpoint = Endpoint.publish("http://localhost:8080/startnstop", new StartNStop());) I'm passing i.e new StartNStop. Can I pass more than one reference ? If Yes, How to pass? Explain with such type of situation/condition.

Thanks:
Ramakrishna K.C
Ramakrishna Udupa
Ranch Hand

Joined: Aug 09, 2013
Posts: 253
I want to call Web- service methods of Java project from JEE project. In java I exposed a method and when request comes from user I'm creating multiple threads to execute in java. But, Instead of threads, The request thread from JEE is going for execution and doing all the works. It is consuming time. Is there any solution for that?

Thanks:
Ramakrishna K.C
Ramakrishna Udupa
Ranch Hand

Joined: Aug 09, 2013
Posts: 253
Can I create Multiple threads in Web - service ?

Thanks:
Ramakrishna K.C
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create Web - Service from a simple Java project.