[Fedora-suds-list] local schemaLocation values
Jeff Ortel
jortel at redhat.com
Thu Apr 15 12:55:50 UTC 2010
On 04/14/2010 08:26 PM, Christopher Hesse wrote:
> 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 <mailto: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.
Should use file:// for relative paths and file:/// for absolute paths.
>
> Thanks!
> -Chris
>
>
>
>
> _______________________________________________
> suds mailing list
> suds at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/suds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5126 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20100415/7c2a1442/attachment.bin
More information about the suds
mailing list