-
1. Re: Looking for explanation of wsdl mapping problem
omatzura May 29, 2007 2:53 PM (in response to teknokrat)Hi!
The problem is that the .net generated wsdls probably dont actually import the xmlschema schema (via an s:import statement), which results in the wsconsume schema parser not being able to find the global element definition for the schema element.. (You'll get an error for this in for example eclipse wtp wsdl editor also..)
I don't really know if there is any way to work around this in jbossws.. what you can do otherwise is save the wsdl locally, add the import yourself and then try to run wsconsume on it..
Hope this helps!
regards,
/Ole
eviware.com -
2. Re: Looking for explanation of wsdl mapping problem
teknokrat May 30, 2007 4:39 AM (in response to teknokrat)Thanks for the help. I did consider this but right at the beginning of all the element definitions is
<s:import namespace="http://www.w3.org/2001/XMLSchema" />
which I think is correct. -
3. Re: Looking for explanation of wsdl mapping problem
omatzura May 30, 2007 4:44 AM (in response to teknokrat)Hi,
the import probably needs to specify the location for it to work, ie<s:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="http://www.w3.org/2001/XMLSchema.xsd" />
regards,
/Ole
eviware.com -
4. Re: Looking for explanation of wsdl mapping problem
teknokrat May 30, 2007 6:02 AM (in response to teknokrat)That worked! Thank you very much.
Is this actually a mandatory requirement of some specification or a quirk of jbossws? If the wsdl is not being generated correctly I'd like to be able to tell the people involved.
Thank you
p.s
Is it possible to add this attribute using a binding file? -
5. Re: Looking for explanation of wsdl mapping problem
omatzura May 30, 2007 6:10 AM (in response to teknokrat)Hi,
well, judging from the XML Schema spec for imports (http://www.w3.org/TR/2001/PR-xmlschema-1-20010316/#composition-schemaImport), there are actually rules/guidelines for how to locate an XML Schema when the schemaLocation attribute is missing.. I don't know though if they would have been applicable to this situation and/or if the schema parser in jbossws actually tries to follow them..
regards!
/Ole
eviware.com