Thanks both for your responses. I will inform the vendor that the schemas need to be corrected.
--- Anne Thomas Manes <[EMAIL PROTECTED]> wrote: > Given that the schema specified > elementFormDefault="qualified", the > schema is invalid. You cannot define two elements in > a single > namespace with the same local name. The proper fix > to Axis2 would be > to generate an error that flags the problem. > > The proper fix to the schema is to create a global > element called URL > and ref the element from the complex type > definitions. > > Note also that the first schema (the one imported > into the WSDL) > includes a number of element definitions with no > type definitions. > e.g., > > <xsd:element name="LoadBlogRequest" /> > > These definitions default to xsd:anyType, which will > cause lots of > interop problems. My interpretation of the schema is > that these > elements are intended to contain nothing -- > basically a void type. If > that is the intention, they should be defined as > follows: > > <xsd:element name="LoadBlogRequest" > > <xsd:complexType /> > </xsd:element> > > Anne > > On 3/7/07, Amila Suriarachchi > <[EMAIL PROTECTED]> wrote: > > The problem was you had two complex types contain > same element name > > eg. > > <xsd:complexType name= > > "Entry"> > > <xsd:element name="URL" > > minOccurs="0" maxOccurs="1"> > > <xsd:simpleType > > > > > <xsd:restriction base="xsd:string"> > > <xsd:minLength > > value="0" /> > > <xsd:maxLength > > value="255" /> > > </xsd:restriction> > > </xsd:simpleType > > > > > > > </xsd:element> > > </xsd:complexType> > > > > and > > <xsd:complexType > > name="Entry_Reply"> > > <xsd:all minOccurs="0" > > maxOccurs="1"> > > <xsd:element name= > > "URL" minOccurs="0" maxOccurs="1"> > > > > <xsd:simpleType> > > <xsd:restriction base="xsd:string"> > > > > <xsd:minLength value="0" /> > > < > > xsd:maxLength value="255" /> > > </xsd:restriction> > > > > </xsd:simpleType> > > </xsd:element> > > I fixed this by generating a unique suffix. Please > check with a nightly > > build > > > > > > -- > > Amila Suriarachchi, > > WSO2 Inc. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________________________________________ Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
