Hi Sandeep,

If you're working from existing Java code, your best approach is to use Jibx2Wsdl (http://jibx.sourceforge.net/fromcode/jibx2wsdl.html) to generate a WSDL service description. This also generates JiBX bindings, so if you want you can continue to work with your existing code using Axis2 and the generated WSDL and bindings. You can also take the generated WSDL and use it to generate an ADB data model and use that with Axis2. Either way, the Axis2 web service should be interoperable with other web services stacks.

POJO deployment is generally not a good option, because it doesn't give you any control over XML representations or optional/required status. From Jira reports I've seen it also appears to have serious performance issues.

The 2007 data binding comparison article is still fairly accurate. ADB's schema support has improved since then, as has JiBX's. I'm planning to add direct code generation for JiBX to Axis2 WSDL2Java soon - for now, if you want to work from a WSDL with JiBX in Axis2 you have to first extract the schemas and generate those with JiBX, then rung WSDL2Java with the resulting binding and code.

 - Dennis

--
Dennis M. Sosnoski
Java XML and Web Services
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-611



Sandeep Khurana wrote:

Does anybody have any clue on this end? It could be vague, but nothing seemed documented for this.

-Sandeep

------------------------------------------------------------------------

*From:* Sandeep Khurana [mailto:[email protected]]
*Sent:* Monday, February 22, 2010 2:48 PM
*To:* [email protected]
*Subject:* ADB server side code

I am planning to generate server side code (wsdl2java) from WSDL which was created from an empty java file (using java2wsdl). I did this because writing WSDL first is a tedious task. I had a few questions on this approach:

   1. Is this approach good over POJO deployment (keeping in mind that
      I may have custom classes as return type and as parameters)? How
      will this behave if I only use POJO style WS?
   2. Will this solution be interoperable if I use ADB? To be
      specific, if the Webservice is consumed by CPP client, then,
      will I be able to get/set the custom objects correctly.
   3. How much will this approach be handy if I had Java client
      consuming the WS?

In addition, where can we find a new doc over existing databinding comparisions, the existing is of 2007 (old one here <http://www.ibm.com/developerworks/webservices/library/ws-java3/>)?

Thanks in advance.

Sandeep

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to