Re: modeler error: expected root element "schema", found element "wsdl:definitions"

From: Roberto Chinnici <Roberto.Chinnici_at_Sun.COM>
Date: Tue, 17 Aug 2004 09:39:09 -0700

The problem is that PayPalSvc.wsdl is using an xs:import to import
a WSDL document, with the intent of importing a schema embedded
inside it. This violates R2004 in WS-I Basic Profile 1.0:

  R2004 A DESCRIPTION MUST NOT use the XML Schema "import" statement
  to import a Schema from any document whose root element is not "schema"
  from the namespace "".

The workaround is to extract the schema in ebayTypes.wsdl, save it
as ebayTypes.xsd and change the xs:import/_at_schemaLocation attribute
in PayPalSvc.wsdl to point to it.


Cyril Bouteille wrote:
> Hello,
> I bet it's a quite stupid error, but we can't figure it out from the
> error message...
> We get the following error message from wscompile when using jwsdp 1.4
> with one of our partner's wsdl file (attached):
> command line: wscompile -d /wsdp/base -gen:client -keep -s /wsdp/base
> -verbose /build/jwsdp-config.xml
> error: modeler error: expected root element "schema" (in namespace
> ""), found element "wsdl:definitions"
> (in namespace "")
> That wsdl compiles fine with other implementation such as Axis.
> Has anyone any idea as to what the problem could be?
> Thanks!
> --
> Cyril Bouteille
> <> Enterprise Java Architect
> <>, Inc. (an IAC/InterActiveCorp
> <> company)
> 333 Market Street Suite 100
> San Francisco, CA 94105
> ------------------------------------------------------------------------
> /This email message is for the sole use of the intended recipient(s) and
> may contain confidential information. Any unauthorized review, use,
> disclosure or distribution of this message is prohibited. If you are not
> intended recipient of this message please contact the sender by reply
> email and destroy all copies of the original message./

To unsubscribe, e-mail:
For additional commands, e-mail: