[Registry-dev] Problems with uploading a WSDL with referenced XSD
Paul Fremantle
paul at wso2.com
Tue Jul 15 05:13:36 PDT 2008
Chathura
Some web based systems allow importing files from the local file system.
[When I say local, I mean local to the system the machine is running on]
They don't use the "file upload" model. Instead, they display a file
browser based on the local file system. So through the web interface you
can view the file system on the machine that the registry is running and
choose files.
Of course this does require care - the administrator needs to make sure
the registry cannot access important files (/etc/passwd style).
Paul
Javier Botana wrote:
> Hi Chathura,
>
> many thanks for the information, that clarified the matter.
>
> Regards,
>
> Javier
>
>
>
> Am 15.07.2008 um 06:17 schrieb Chathura C. Ekanayake:
>
>>
>> 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>
>>> <mailto:javier.botana at innoq.com> · web: http://www.innoq.com
>>> <http://www.innoq.com/>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Registry-dev mailing list
>>> Registry-dev at wso2.org <mailto:Registry-dev at wso2.org>
>>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>>
>>
>>
>> _______________________________________________
>> Registry-dev mailing list
>> Registry-dev at wso2.org <mailto:Registry-dev at wso2.org>
>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>
>
> ||| 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
--
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair
VP, Apache Synapse
Office: +44 844 484 8143
Cell: +44 798 447 4618
blog: http://pzf.fremantle.org
paul at wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
More information about the Registry-dev
mailing list