[Fedora-suds-list] response has bad XML, double enclosed element

Matthew straycat000 at yahoo.com
Tue May 18 12:19:37 UTC 2010


It's been awhile since I've had to post to this list but now I have a confusing problem.

My script queries MLB.com's servers for a media location request.  The response back has an element of type xsd:string named "cdn".

That element is now being double enclosed.  

What used to be:


is now comng back as:


So it seems like this is both a string (inside <cdn>) and a complex type (outside <cdn>.)  I'm hoping this is just an error that they will resolve on their end.  If that's not the case, is it valid SOAP/XML to have a complex type and a string type with the same name?  How would I go about changing my local xsd file to accomodate this?

Because of many other omissions or errors in their official xsd files, I'm using my own xsd to parse their responses.  I'm attaching that xsd.  The elelment in question is an element of media-item.

Matthew Levine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20100518/ed814137/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MediaService.xsd
Type: application/octet-stream
Size: 11156 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20100518/ed814137/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MediaService.wsdl
Type: application/octet-stream
Size: 2223 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20100518/ed814137/attachment-0001.obj 

More information about the suds mailing list