Any ideas for automatically marshalling
record types with variants for XML-RPC?
We need to put the "tag" information somewhere,
perhaps as a separate component of the TStruct
(but how should it be called).
Of course we can define what we want as long as client
and server use haxr, but in other cases?
Perhaps we should use some more general scheme (SOAP) then.
If the Haskell app is the defining side,
I'd love to just "derive Haskell2Xml" for my data,
and then I'd want a "haskell2scheme" (not: DTD)
so that the Java side can use a Schema->Java compiler (like xjc).
On the other hand if I have to use a given XML schema,
I want some "xhc" tool (Schema->Haskell).
Perhaps some of these projects are already out there?
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
---- http://www.imn.htwk-leipzig.de/~waldmann/ -------
with haxr-20050621, I have trouble interfacing to Java.
When I build an XML RPC call with haxr, containing a struct, I get
<?xml version='1.0' ?>
<methodCall
><methodName
>vorlesungen</methodName
><params
><param
><value
><struct
><member
><name
>schule</name
><value
><string
>HTWK Leipzig</string></value></member> ...
but when I build the same call with org.apache.xmlrpc, I get
<?xml version="1.0"?><methodCall><methodName>vorlesungen</methodName>
<params><param><value><struct><member><name>matrikel</name><value>531</value></member>
<member><name>schule</name><value>HTWK</value></member> ...
the difference is that haxr has extra <string> tags
for values of arguments. I don't think this is right?
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
---- http://www.imn.htwk-leipzig.de/~waldmann/ -------
On 29 November 2005 14:00, Ross Paterson wrote:
> It would be useful if one of the nightlies could put up web-browsable
> documentation for the HEAD libraries. That would make it easier for
> people who don't follow CVS to spot problems and contribute text
> between GHC releases.
Done; docs for a nightly build will from now on be available from:
http://www.haskell.org/ghc/dist/current/docs/
for HEAD, and
http://www.haskell.org/ghc/dist/stable/docs/
for STABLE.
The HEAD docs now include the Building Guide, which currently isn't
linked from the main title page (I'll fix that):
http://www.haskell.org/ghc/dist/current/docs/building/
I've still to add some links from elsewhere in the GHC site.
Cheers,
Simon