hello,
I have got problem with wsdl2java and not sure what is wrong. 

If there is imports with schemaLocation as URL as following, then cxf
generates two packages with same classes - one with normal name from
namespace and with package name "generated". And then I get compilation
error because of two objectFactories and same classes.

    <wsdl:types>
        <xsd:schema targetNamespace="urn:hl7-org:v3/Imports">
            <xsd:import schemaLocation="http://.....xsd"; ..... />
        </xsd:schema>
    </wsdl:types>

If I switch  import schemaLocation as local files like        
   <xsd:import schemaLocation="file:///c:/..." 
then only correct package is generated and no more error.

But I need import to be from URL and not from local folder.

Any ideas?
 Thank you




--
View this message in context: 
http://cxf.547215.n5.nabble.com/wsdl2java-and-schemaLocation-as-url-tp5747812.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to