Thanks for your Help! I'm going to work that out and look for a validator!
---- Original Message ---- From: [EMAIL PROTECTED] To: [email protected] Subject: Re: WSDL2Java NullPointerException populateService Date: Mon, 12 Nov 2007 15:55:22 -0500 >I also found a number of errors in your schema. > >1. You need to declare a namespace for your targetNamespace. You have >declared a default namespace ("http://www.w3.org/2000/10/XMLSchema"), >so any unqualified QNames refer to types in the schema namespace. >E.g.: > > <element name="Household"> > <complexType> > <all> > <element name="hid" >type="positive-integer" min_occures="1"/> > <element name="memberships" >type="Membership" nillable="true" > min_occures="0" >max_occures="unbounded"/> > </all> > </complexType> > </element> > >This tells the system to look for the "Membership" type in the schema >namespace rather than the "http://webservice" namespace. You need to >declare the targetNamespace and qualify these type references, e.g.: > ><schema targetNamespace="http://webservice" > xmlns="http://www.w3.org/2000/10/XMLSchema" > xmlns:tns="http://webservice"> > > <element name="Household"> > <complexType> > <all> > <element name="hid" >type="positive-integer" minOccurs="1"/> > <element name="memberships" >type="tns:Membership" nillable="true" > minOccurs="0" >maxOccurs="unbounded"/> > </all> > </complexType> > </element> > >2. You misspelled the "occurs" attributes: >"minOccurs" and "maxOccurs" versus "min_occures" and "max_occures" > >3. You misspelled the positive integer schema type: >"positiveInteger" versus "positive-integer" > >There may be more errors -- I strongly recommend that you validate >the schema. > >Anne > >Anne > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
