We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Word doc comparison works using online swagger, but fails when called via a rest client (Error: wordDocument xmlns='http://schemas.microsoft.com/office/word/2003/wordml'> was not expected)

Issue Ticket details.docx (319.5 KB)

Word document comparison works using the online swagger https://apireference.aspose.cloud/, but does not work when triggered using a REST client (Insomnia). See details in attached document.

API URL: https://api.aspose.cloud/v4.0/words/online/put/compareDocument

> {
> 	"Error": {
> 		"Message": "There is an error in XML document (1, 40).",
> 		"InnerError": {
> 			"Message": "<wordDocument xmlns='http://schemas.microsoft.com/office/word/2003/wordml'> was not expected."
> 		}
> 	},
> 	"RequestId": "Root=1-62ea89c0-742f668f554bf70f5e0051e9"
> }

Input files for comparison are also attached input files.zip (30.7 KB)

Note that the word convert to pdf/html works with the same input files (v4/words/convert?format=pdf&fileNameFieldValue=sourceFilename).

Update: this was a bad request. The order of parameters sent was not correct in my request. When corrected the call from local REST client works fine.

CorrectOrderParams.JPG (18.6 KB)

@sunnymgx

Thanks for your feedback. It is good to know that you have managed to resolve the issue.