users@jax-rpc.java.net

Re: error: modeler error: duplicate "complexType" entity: "RegistryRequestType"

From: Doug Kohlert <doug.kohlert_at_sun.com>
Date: Mon, 23 Jun 2003 14:24:02 -0700

I couldnt forward this msg to jaxrpc-interest alias. Can you do it? or let me know what it requires to send it there.

-vivek.

-------- Original Message --------
Subject: Re: [Fwd: error: modeler error: duplicate "complexType" entity: "RegistryRequestType"]
Date: Mon, 23 Jun 2003 12:21:48 -0700
From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Organization: Sun Microsystems, Inc.
To: farrukhnajmi_at_NETSCAPE.NET
CC: Vivek.Pandey_at_Sun.COM, Doug Kohlert <doug.kohlert_at_sun.com>
References: <3EF734EE.1030007_at_sun.com>

Hi Farrukh,

Whats happening is, there are multiple imports of same schema document,
for example rs.xsd is imported using wsdl:import from a WSDL document
and using xsd:import from inside different schema documents. This is
legal. The check for duplicate entity seems to have bug when wsdl:import
importing schema and the same schema is imported from xsd:import.

workaround:

one of the WSDL (ebXMLRegistrySOAPService.wsdl) is not WS-I BP
conformant. Making it conformant will correct this error.

So the workaround will be to import schema document only from within
<xsd:schema>. This is as per WS-I BP 1.0 -
http://ws-i.org/Profiles/Basic/2003-05/BasicProfile-1.0-WGAD.htm#refinement43303408,
R2001/R2002. I am not sure if you can edit the WSDL,
http://www.oasis-open.org/committees/regrep/documents/2.5/services/ebXMLRegistrySOAPService.wsdl.

add -f:wsi option to wscompile and you will see the warning about this.

Regardless, this is a bug as jaxrpc allows schema document import using
wsdl:import. So go ahead and file a bug for this duplicate entity error.

Additionally, this WSDL is incorrect. The biding is rpc/lit, however
<wsdl:message part has element attribute and not type. This results in
wscompile ignoring the associated operations.

for example:

<message name="msgRegistryResponse">
         <documentation>Defines a RegistryResponse message.</documentation>
         <part name="partRegistryResponse" element="rs:RegistryResponse"/>
         <part name="partContent" type="xsd:string"/>
</message>

should be:

<message name="msgRegistryResponse">
         <documentation>Defines a RegistryResponse message.</documentation>
         <part name="partRegistryResponse" type="rs:RegistryResponseType"/>
         <part name="partContent" type="xsd:string"/>
</message>


-vivek.


-------- Original Message --------
Subject: error: modeler error: duplicate "complexType" entity: "RegistryRequestType"
Date: Mon, 23 Jun 2003 11:34:25 -0400
From: Farrukh Najmi <farrukhnajmi_at_NETSCAPE.NET>
Reply-To: Public discussion on JAX-RPC <JAXRPC-INTEREST_at_JAVA.SUN.COM>
To: JAXRPC-INTEREST_at_JAVA.SUN.COM

Hello,

I am using JAX-RPC 1.1 EA shipped as part of JWSDP 1.2.

I am trying to generate stubs with wscompile -import using
a WSDL file that has been validated using Cape Clear's WSDL Editor,
Build 728.

I am getting the following error:

error: modeler error: duplicate "complexType" entity: "RegistryRequestType"

with no additional information.

The command I used was:

wscompile -verbose -import -d c:\tmp ebxmlrr2.5WSDLConfig.xml

Attached is the ebxmlrr2.5WSDLConfig.xml which indicates that the WSDL
files is at:

http://www.oasis-open.org/committees/regrep/documents/2.5/services/ebXMLRegistrySOAPService.wsdl

Can you please tell me what is wscompile finding wrong in the WSDL? Are
there other WSDL Validators you suggest using in addition to Cape Clear?

Thanks.

-- 
Farrukh
__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!--
     Document   : ebxmlrr2.5WSDLConfig.xml.xml
     Created on : June 23, 2003, 8:51 AM
     Author     : Farrukh Najmi
     Description: JAX-RPC config file for wscompile tool describing the ebXML Registry 2.4 WSDL interface
-->
<configuration
     xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
     <wsdl
         location="http://www.oasis-open.org/committees/regrep/documents/2.5/services/ebXMLRegistrySOAPService.wsdl"
         packageName="com.sun.ebxml.registry.interfaces.soap.wsdl" />
</configuration>
-- 
Vivek Pandey
Web Technologies and Standards
Sun Microsystems
Farrukh Najmi wrote:
> Hello,
> 
> I am using JAX-RPC 1.1 EA shipped as part of JWSDP 1.2.
> 
> I am trying to generate stubs with wscompile -import using
> a WSDL file that has been validated using Cape Clear's WSDL Editor,
> Build 728.
> 
> I am getting the following error:
> 
> error: modeler error: duplicate "complexType" entity: "RegistryRequestType"
> 
> with no additional information.
> 
> The command I used was:
> 
> wscompile -verbose -import -d c:\tmp ebxmlrr2.5WSDLConfig.xml
> 
> Attached is the ebxmlrr2.5WSDLConfig.xml which indicates that the WSDL
> files is at:
> 
> http://www.oasis-open.org/committees/regrep/documents/2.5/services/ebXMLRegistrySOAPService.wsdl
> 
> Can you please tell me what is wscompile finding wrong in the WSDL? Are
> there other WSDL Validators you suggest using in addition to Cape Clear?
> 
> Thanks.
> 
> --
> Farrukh
> 
> __________________________________________________________________
> McAfee VirusScan Online from the Netscape Network.
> Comprehensive protection for your entire computer. Get your free trial today!
> http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
> 
> Get AOL Instant Messenger 5.1 free of charge.  Download Now!
> http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
> 
> 
> __________________________________________________________________
> McAfee VirusScan Online from the Netscape Network.
> Comprehensive protection for your entire computer. Get your free trial today!
> http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
> 
> Get AOL Instant Messenger 5.1 free of charge.  Download Now!
> http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <!--
>     Document   : ebxmlrr2.5WSDLConfig.xml.xml
>     Created on : June 23, 2003, 8:51 AM
>     Author     : Farrukh Najmi
>     Description: JAX-RPC config file for wscompile tool describing the ebXML Registry 2.4 WSDL interface
> -->
> 
> <configuration
>     xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
>     <wsdl
>         location="http://www.oasis-open.org/committees/regrep/documents/2.5/services/ebXMLRegistrySOAPService.wsdl"
>         packageName="com.sun.ebxml.registry.interfaces.soap.wsdl" />
> </configuration>
-- 
Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806