Re: [Rslib-talk] Type token in namespace http://www.w3.org/2001/XMLSchema not found
Status: Alpha
Brought to you by:
gweis
From: Nathan D. <dav...@gm...> - 2009-08-26 04:29:37
|
On Tue, Aug 25, 2009 at 10:45 PM, Gerhard Weis <ger...@gm...> wrote: > Hello, > Hi, Gerhard, > > thanks for that and great to hear, that the library is also useful for > others. > > I am currently a bit busy, but I will definitely have a closer look at your > problem later today or tomorrow. > > However, as of a quick look I would say I forgot to register the xsd:token > type. > > You can try to fix it in the rsl.xsd package the following way: > in rsl/xsd/factories.py int the method: createXSD01Schema add the line: > xsd.types["token"] = AnySimpleType("token", xsd) > > While I can't guarantee that this will work, I think it should do it. > That did it! I can't say I called the service successfully, but at least I'm past that error. Now it's just a matter of figuring out how to form the other parameters to make the server happy -- fortunately it provides fairly descriptive error strings. Would a complete fix also include adding the same line to createCSD99Schema? > > As mentioned above, I'll do a new release today or tomorrow after running > the test-suite with this change. > Thanks. I'm doing for a client, so that would be very helpful. Incidently, would it be possible to monkey-patch this -- for example, if another type was missing or (heaven forbid) someone referenced a non-standard xsd type in their WSDL? > > As a note: Type restrictions based on xsd:enumeration are currently ignored > by rsl.xsd ... You can definitely work with it, but you have to care > yourself about suppllying correct values to this attribute. > I'm curious what your plans are for expanding this in the future -- or, actually, the type system in general. It would be nice, for example, to be able to work with types defined in the schema as python classes. I'd like to get your thoughts on the feasibility of dynamically generating python classes from schemas. Thank you so much, Nathan Davis |