17
Views
1
Comments
Consuming SOAP API

I am getting an error as below while consuming SOAP API, the structure has been created from XML but I cannot publish it.


error CS0117: 'System.Xml.XmlConvert' does not contain a definition for 'ToDocumentType'


there is a structure with the name "DocumentType" and other structures use the  DocumentType as DataType but only one structure has an exception.

Please help me to solve this.

2020-11-25 10-45-32
Mostafa Othman
Champion

Hello Dona,

Please check created structure if it has any attribute of type ToDocumentType. Also you need to check WSDL file and schema of output XML from this service and check for ToDocumentType if it exists.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.