Axis2 Data-binding Thoughts Major changes from Axis 1.x - - PowerPoint PPT Presentation

axis2 data binding
SMART_READER_LITE
LIVE PREVIEW

Axis2 Data-binding Thoughts Major changes from Axis 1.x - - PowerPoint PPT Presentation

Axis2 Data-binding Thoughts Major changes from Axis 1.x Investigate the possibility of using data binding toolsXmlBeans, JAXB, Castor Focus on doc/lit (Hi Glen... ) RPC lit/enc will be layered on top of doc/lit


slide-1
SLIDE 1

Axis2 Data-binding

Thoughts…

slide-2
SLIDE 2

Major changes from Axis 1.x

  • Investigate the possibility of using data

binding tools…XmlBeans, JAXB, Castor…

  • Focus on doc/lit (Hi Glen... )
  • RPC lit/enc will be layered on top of doc/lit
slide-3
SLIDE 3

Entities involved

“Java” Objects XML AXIOM DOM StAX or SAX StAX or SAX StAX Generated code (specific to data-binding framework used)

slide-4
SLIDE 4

Issues…

  • It is desirable to support many data

binding tools

  • Different tools use very different

marshalling/unmarshalling mechanisms

– Shall we standardize on JAXB?...

  • The data-binding tool, generated code and

service implementation are tightly coupled

  • So… to change the tool means to

regenerate code…

slide-5
SLIDE 5

Issues (cont.)

XML Schema Interfaces Implementation classes Is it possible to decouple these? Anyone of aware of type substitution is JAXB?

slide-6
SLIDE 6

Issues…

  • In the case of RPC lit or enc we shall transform

the schema specified in WSDL before passing it

  • n to the data binding framework
  • This will not allow the use of multi-refs on
  • utgoing messages…
  • However, if it is really important (ahh…) we can

tweak the StAX parser/OM to handle it on behalf

  • f the data-binding framework on incoming

messages… do we need this???

slide-7
SLIDE 7

At the moment…

  • We have a WSDL2Java toy that works for

WSDL 1.x & Doc/lit ONLY…

  • Can generate SEI, Stubs & Skeletons

using XMLBeans…

  • The tool uses Schema Object Model of

XMLBeans… hence cannot plug-in other data-binding tools

slide-8
SLIDE 8

Plans for the future…

  • Do what we have done for XMLBeans for

JAXB, Castor etc…

  • Identify a generic architecture where tools

are pluggable…

  • Support for RPC encoded/literal based on

the strategy of schema transformation…

slide-9
SLIDE 9

Thanks…