how to communicate with web service

I am doing my final year project in SOA. I need to communicate with the webservice via my java coding. What is the best way to communicate with web service. Please, refer me any way. if possible post me the tutorial links, or youtube video links. Please.

Thank you so much in advance.


There are two types of webservices (, SOAP and REST. REST are easy. I am not sure if you already have a web service, if not then you will first need to create a webservice and then consume it.

If you already have a webservice that is provided by some third party then you need to ask them for the WSDL file. This WSDL will help you create client classes, that will let you communicate/consume the webservice hosted by third party.

There are few implementations of JAX-WS. Simpler one and most popular include: apache cxf (, apache axis (, spring web services (, java webservices (

I would recommend you this link: and this book (Imbibing Java Web Services by Mudunuri, Srinivas) which I found easy to follow: Its upto you which ever framework you want to use, good luck for the project.

Need Your Help

ASP.NET: Random.Next: NullReferenceException? iis random null nullreferenceexception

I am trying to set the text of two labels to random numbers on page load. This code

Hibernate AbstractBatchImpl sql must be non-null

java hibernate

Sometimes Hibernate throws an IllegalArgumentException deep into its methods, I have no idea why and I don't know how to reproduce.