Hi Stefan,
I'm assuming you are using WSAS 2.2 and UI WSDL2Code utility that comes
with it. If you have uploaded WSDL in your local machine to WSAS, which
contains schema imports, unfortunately It want work. We didn't provide
the facility to upload imported schema. Please raise an JIRA for this.
The simple workaround would be to copy all artifacts (WSDL and Schema )
to "public_html" and give the url of that location to the WSDL2Code
utility or if you have installed Tomcat, copy all to webapps/ROOT
directory and provide the Url to WSDLCode.
Thank you
Saminda
stlecho wrote:
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.
_______________________________________________
Wsas-java-user mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user