New artifact referencing an existing - Governance Issue

79 Views Asked by At

enter image description here

I’m uploading new artifacts in Greg trying to referrer an existing. For example, I have A.xsd, B.xsd and C.xsd on Greg , and I’m uploading a WSDL referring them but it doesn’t work. A have other scenarios with xsd, wadl and other artifacts. Is it a bug ? If yes this is serious because it is a Governance tool. I have used these references: https://docs.wso2.com/display/Governance501/Uploading+Schemas+with+Imports+from+Local+Filesystem+into+Governance+Registry https://docs.wso2.com/display/Governance501/Creating+a+Governance+Archive

1

There are 1 best solutions below

7
On

No, As far as I understand this is not a bug. You can't refer something already uploaded to the registry from WSDL file that you are going to upload. Therefore please include A.xsd, B.xsd and C.xsd schema files with WSDL and upload the complete folder as a zip file. For that you can use wsdl zip file uplad form. If you uploading A.xsd, B.xsd, and C.xsd multiple times G-Reg will look after the overriding part for you.

@LeandroGoncalves Could create a zip file which contains basics.xsd, tiposBasico.xsd, xmldsig-core-schema.xsd, and leiauteNFe.xsd in the root and try to upload that zip file using schema file upload wizard in publisher. this issue will not happen.