On 13 Aug 2005, at 03:37, Jochen Wiedmann wrote:
In the case of JAXB: It is as simple as reading

    http://ws.apache.org/jaxme/manual/

It's really not difficult. In fact, it reduces complexity quite a lot.

Thanks. That does look surprisingly simple.

There are couple I'm still unsure about in the context of XML-RPC:

1. In order to make JaxMe generate classes for representing XML-RPC like this:

    <struct>
      <member>
        <name>Who</name>
        <value><string>me</string></value>
      </member>
      <member>
        <name>When</name>
        <value><dateTime.iso8601>20050803T00:03:32</dateTime.iso8601>
      </member>
    </struct>

it looks like I'd make a schema for validating documents like this:

    <Something>
      <Who>me</Who>
      <When>2005-08-03T00:03:32</When>
    </Something>

Is that correct? The XML here is quite different; the XMLRPC and XML Schema datetime formats aren't even the same. It seems like much of the value in writing an XML Schema is gone if we can't use it to validate raw documents easily.

2. How would dynamic structures work? Our existing XML-RPC-based protocol has a method called GetSettings; it's passed a Vector of setting names and returns a Hashtable of setting names to values. We can't generate code based on this <struct>, since the members aren't known at compile time.

Regards,
Scott

--
Scott Lamb <http://www.slamb.org/>

Reply via email to