How to create a standalone RESTful Service in Java to consume JSON? - java

I am trying to create a standalone RESTful Service in Java without a Web Server.
This service will consume JSON that's sent part of the request from client applications.
I can create a SOAP web service using JAX-WS but I want to create REST service that will be run without a web server. Please suggest how can I create this? Appreciate your help.
Thanks

I prefer to choose spring boot to create Restful web services where it does not depend on web server. We can create and build the rest service as service.

Related

Call SOAP web services from a play framework (2.2.4) application

I am working on a web application developed using Play framework 2.2.4(Java) and now I need to call some SOAP web services from within my web application.
I am new to Play framework and web services and I am confused on how to do it.
So far I have only managed to used the WSDL for the SOAP services to generate the java classes using wsimport.
I came across the WS API of the play framework to asynchronously call the web services and I have the following doubts.
How can I call these SOAP services using the WS API of the play framework?
In play framework, is it necessary to use this WS API to make a web service client, or can it be done using other ways?
It would be really helpful if someone can share a small tutorial to do this.

Generate WSDL from Java Web Service in Eclipse

I have a GAE web service with a few GETs and POSTs, I am required to have a WSDL of the web service.
I have found several pages and posts about generating a web service from WSDL but how would I generate a WSDL from an already created web service? I was told this is possible with only a few clicks in Eclipse.
Typically the WebService producer gives you the WSDL. Most web services you are able to get to the WSDL by postfixing ?WSDL to the URL. Keep in mind that, some web service providers disable this feature.
That is if you have a web service here
http://hostname:1234/webservice
you can use
http://hostname:1234/webservice?wdsl
to retrieve the WSDL

Integration of FedEx SOAP WS with Spring Restful WS Project

I want to integrate FedEx WS with Spring Restful WS project. FedEx uses SOAP protocol and am new to this SOAP.
I want to know how to integrate with Spring Restful WS . Is there any API available to call the SOAP endpoints
Any thoughts on this or any resources available
You can try and use MuleSOFT ESB to change from one form of webservice to another.
You can look at Mule here.
What you can do is consume a SOAP service using MULE. Then convert it to JSON using MULE. And then serve up the data as RESTful API. You can find everything in Mule.

How to write Java RESTful Based Axis2 Web Service

I was reading a lot of information on the Internet, I promise, but I didn't find any post or tutorial in which appears How to write Java RESTful Based Axis2 Web Service
I don't know if this task has sense, because I have only read about RESTful Web Services or Web Services based on Axis2. It could be I have mixing differents ideas about how to develop Web Services and so, I need help. What can I do?
Where can I learn how to develop a RESTful Web Service based on Axis2?
You can't write a RESTful Web Service using Axis2. Axis2 is suited for SOAP web services.
For RESTful Web Services you have to use some other framework like Jersey
Edit: it seems you can indeed write a REST WS using Axis2 (yet Axis2 is mostly used for SOAP services).

How to call a java web service using JBOSS

I need some help to create and call a java web service in java.
I developed a java web service using JBOSS in eclips.
Now i wana call this web service as client side.
i need the way to call a web service like create a call, service , etc..
or please provide any videos to learn web service using jboss
Thanks to all in advance..
Jboss Webservices Client Tutorial
Here you go:
Eclipse JBoss Web Service Step by Step

Categories