This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
Salesforce has made a change to the WSDLs created and this causes an issue when creating new Salesforce Service Instances.
When trying to generate a new Salesforce Service, the following error is seen:
There is an error in XML document (1, [NUMBER]).
There may a different line or position in the document but the error remains the same.
Please make a backup of the WSDL supplied by Salesforce
In the WSDL that is supplied by SalesForce, please make the following adjustments:
Step 1: Open the WSDL in notepad
Step 2: Search for this element <simpleType name="soapType">
Step 3: Inside this element: '<simpleType name="soapType">' find the restriction element '<restriction base="xsd:string">'
Step 4: Add <enumeration value="tns:ChangeEventHeader" /> before the closing tag of the restriction element
Step 5: Save the WSDL file and test again.