Nice article Dennis, but you haven't addressed the fundamental issue associated with the code-first approach. I'd like to see a code-first approach that allows me to use corporate-approved schema datatypes so that my applications aren't responsible for proliferating a ton of incompatible types. Types are the fundamental sharable components in service-oriented systems that enable interoperability of diverse systems. These types need to be managed and governed. They should be properly modeled by data professionals that understand the semantics of the data that will be exchanged by applications.
You really don't want a thousand different types representing core entities like "customer", "order", and "invoice". You want your applications to be exchanging well-defined types that are understood by many applications. If your goal is to simply create a point-to-point connection between two applications, then the code-first approach works just fine. And I appreciate the value of using a model that supports both SOAP and POX interfaces. But a better approach would be one that starts from corporate approved XML Schema data types and allows me to support both SOAP and POX interfaces. Anne On 8/29/07, Amila Suriarachchi <[EMAIL PROTECTED]> wrote: > hi dennis, > > nice article. It seems many alternatives being developed (which I belive is > good) for the code-first approach as well. I think that the java document > feature you have introduced is a cool feature as well. > > please bear with me asking these two questions. > 1. Does this compatible with java 1.4? > 2. I saw this your article > <class name="Order" requireds="@customerId customerName billTo items" > > optionals="orderId orderDate shipDate"> > <collection-field field="items" item-type="com.sosnoski.infoq.ex1.Item"/> > </class> > So it is manadatory to declare the item-type for an List? > > > Amila. > > > > > On 8/29/07, Paul Fremantle <[EMAIL PROTECTED]> wrote: > > Well to be fair you brought more than balance!! A whackload of good code > goes a loooonnnngg way! > > > > Paul > > > > > > > > On 8/28/07, Dennis Sosnoski < [EMAIL PROTECTED]> wrote: > > > Glad you enjoyed it, Paul! > > > > > > There's been so much bashing of the idea of web service development > > > starting from code that I thought it was time to bring a bit of balance > > > to the discussion. > > > > > > - Dennis > > > > > > > > > Paul Fremantle wrote: > > > > Great article! Thanks Dennis. > > > > > > > > Paul > > > > > > > > On 8/28/07, *Dennis Sosnoski* < [EMAIL PROTECTED] > > > > <mailto: [EMAIL PROTECTED]>> wrote: > > > > > > > > My article on "Code First" Web Services Reconsidered has been > > > > published > > > > by InfoQ: > http://www.infoq.com/articles/sosnoski-code-first I've also > > > > made some updates to Jibx2Wsdl to fix a few problems found, and > > > > with one > > > > more set of enhancements coming up will be making it part of the > > > > upcoming JiBX 1.1.6 release. In the meantime you can get it at > > > > > http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl > > > > > > > > I'll also mention that I'm going to be visiting Sydney and > > > > Melbourne in > > > > late September, with another trip to the U.S. in October. If > > > > anyone is > > > > interested in training classes or consulting support around SOA, > > > > Axis2, > > > > or XML in Java email me directly to find out more about my > services. > > > > > > > > - Dennis > > > > > > > > -- > > > > Dennis M. Sosnoski > > > > SOA and Web Services in Java > > > > Training and Consulting > > > > http://www.sosnoski.com - http://www.sosnoski.co.nz > > > > Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > > <mailto: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > <mailto: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > -- > > > > Paul Fremantle > > > > Co-Founder and VP of Technical Sales, WSO2 > > > > OASIS WS-RX TC Co-chair > > > > > > > > blog: http://pzf.fremantle.org > > > > [EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]> > > > > > > > > "Oxygenating the Web Service Platform", www.wso2.com > <http://www.wso2.com> > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > -- > > Paul Fremantle > > Co-Founder and VP of Technical Sales, WSO2 > > OASIS WS-RX TC Co-chair > > > > blog: http://pzf.fremantle.org > > [EMAIL PROTECTED] > > > > > > "Oxygenating the Web Service Platform", www.wso2.com > > > > -- > Amila Suriarachchi, > WSO2 Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
