api-management-schema-import icon indicating copy to clipboard operation
api-management-schema-import copied to clipboard

Issue importing wsdl/xsd containing oasis-200401-wss-wssecurity-secext-1.0.xsd

Open sanpai2002 opened this issue 3 years ago • 4 comments

Hi The error (snippet) is

Info : SchemaLocation: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd, SchemaDirectory: C:\Users\pais\api-management-schema-import\ApiManagementSchemaImport\Microsoft.Azure.ApiManagement.WsdlProcessor.App\bin\Debug\net5.0 Info : import Info : SchemaLocation: http://www.w3.org/2001/xml.xsd, SchemaDirectory: C:\Users\XXX\api-management-schema-import\ApiManagementSchemaImport\Microsoft.Azure.ApiManagement.WsdlProcessor.App\bin\Debug\net5.0 Info : import Info : SchemaLocation: http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd, SchemaDirectory: C:\Users\pais\api-management-schema-import\ApiManagementSchemaImport\Microsoft.Azure.ApiManagement.WsdlProcessor.App\bin\Debug\net5.0 Info : XsdImportInclude : Location: 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' TargetNamespace: 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'. Error : The filename, directory name, or volume label syntax is incorrect. : 'C:\Users\pais\api-management-schema-import\ApiManagementSchemaImport\Microsoft.Azure.ApiManagement.WsdlProcessor.App\bin\Debug\net5.0\http:\docs.oasis-open.org\wss\2004\01\oasis-200401-wss-wssecurity-utility-1.0.xsd' Error : Stacktrace: at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)

sanpai2002 avatar Mar 09 '22 18:03 sanpai2002

Hi @sanpai2002 , Could you provide more information about the command line that you tried to run?

shinjiDev avatar Mar 15 '22 11:03 shinjiDev

@sanpai2002 can you share the .wsdl file?

felipementel avatar Jan 10 '24 22:01 felipementel

@shinjiDev The problem that @sanpai2002 are talking is because when the app are trying read the xsd file. the class ApiManagementSchemaImport/Microsoft.Azure.ApiManagement.WsdlProcessor.Common/WsdlDocument.cs concatenates two parameters (SchemaDirectory and SchemaLocation). When try to read, the exception is created and the app broken.

To correct this and others problema that I related at my pull request #22

felipementel avatar Jan 30 '24 21:01 felipementel

@shinjiDev I think that this pull request can be close.

With my pull request #22 we resolved this and others problems.

FYI @sanpai2002

felipementel avatar Jun 18 '24 10:06 felipementel

@shinjiDev This is not a problem at the new version.

This issue can be close!

felipementel avatar Sep 04 '24 10:09 felipementel