aspose file tools*
The moose likes Web Services and the fly likes Axis for Webservices 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 "Axis for Webservices" Watch "Axis for Webservices" New topic
Author

Axis for Webservices

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

Guys,

Have anyone tried using Apache Axis for webservices? Can you share some idea on what capabilities that you get using Axis?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
If you search through this forum you'll find that many people have used it. What information are you looking for specifically that isn't listed on the home page at http://ws.apache.org/axis2/ ?


Ping & DNS - my free Android networking tools app
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

Long time ago, I thought of preparing for the SCDJWS exam and I was going through the tutorials for SOAP and I did not want to explore any furthur as it had too many information that I had to keep in mind in order to sit for the exam and also I was not working on Webservices at thost times. But very recently I will be kind of having a chance to work on webservices and I came acorss axis and I quickly read through the apache site and came to know that with Axis I do not have to deal anymore with SOAP by myself as Asis is an abstraction over it. I just cannot believe this. I mean I did not find any concrete information from the Apache website that could substantiate my conclusion. So that was why I was asking here if anyone has already worked on it to provide me with some information. But however like you said I will skim through this forum for any related posts on Apache AXIS.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Axis (versions 1 and 2) has always used SOAP, but you -as the developer- never had to create or handle the actual XML. So I'm not sure what you mean by "I do not have to deal anymore with SOAP by myself".
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Jothi Shankar Kumar Sankararaj:
came to know that with Axis I do not have to deal anymore with SOAP by myself as Axis is an abstraction over it.


Any time you try to abstract away the SOAP messages you are actually increasing
  • Contract-to-Implementaion coupling (e.g. coupling to Java/Axis)
  • Contract-to-Logic coupling (e.g. coupling to your internal service logic implementation )


  • which through (permitted and expected) Consumer-to-Contract and indirect coupling leads to increased (undesirable)
  • Consumer-to-Implementation coupling
  • Consumer-to-Logic coupling


  • This is the one of the reasons why contract first development should be preferred over "contract last" development (aside from the Object/XML impedance mismatch; see Item 43: Recognize the object-hierarchical impedance mismatch (PDF) and Relational/Object/XML (ROX) impedance mismatch.).

    The service contract (WSDL in the case of a SOAP web service) is central to everything the service does. Usage of graphical tools to design the SOAP web service contract is encouraged. However you need a good understanding of XML, XML Namespaces, XML Schema, SOAP, and WSDL in order to design an effective WSDL that defines the supported SOAP messages.

    Once you have your SOAP web service contract's WSDL you can use tools like Axis's WSDL2Java, Axis2's WSDL2Java, or JAX-WS's wsimport (Creating a service from WSDL) to generate a service skeleton. The generated code will exhibit Logic-to-Contract coupling - this is considered acceptable however because this type of coupling doesn't propagate any implementation or logic coupling to the service consumer.

    So competent SOAP web services developers have to have a good understanding of XML, XML Namespaces, XML Schema, SOAP, and WSDL plus any of the WS-* standards that they may be using.
    [ November 30, 2008: Message edited by: Peer Reynders ]
    Joe Harry
    Ranch Hand

    Joined: Sep 26, 2006
    Posts: 9427
        
        2

    That was a decent explanation. Thanks!
    Joe Harry
    Ranch Hand

    Joined: Sep 26, 2006
    Posts: 9427
        
        2

    That was a decent explanation. Thanks!
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: Axis for Webservices