• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to webservice

 
Kacee Saxena
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am new to Web Service. I want to create a RESTful webservice and a client to access the service.

I have few basic queries:

1) Is webservice client for a RESTful and SOAP service different ? I think client can be generic and should be able to access any type of web service. Please reply if this is correct.

2) For RESTful services,(JAX-RS) API is available and a reference implementation - Jersey. I want to create the web service without using Jersey implementation as I dont want to take overhead of Jersey libraries. Is it possible?

Please refer a minimal basic RESTful web service implementation and a client.

Any help would be highly appreciated.

Thanks,
Kacee
 
Martin Vanyavchich
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't post twice. Do your home work learn to google. Other that that, your doing fine

 
Kacee Saxena
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I apologize for posting it twice, did by mistake .. and didnt had option to delete teh repeated post.

I am already doing lot of googling... just thought of getting quick help from the forum , as i dont have much time with me.
If you have something useful to share, I will be glad to know from you , else please spare me from your advice.

Thanks,
Kacee
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is webservice client for a RESTful and SOAP service different ? I think client can be generic and should be able to access any type of web service.

Sure, the client can be generic if you make it so. But SOAP and REST are different approaches, and the client would have to have code that implements both.

For RESTful services,(JAX-RS) API is available and a reference implementation - Jersey. I want to create the web service without using Jersey implementation as I dont want to take overhead of Jersey libraries. Is it possible?

Any HTTP client library (like Apache HttpClient) would do, although it wouldn't be as convenient as using a dedicated JAX-RS client library. All Jersey libraries together amount to less than 4 MB in size; is that what you mean by "overhead"? What kind of scenario are you envisioning where that would be a problem?
 
Kacee Saxena
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a WebService and a client. I have a specification to use only basic APIs and refrain from using any reference implementation. Application itself is very big and we are adding different modules to it. Web Service impementation is another feature we are adding to it.

Hence I want to use only minimal set of external libraries. In short, I want to create a "hello world" web service and a client using REST for my understanding first. Later on , i will develop a full fledge service as per requirements.

Please post a link or guide me to a "hello world" implementation of REST based webservice & client.

Thanks,
Kacee
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the server side, Jersey comes with a couple of HelloWorld-type example services.

The client side would be nothing more than accessing an URL; the java.net.HttpURLConnection class can do that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic