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.
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.