Search code examples
web-servicescoldfusion-11cfinvoke

How to fix "Unsupported Schema format for unwrapping! found all but expected sequence" in cfinvoke CF11?


I'm running into an odd issue when invoking a webservice from the cfinvoke tag on ColdFusion 11 Enterprise Edition. The error message I am getting is:

Unsupported Schema format for unwrapping! found all but expected sequence

The stack trace starts with:

org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported Schema format for unwrapping! found all but expected sequence at org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.processXMLSchemaSequence(SchemaUnwrapperExtension.java:405) at...

Has anyone else encountered this issue or know how to fix it? A big thank you in advance for any help or advice.


Solution

  • The reason that I had this issue is that the web service is using Axis1. ColdFusion 11 by default assumes that the web service is using Axis2.

    To fix it, I've added the wsversion attribute to the <cfinvoke> tag and set its value to 1.