[Registry-dev] Problems with uploading a WSDL with referenced XSD
Chathura C. Ekanayake
chathura at wso2.com
Mon Jul 14 21:17:01 PDT 2008
Hi Javier,
Registry supports automatic imports and dependency tracking only for the
WSDLs imported from a URL. The reason for this is that there is no way
for the registry to access dependency files in the user's local system,
if the registry runs on a remote server. We are planning to implement
dependency handling, when dependencies are given as absolute URLs as you
have mentioned.
Thanks,
Chathura
Javier Botana wrote:
> Dear all,
>
> I am currently in the process of evaluating the WSO2 Registry. I tried
> out the wsdl-sample and everything worked fine. When I try to upload a
> WSDL file from the local file system ("NewWSDLFile.wsdl", see
> attachment), however, the referenced XML Schema (NewWSDLFile.xsd, see
> attachment) is not imported and added as dependency. I get the
> following error message:
>
> Failed to put resource /samples/NewWSDLFile.wsdl. All database
> operations will be rolled back. WSDLException (at
> /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An
> error occurred trying to resolve schema referenced at
> 'NewWSDLFile.xsd', relative to
> 'file:/Users/javier/Dev/tools/apache-tomcat-6.0.14/temp/reg21770.bin'.:
> java.io.FileNotFoundException: This file was not found:
> file:/Users/javier/Dev/tools/apache-tomcat-6.0.14/temp/NewWSDLFile.xsd
>
> Test environment:
>
> Mac OS X 10.5.4
> JDK 1.5
> WSO2 Registry v1.1
>
> But even if I copy the XSD to the Tomcat temp dir or I reference it
> with an absolute URL, it is not imported.
>
>
> The readme file corresponding to the sample says the following:
>
> "It should be noted here that if you upload a WSDL file from your
> local file system, and that WSDL has imports to some other WSDL
> (relative imports) then those import will not be handled correctly by
> the registry at present."
>
> Can I assume that there is currently no way to upload a WSDL together
> with referenced WSDL/XSD files from the local file system or do I miss
> something?
>
>
> Any help would be very much appreciated!
>
> Kind regards,
>
> Javier
>
>
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
>
>
> ||| Javier Botana
> |||
> ||| innoQ Deutschland GmbH · Halskestrasse 17 · 40880 Ratingen
> ||| phone: +49 2102 77162-100 · mobile: +49 171 3513459 · fax: +49
> 2102 77160-1
> ||| email: javier.botana at innoq.com
> <mailto:javier.botana at innoq.com> · web: http://www.innoq.com
> <http://www.innoq.com/>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Registry-dev mailing list
> Registry-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>
More information about the Registry-dev
mailing list