[Fedora-suds-list] local schemaLocation values

Christopher Hesse christopher.hesse at gmail.com
Thu Apr 15 01:26:02 UTC 2010


Sorry ignore that, it looks like file: relative links aren't really defined,
the proper method is to not use file: in schemaLocation, but to use
file://<absolute path>/main.wsdl when creating your Client object, just
requires you have some code to figure out what the absolute path is.

On Tue, Apr 13, 2010 at 7:58 PM, Christopher Hesse <
christopher.hesse at gmail.com> wrote:

> *
> In version 0.3.9 of suds, the following in a WSDL file:
>
> <xsd:import namespace="http://example.com/"
> schemaLocation="file:Basic.xsd" />
>
> fails with an error that it couldn't find "/Basic.xsd"
>
> I think the problem is the two lines in sxbasic.py that look like
>
>     "if* *'://'* *not* *in* url:"
>
> I replaced this with
>
>    *"if* *':'* *not* *in* url:"
>
> and it worked for me, though I don't know enough about XML schemas to know
> if that's legit for everyone.
>
> Thanks!
> -Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20100414/c74243bc/attachment.html 


More information about the suds mailing list