null reference exception on verified wsdl
Closed this issue · 1 comments
VVSoft commented
Good day!
I ask for help with parsing wsdl, I am interested in extracting comments, but during processing I get a null reference exception error
wsdl_link: https://goznak.ru/bitrix/components/bitrix/forum.interface/show_file.php?fid=23900&action=download
i try parse as file in cmd:
.\SvcUtil.exe exchange.wsdl /svcutilConfig:configfile.xml
configfile.xml:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="xmlComments" type="WCFExtrasPlus.Wsdl.Documentation.XmlCommentsConfig, WCFExtrasPlus"/>
</configSections>
<system.serviceModel>
<client>
<metadata>
<wsdlImporters>
<extension type="WCFExtrasPlus.Soap.SoapHeaderImporter, WCFExtrasPlus"/>
<extension type="WCFExtrasPlus.Wsdl.Documentation.XmlCommentsImporter, WCFExtrasPlus"/>
</wsdlImporters>
</metadata>
</client>
</system.serviceModel>
<xmlComments format="Default" wrapLongLines="True"/>
</configuration>
Result:
PS C:\Temp\123> .\SvcUtil.exe exchange.wsdl /svcutilConfig:configfile.xml
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.8.3928.0]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: An error occurred in the tool.
Error: Ссылка на объект не указывает на экземпляр объекта.