Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Michael Xenakis
Jacob Danner wrote: What do you mean by to change sth on the namespaces ? When i parse ( with WSDL4J ) a WSDL document from a specified URL i copy the namespaces from WSDL definitions because some of the prefixes that are used in the xsds encapsulated in types are not resolved...So, i

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Jacob Danner
This new error means something the references are now being resolved properly. You'll have to find out why you are getting this new error, but it looks like 2 of your artifacts are compiling/referencing WS-ResourceProperties.wsdl Best of luck, -jacobd On Wed, May 13, 2009 at 12:31 AM, Michael

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Michael Xenakis
Do you mean by that , that the problem is in the wsdl document or the code? Also yesterday i've tried to find where is this WS-ResourceProperties.wsdl and i couldn't find it in their server thanks again Jacob, Michael Jacob Danner wrote: This new error means something the references are

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Jacob Danner
If I'm following whats happening, the issue is actually in how you are compiling all of the schemas together. You probably have several schemas that include the contents of WS-ResourceProperties.wsdl I would imagine the issue is now in your code. As a simple workaround, you might be able to

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Michael Xenakis
Yes, most probably you are right, that's what is happeningi have to skip imports/includes if have already imported/included. The method |XmlOptions http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html| |*setCompileMdefNamespaces

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hi Jacob and thanks for the reply, Let's start from scratch. I have WSDL files with WSDL imports. I use WSDL4j to parse the wsdl files...so, when i get the types section of the WSDL document i hold on a Xmlobject array all the XSDs from the types element. After doing this procedure to store

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
Hmm, I think you are making it too hard on yourself with all of the WSDL4J to pull out the types element. XMLBeans' scomp tool can be run on wsdls. Have/can you give this a try? I ran the following from the command line without much of a problem. # scomp

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hi Jacob and thank you for your answer, The think is that i can't pull out the WSDL4j from my code because my work is a part of a bigger project that uses WSDL4j. Could you tell me please the way to convert the relative URLs on the imports to absolute URLs?I hope u did that by xmloptions or

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
Hi Michael, I did just convert the wsdl imports by hand because it was the quickest and easiest way for me to. There shouldn't be a problem using the relative URLs so long as the schemaLocation values are all correct (point to proper files) once the scomp is run. Are you doing your compilation

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hey Jacob, Yes, i'm doing the compilation programmatically with compileXSD method...and that was a compileXSD error apparently. I've checked the xmloptions to find a way to skip this error but nothing. Jacob Danner wrote: Hi Michael, I did just convert the wsdl imports by hand because

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
You can't skip an error like this. It's valid. If I'm understanding your case properly, the error message is telling you the imported schemas cannot be found. I would start by looking at how you are creating your XMLObject array. What is the value of

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hi Jacob, You were right, every single xmlobject (schema) has source name null... What i should do now? Jacob Danner wrote: You can't skip an error like this. It's valid. If I'm understanding your case properly, the error message is telling you the imported schemas cannot be found. I would

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
If been a while since I've tinkered with these APIs, but I would try setting the sourceName value to the value of the schemaLocation ie, setSourceName(../foo.xsd); Let the list know how this turns out. -jacobd On Tue, May 12, 2009 at 10:34 AM, Jacob Danner jacob.dan...@gmail.com wrote: You

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Ok, but the schemaLocations are attributes of the import elements...how could i manipulate every import and correct it , in order to compile? Every import could have different namespace and schemaLocation fields With setSourceName you just set the url of the whole schema... Could you

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
Okay, taking your example from above import namespace=http://blahblahzdoing.com; SchemaLocation=./../X/Y/Z/SchemaExample.xsd/ You are probably doing something like this to load SchemaExample.xsd XMLObject xo = XMLObject.Factory.parse(StringOfSchemaExample.xsd); you might be able to do something

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Actually, i am going to tell you exactly what i do... compilationObject is ArrayListXmlObject and contains all my schemas, but before adding all the schemas to the ArrayList i take the string representation of every xmlobject (schema) to change sth on the namespaces section and again parse

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
What do you mean by to change sth on the namespaces ? Okay so a couple of things... -You are parsing String representations of schemas which is why you are having trouble resolving references. If you parsed the files, this probably wouldn't be an issue. -You are having these troubles because

error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-11 Thread Michael Xenakis
Hi everybody, i get the error on the Subject with the above details: at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-11 Thread Jacob Danner
Maybe I'm missing something in your scenario, but whenever I've seen that error it has meant something is wrong with something in my XML. With your error message, I'd suggest looking at ../X/Y/SchemaExample.xsd as a starting point. Is this file well-formed? What makes you think its an issue that