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