You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by Davanum Srinivas <da...@gmail.com> on 2005/10/20 16:00:06 UTC

XMLSchema

Folks,

Can you please let me know how to recreate the problems you had with XmlSchema?

Thanks,
dims

--
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Re: XMLSchema

Posted by Lawrence Mandel <lm...@ca.ibm.com>.
Thanks for the reference Dims.

The WSDL does need to be cleaned up. (Looks like it's based on an old 
version of the WSDL 2.0 spec.) I will take more of a look at this a bit 
later. Perhaps we can work with Yahoo and help them create a valid WSDL 
2.0 description.

Lawrence Mandel

Software Developer
IBM Rational Software
Phone: 905 - 413 - 3814   Fax: 905 - 413 - 4920
lmandel@ca.ibm.com



Davanum Srinivas <da...@gmail.com> 
10/25/2005 05:07 PM
Please respond to
woden-dev


To
woden-dev@ws.apache.org
cc

Subject
Re: XMLSchema






Great! Have u seen this Example Yahoo WSDL 2.0 wsdl?
http://www.pacificspirit.com/blog/2005/03/02/yahoo_search_web_service_in_wsdl_20


Sanjiva mentioned that it has some problems, could we use a cleaned up
version of that as a test case in woden?

thanks,
dims

On 10/25/05, John Kaputin <KA...@uk.ibm.com> wrote:
> Thanks Dims. I'll change Woden over to XmlSchema.
>
> John Kaputin
>
>
>
>
>              Davanum Srinivas
>              <davanum@gmail.co
>              m> To
>                                        woden-dev@ws.apache.org
>              25/10/2005 18:09 cc
>
> Subject
>              Please respond to         Re: XMLSchema
>                  woden-dev
>
>
>
>
>
>
>
>
>
> Fixed all 3 problems. Please get latest SVN for XmlSchema.
>
> thanks,
> dims
>
> On 10/20/05, John Kaputin <KA...@uk.ibm.com> wrote:
> > Dims,
> >
> > PROBLEM 1
> > test case -  http://www.uddi.org/schema/uddi_v2.xsd
> > org.apache.ws.commons.schema.XmlSchemaException: No namespace found in
> > given base simple content type
> >       at
> >
> 
org.apache.ws.commons.schema.SchemaBuilder.handleSimpleContentExtension(SchemaBuilder.java:759)
>
> >
> > patch1.txt seems to fix problem 1.
> > (See attached file: patch1.txt)
> >
> > PROBLEM 2
> > occurred with the same test case after applying patch1.  The
> handleElement
> > method is passing a null value for the localPart to the QName ctor.
> > test case -  http://www.uddi.org/schema/uddi_v2.xsd
> > java.lang.IllegalArgumentException: localpart cannot be null.
> >       at javax.xml.namespace.QName.<init>(QName.java:130)
> >       at javax.xml.namespace.QName.<init>(QName.java:102)
> >       at
> >
> 
org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1405)
>
> >
> > PROBLEM 3
> > Seems it cannot handle relative filepaths for the schemaLocation on a
> > schema import.
> > org.apache.ws.commons.schema.XmlSchemaException: no protocol: name.xsd
> >       at
> >
> 
org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1835)
>
> >       at
> >
> 
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1653)
>
> >       at
> >
> 
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:113)
>
> > two test files are test3.xsd and name.xsd.
> > (See attached file: test3.xsd)  (See attached file: name.xsd)
> >
> > regards,
> > John Kaputin
> >
> >
> >
> >
> >              Davanum Srinivas
> >              <davanum@gmail.co
> >              m>
> To
> >                                        woden-dev@ws.apache.org
> >              20/10/2005 15:00
> cc
> >
> >
> Subject
> >              Please respond to         XMLSchema
> >                  woden-dev
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Folks,
> >
> > Can you please let me know how to recreate the problems you had with
> > XmlSchema?
> >
> > Thanks,
> > dims
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org



Re: XMLSchema

Posted by Davanum Srinivas <da...@gmail.com>.
Great! Have u seen this Example Yahoo WSDL 2.0 wsdl?
http://www.pacificspirit.com/blog/2005/03/02/yahoo_search_web_service_in_wsdl_20

Sanjiva mentioned that it has some problems, could we use a cleaned up
version of that as a test case in woden?

thanks,
dims

On 10/25/05, John Kaputin <KA...@uk.ibm.com> wrote:
> Thanks Dims. I'll change Woden over to XmlSchema.
>
> John Kaputin
>
>
>
>
>              Davanum Srinivas
>              <davanum@gmail.co
>              m>                                                         To
>                                        woden-dev@ws.apache.org
>              25/10/2005 18:09                                           cc
>
>                                                                    Subject
>              Please respond to         Re: XMLSchema
>                  woden-dev
>
>
>
>
>
>
>
>
>
> Fixed all 3 problems. Please get latest SVN for XmlSchema.
>
> thanks,
> dims
>
> On 10/20/05, John Kaputin <KA...@uk.ibm.com> wrote:
> > Dims,
> >
> > PROBLEM 1
> > test case -  http://www.uddi.org/schema/uddi_v2.xsd
> > org.apache.ws.commons.schema.XmlSchemaException: No namespace found in
> > given base simple content type
> >       at
> >
> org.apache.ws.commons.schema.SchemaBuilder.handleSimpleContentExtension(SchemaBuilder.java:759)
>
> >
> > patch1.txt seems to fix problem 1.
> > (See attached file: patch1.txt)
> >
> > PROBLEM 2
> > occurred with the same test case after applying patch1.  The
> handleElement
> > method is passing a null value for the localPart to the QName ctor.
> > test case -  http://www.uddi.org/schema/uddi_v2.xsd
> > java.lang.IllegalArgumentException: localpart cannot be null.
> >       at javax.xml.namespace.QName.<init>(QName.java:130)
> >       at javax.xml.namespace.QName.<init>(QName.java:102)
> >       at
> >
> org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1405)
>
> >
> > PROBLEM 3
> > Seems it cannot handle relative filepaths for the schemaLocation on a
> > schema import.
> > org.apache.ws.commons.schema.XmlSchemaException: no protocol: name.xsd
> >       at
> >
> org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1835)
>
> >       at
> >
> org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1653)
>
> >       at
> >
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:113)
>
> > two test files are test3.xsd and name.xsd.
> > (See attached file: test3.xsd)  (See attached file: name.xsd)
> >
> > regards,
> > John Kaputin
> >
> >
> >
> >
> >              Davanum Srinivas
> >              <davanum@gmail.co
> >              m>
> To
> >                                        woden-dev@ws.apache.org
> >              20/10/2005 15:00
> cc
> >
> >
> Subject
> >              Please respond to         XMLSchema
> >                  woden-dev
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Folks,
> >
> > Can you please let me know how to recreate the problems you had with
> > XmlSchema?
> >
> > Thanks,
> > dims
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Re: XMLSchema

Posted by John Kaputin <KA...@uk.ibm.com>.
Thanks Dims. I'll change Woden over to XmlSchema.

John Kaputin



                                                                           
             Davanum Srinivas                                              
             <davanum@gmail.co                                             
             m>                                                         To 
                                       woden-dev@ws.apache.org             
             25/10/2005 18:09                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: XMLSchema                       
                 woden-dev                                                 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Fixed all 3 problems. Please get latest SVN for XmlSchema.

thanks,
dims

On 10/20/05, John Kaputin <KA...@uk.ibm.com> wrote:
> Dims,
>
> PROBLEM 1
> test case -  http://www.uddi.org/schema/uddi_v2.xsd
> org.apache.ws.commons.schema.XmlSchemaException: No namespace found in
> given base simple content type
>       at
>
org.apache.ws.commons.schema.SchemaBuilder.handleSimpleContentExtension(SchemaBuilder.java:759)

>
> patch1.txt seems to fix problem 1.
> (See attached file: patch1.txt)
>
> PROBLEM 2
> occurred with the same test case after applying patch1.  The
handleElement
> method is passing a null value for the localPart to the QName ctor.
> test case -  http://www.uddi.org/schema/uddi_v2.xsd
> java.lang.IllegalArgumentException: localpart cannot be null.
>       at javax.xml.namespace.QName.<init>(QName.java:130)
>       at javax.xml.namespace.QName.<init>(QName.java:102)
>       at
>
org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1405)

>
> PROBLEM 3
> Seems it cannot handle relative filepaths for the schemaLocation on a
> schema import.
> org.apache.ws.commons.schema.XmlSchemaException: no protocol: name.xsd
>       at
>
org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1835)

>       at
>
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1653)

>       at
>
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:113)

> two test files are test3.xsd and name.xsd.
> (See attached file: test3.xsd)  (See attached file: name.xsd)
>
> regards,
> John Kaputin
>
>
>
>
>              Davanum Srinivas
>              <davanum@gmail.co
>              m>
To
>                                        woden-dev@ws.apache.org
>              20/10/2005 15:00
cc
>
>
Subject
>              Please respond to         XMLSchema
>                  woden-dev
>
>
>
>
>
>
>
>
>
> Folks,
>
> Can you please let me know how to recreate the problems you had with
> XmlSchema?
>
> Thanks,
> dims
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Re: XMLSchema

Posted by Davanum Srinivas <da...@gmail.com>.
Fixed all 3 problems. Please get latest SVN for XmlSchema.

thanks,
dims

On 10/20/05, John Kaputin <KA...@uk.ibm.com> wrote:
> Dims,
>
> PROBLEM 1
> test case -  http://www.uddi.org/schema/uddi_v2.xsd
> org.apache.ws.commons.schema.XmlSchemaException: No namespace found in
> given base simple content type
>       at
> org.apache.ws.commons.schema.SchemaBuilder.handleSimpleContentExtension(SchemaBuilder.java:759)
>
> patch1.txt seems to fix problem 1.
> (See attached file: patch1.txt)
>
> PROBLEM 2
> occurred with the same test case after applying patch1.  The handleElement
> method is passing a null value for the localPart to the QName ctor.
> test case -  http://www.uddi.org/schema/uddi_v2.xsd
> java.lang.IllegalArgumentException: localpart cannot be null.
>       at javax.xml.namespace.QName.<init>(QName.java:130)
>       at javax.xml.namespace.QName.<init>(QName.java:102)
>       at
> org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1405)
>
> PROBLEM 3
> Seems it cannot handle relative filepaths for the schemaLocation on a
> schema import.
> org.apache.ws.commons.schema.XmlSchemaException: no protocol: name.xsd
>       at
> org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1835)
>       at
> org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1653)
>       at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:113)
> two test files are test3.xsd and name.xsd.
> (See attached file: test3.xsd)  (See attached file: name.xsd)
>
> regards,
> John Kaputin
>
>
>
>
>              Davanum Srinivas
>              <davanum@gmail.co
>              m>                                                         To
>                                        woden-dev@ws.apache.org
>              20/10/2005 15:00                                           cc
>
>                                                                    Subject
>              Please respond to         XMLSchema
>                  woden-dev
>
>
>
>
>
>
>
>
>
> Folks,
>
> Can you please let me know how to recreate the problems you had with
> XmlSchema?
>
> Thanks,
> dims
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Re: XMLSchema

Posted by John Kaputin <KA...@uk.ibm.com>.
Dims,

PROBLEM 1
test case -  http://www.uddi.org/schema/uddi_v2.xsd
org.apache.ws.commons.schema.XmlSchemaException: No namespace found in
given base simple content type
      at
org.apache.ws.commons.schema.SchemaBuilder.handleSimpleContentExtension(SchemaBuilder.java:759)

patch1.txt seems to fix problem 1.
(See attached file: patch1.txt)

PROBLEM 2
occurred with the same test case after applying patch1.  The handleElement
method is passing a null value for the localPart to the QName ctor.
test case -  http://www.uddi.org/schema/uddi_v2.xsd
java.lang.IllegalArgumentException: localpart cannot be null.
      at javax.xml.namespace.QName.<init>(QName.java:130)
      at javax.xml.namespace.QName.<init>(QName.java:102)
      at
org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1405)

PROBLEM 3
Seems it cannot handle relative filepaths for the schemaLocation on a
schema import.
org.apache.ws.commons.schema.XmlSchemaException: no protocol: name.xsd
      at
org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1835)
      at
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1653)
      at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:113)
two test files are test3.xsd and name.xsd.
(See attached file: test3.xsd)  (See attached file: name.xsd)

regards,
John Kaputin



                                                                           
             Davanum Srinivas                                              
             <davanum@gmail.co                                             
             m>                                                         To 
                                       woden-dev@ws.apache.org             
             20/10/2005 15:00                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         XMLSchema                           
                 woden-dev                                                 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Folks,

Can you please let me know how to recreate the problems you had with
XmlSchema?

Thanks,
dims

--
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org