Hi,
I am using a webservice that has effectively an endpoint representing a
class, with operations representing methods. With jibx (or axis
wsdl2java) the result is a class per method. Aside from writing custom
marshaller/unmarshaller, is there a typical way to bind a sequence of
documents to a class?
The interaction would be like:
d = new Document()
d.name("el doco")
d.text("<blah/>")
d.owner("fred")
Marshall
d.create()
out:
<create xmlns="document">
<name>el doco</name>
<owner>fred</owner>
<data>
<blah xmlns=""/>
</data>
</create>
in:
<createResponse xmlns="document">
<id>XYZABC</id>
</createResponse>
Unmarshall
if (d == null)
d = new Document()
d.objectWithId("XYZABC")
out:
<object xmlns="document">
<id>XYZABC</id>
</object>
in:
<objectResponse xmlns="document">
<id>XYZABC</id>
<name>el doco</name>
</objectResponse>
d.owner()
out:
<owner xmlns="document">
<name>el doco</name>
</owner>
in:
<ownerResponse xmlns="document">
<owner>fred</name>
</ownerResponse>
d.text()
out:
<text xmlns="document">
<name>el doco</name>
</text>
in:
<textxResponse xmlns="document">
<data>
<blah xmlns=""/>
</data>
</textResponse>
Kendalll
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users