Hi,

I am using a WSDL that imports an XSD by using <xsd:import
namespace="http://wsdl.credoc.be/v2/asf"; schemaLocation="CredocASF.xsd"/>.
This XSD is located at the same location as the WSDL. 

When using the WSDL in the WSDL2Code tool, I get the following error
message: "An error occurred trying to resolve schema referenced at
'CredocCommon.xsd', relative to
'file:/G:/progs/wso2wsas-2.2/./work/extra/1.2018581221507517E12/ASF.wsdl'.:
java.io.FileNotFoundException: This file was not found:
file:/G:/progs/wso2wsas-2.2/work/extra/1.2018581221507517E12/CredocCommon.xsd"

Generating Java code for this WSDL works perfectly with Axis2, so I suppose
that the import statement is correct. WSAS however has a problem to find the
imported XSD, because it works on a copy of the original WSDL and in that
location the XSD does not exist.

Is there a solution/workaround to this problem ?

Regards, Stefan Lecho.
-- 
View this message in context: 
http://www.nabble.com/-WSDL2Code--Error-when-using-WSDL-with-xsd%3Aimport-tp15224025p15224025.html
Sent from the WSO2 WSAS Users mailing list archive at Nabble.com.


_______________________________________________
Wsas-java-user mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user

Reply via email to