users@jax-ws.java.net

Multiple WSDL imports with the same namespace?

From: Mike Feldmeier <mfeldmeier_at_metadata.com>
Date: Wed, 23 Nov 2005 12:14:46 -0800

Hi,

 

As near as I can tell from the specs and other posts, multiple WSDL imports are allowed (not disallowed), but the wsimport tool seems to be enforcing a single import per namespace rule:

 

...

<!ENTITY MYSERVICE_NS ‘http://www.examples.com/myservice’>

...

 

<definitions ...>

 

<wsdl:import namespace=”&MYSERVICE_NS;” location=”&MYSERVICE_WSDLS;/messages_and_porttypes.wsdl”/>

<wsdl:import namespace=”&MYSERVICE_NS;” location=”&MYSERVICE_WSDLS;/portbinding_one.wsdl”/>

<wsdl:import namespace=”&MYSERVICE_NS;” location=”&MYSERVICE_WSDLS;/portbinding_two.wsdl”/>

 

      <service name=”MyService”>

            <port name=”PortOne” binding=”tns:PortOneBinding”>

                  ...

            </port>

            <port name=”PortTwo” binding=”tns:PortTwoBinding>

                  ...

            </port>

      </service>

 

</definitions>

 

yields:

 

error: duplicate "import" entity: "http://www.example.com/myservice"

 

 

Am I misinterpreting things, or is there a way around this, or is this an inherently bad thing that wsimport is protecting me from doing?

 

Thanks,

Mike

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.3/174 - Release Date: 11/17/2005