From: Stu B. <stu...@gm...> - 2008-12-06 01:53:49
|
Thanks for your help Willem! One question: do you mean that you fixed some Yaws/SOAP errors and have newer code? If so, would you be able to send me your newer version. You can just tar up your version and I'll look for the differences. Thanks again, Stu On Thu, Dec 4, 2008 at 12:58 PM, Willem de Jong <w.a...@gm...> wrote: > Hmmm... > > It doesn't give me the error that you are having. Either because you didn't > have the imported files in a place where they could be found, or because I > have a different version on my system. I might have a different version, > because I have fixed some errors and I didn't really know what to do with > the new version... > > However, I did find 2 problems: > 1. it looks like erlsom doesn't accept > simpleType sub-elements/specifications for attributes, and probably it > should. This is something I should fix in a new release of erlsom (some > day...). In the mean time this can be solved (sort of) by removing these > simpleTypes from the attributes. It won't make any difference to the > behaviour, since the restrictions specified in simpleTypes are ignored > anyway. > > 2. I didn't realise that there could be import statements in the WSDL that > import an XSD, I only expected XSD imports inside a "types" element of the > WSDL (that is, inside the schema(s) that can be defined there). It shouldn't > be very hard to fix this in yaws_soap_lib, but I am not particularly eager > to do this, to be honest. You can work around this by including a "types" > element in the WSDL and importing from there. > > I am including the patched files. They seem to work (I can do the initModel > step, but I didn't do any testing beyond that). > > I realise that this is not very encouraging, but I don't have the time to > fix this properly. The yaws soap project needs a proper owner, and it can't > be me because I have no time, I don't know how to create patches and deal > with version control systems etc., and also I have no direct interest in it > (I am not using it myself). > > Good luck, > Willem > > On Thu, Dec 4, 2008 at 8:41 PM, Stu Bailey <stu...@gm...> wrote: >> >> Hi Willem, >> >> Thank you for your help. XSDs are attached. >> >> Stu >> >> On Thu, Dec 4, 2008 at 11:01 AM, Willem de Jong <w.a...@gm...> >> wrote: >> > Hi Stu, >> > >> > It has to do with the imports. Either the parser cannot find the >> > imported >> > XSDs, or there is something inside these XSDs (probably another import) >> > that >> > causes a problem. I cannot check it, because you didn't provide the XSDs >> > (and I didn't find them in the Internet either). >> > >> > The problem may be solved if you make sure that all imported files are >> > located somewhere where the parser can find them (working directory is >> > probably easiest). If that doesn't solve it, please send the imported >> > files, >> > so that I can try to find out what is wrong. >> > >> > Regards, >> > Willem >> > >> > On Thu, Dec 4, 2008 at 4:33 AM, Stu Bailey <stu...@gm...> wrote: >> >> >> >> The following error is generated by the attached WSDL file which works >> >> fine in GSOAP. Any ideas? >> >> >> >> 108> Wsdl7 = yaws_soap_lib:initModel("ifmap.wsdl","ifmap"). >> >> ** exception error: no function clause matching >> >> yaws_soap_lib:makeImportList(undefined,[]) >> >> in function yaws_soap_lib:parseWsdls/5 >> >> in call from yaws_soap_lib:initModel2/5 >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> >> challenge >> >> Build the coolest Linux based applications with Moblin SDK & win great >> >> prizes >> >> Grand prize is a trip for two to an Open Source event anywhere in the >> >> world >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> _______________________________________________ >> >> Erlyaws-list mailing list >> >> Erl...@li... >> >> https://lists.sourceforge.net/lists/listinfo/erlyaws-list >> >> >> > >> > >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Erlyaws-list mailing list >> Erl...@li... >> https://lists.sourceforge.net/lists/listinfo/erlyaws-list >> > > |