caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* OCSoap Schema Restrictions
@ 2007-05-16  9:07 Florian Hars
  2007-05-16 11:53 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Hars @ 2007-05-16  9:07 UTC (permalink / raw)
  To: caml-list

I found this in the ocsoap  source:

type Types = <wsdl:types> [
     Documentation?
     Schema (* Only allow a single schema here, even though the standard
	     * would allow multiple.
	     *)
  ]

Is there a deeper reason for this restriction? The silly web service I'd
need to connect to contains 8 schema elements here...

Yours, Florian.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] OCSoap Schema Restrictions
  2007-05-16  9:07 OCSoap Schema Restrictions Florian Hars
@ 2007-05-16 11:53 ` Richard Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2007-05-16 11:53 UTC (permalink / raw)
  To: Florian Hars; +Cc: caml-list

On Wed, May 16, 2007 at 11:07:02AM +0200, Florian Hars wrote:
> I found this in the ocsoap  source:
> 
> type Types = <wsdl:types> [
>      Documentation?
>      Schema (* Only allow a single schema here, even though the standard
> 	     * would allow multiple.
> 	     *)
>   ]
> 
> Is there a deeper reason for this restriction? The silly web service I'd
> need to connect to contains 8 schema elements here...

Well, there's not really a deep reason, beyond the facts that (a) WSDL
is a ridiculously complicated standard, and (b) OCSoap understands
just about enough to be able to parse the Google AdWords schemas.

The shallow reason is in wsdltointf.ml:

let main () =
  let wsdl = wsdl_load filename in
  let schema = wsdl_schema wsdl in

You'll probably want to make wsdl_schema return a list of schemas,
then have this code iterate over them.  Doing the right thing with the
functions and types defined in each schema so that their names don't
clash with each other might be a bit harder: you might consider
putting them into separate submodules or just mangling the names.

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-16 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-16  9:07 OCSoap Schema Restrictions Florian Hars
2007-05-16 11:53 ` [Caml-list] " Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).