Hi,
As I mentioned in a previous post, I decided to access a
web service using a REST protocol rather than using SOAP.
Now, sending the request is dead easy with Ocamlnet.
As for the response, it comes in an XML format, so it
seemed appropriate to give CDuce a try.
I have manually created a CDuce-style DTD for one of
the response types. It works beautifully. The problem
is that there are a few different types of responses.
I could manually create the DTDs for each of them, but
that seems like silly menial labour, since there ought to
be a way of generating them automatically.
All I have are the WSDL and XSD files describing the
entire range of web services. What I need is some utility
that given one particular request, returns the DTD of the
associated response (on CDuce's website there is a tool
that I could use to convert W3C DTDs to CDuce-style DTDs).
Is anyone familiar with such a tool, or alternatively,
an entirely different way of reaching the same end?
Thanks in advance,
C.S