0

I want to start java web services with JAX-RPC/JAX-WS/JAX-RS style and have idea about xml/wsdl/soap. But still have doubts in starting the implementation :

  • Which soap implementation (Axis/CXF etc.) I should start with, so that I can easily adapt to other soap implementation after getting one?
  • Is there any default implementation to start with instead of switching to vendor specific implementations?
  • Is there any book(s) that can provide step by step information on these implementations?
  • Do you really think that it (JAX-RPC) is completely obsolete? I think you need to understand its basics too for giving support to existing services. Isn't it?
  • Is it possible to implement service without annotations?
  • What is difference between SOA and Web-Services?

Thanks.

sHAILU
  • 165
  • 1
  • 10
  • Could you please consider reformulating the title so that it's more descriptive? See also http://meta.stackexchange.com/questions/10647/how-do-i-write-a-good-title – Petr Aug 26 '12 at 08:26

2 Answers2

1

Which soap implementation (Axis/CXF etc.) I should start with, so that I can easily adapt to other soap implementation after getting one?

These are different (and very popular) frameworks. You pick one or the other and use it. It is not customary or easy to swap frameworks

Is there any default implementation to start with instead of switching to vendor specific implementations?

Not sure what you mean here. Java has defined a JSR for web services and there is Metro as reference implementation so anything that doesn't use e.g. a specific for Glassfish deployment would count as non-vendor specific.
I would recommend that you use either Axis 2 or CXF as they are very popular frameworks and have many online tutorials.

Is there any book(s) that can provide step by step information on these implementations?

There are many resources but you will need to look into something more specific.
If you go for Axis 2 or CXF you will find many online tutorials

Do you really think that it (JAX-RPC) is completely obsolete? I think you need to understand its basics too for giving support to existing services. Isn't it?

Yes it is obsolete. It is the old specification. Don't need to look into it.

Is it possible to implement service without annotations?

Of course it is. All tutorials usually show example of starting a Web Service using annotations and also starting a Web Service from a WSDL i.e. you first create a WSDL and the web service (stubs) are autogenerated

What is difference between SOA and Web-Services?

Web Services are used as one of the implementation technologies to offer SOA.
There is no book specifying differences between these 2 technologies since one is an implementation component of the other. If you need to learn about SOA there are plenty books. Is this question about a book recomendation?

Cratylus
  • 52,998
  • 69
  • 209
  • 339
  • Thanks Cratylus but your reply is more generic rather than specific!!! - So which reference I should use for Metro/Glassfish related? - Please suggest book(s) names. - For implementing without annotations, please share some nice link/book reference. - Any good book/article that can explain the difference between SOA and web-services? – sHAILU Aug 26 '12 at 04:41
  • Its better now but good to have book recommendation. One more query... While creating the web service from code, it is possible to create without annotations? – sHAILU Aug 27 '12 at 07:26
  • @sHAILU:I'll think about a book to recommend.Usually either you start from Java code and you use annotations to create the WSDL or you start from the WSDL and generate automatically the Java classes.So using the standard convenient method of frameworks annotations are mandatory.BUT a web service is typically XML(SOAP + Application data) encapsulated over HTTP.It is possible to write a web service without using any annotations.I.e. deploy an HTTP server and handle the parsing yourself.It is just a lot harder and more time consuming if you don't know these technologies – Cratylus Aug 27 '12 at 14:40
0

Which soap implementation (Axis/CXF etc.) I should start with, so that I can easily adapt to other soap implementation after getting one?

If you want to be able to adapt from one impl to another, you would need to use pure JAX-WS API's. You can actually start with the JAX-WS impl found in the JDK and then migrate to CXF r Metro (and maybe Axis 2, Axis2 is not JAX-WS certified like CXF and Metro are) as your requirements change or additional features are needed.

You can also see my similar answer at:

Difference between Apache CXF and Axis

Is there any default implementation to start with instead of switching to vendor specific implementations?

JAX-WS in the JDK, then to CXF or Metro.

Is there any book(s) that can provide step by step information on these implementations?

The CXF Resources and Articles page lists two books, one that covers both CXF and Axis2.

http://cxf.apache.org/resources-and-articles.html

Do you really think that it (JAX-RPC) is completely obsolete? I think you need to understand its basics too for giving support to existing services. Isn't it?

Obsolete. Don't worry about it.

Is it possible to implement service without annotations?

With CXF, yes, but it's certainly better to use the annotations. The annotations provide much more control over what happens at runtime, how the wsdl is created (if doing java first development), etc...

Community
  • 1
  • 1
Daniel Kulp
  • 14,447
  • 4
  • 45
  • 37