0 Replies Latest reply on Oct 27, 2006 1:23 PM by Halfhoot

    WSDL/QueryBean Problem

    Halfhoot
      Hello!

      In Coldfusion 6.1, we used the WSDL generated by a CF component to get
      the WSDL for a function returning a query, which mapped to a QueryBean
      in soap/xml. We then had another application (not coldfusion) publish a
      webservice and generate the xml that simulated the return of a
      QueryBean. The process worked smoothly for a few years.

      We are now converting from 6.1 to 7.0 and the process is no longer
      working, because something has changed in the QueryBean definition.

      Consider this:
      http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=ColdFusion_Documentation&file=00001555.htm
      Which says the following:

      <|*complexType name="QueryBean"*|>
      <all>
      <element name="data" nillable="true" type="intf:|*ArrayOf_SOAP-ENC_Array*|" />
      <element name="ColumnList" nillable="true"
      type="intf:|*ArrayOf_SOAP-ENC_string*|" />
      </all>
      |*</complexType>*|

      Now, compare that with the output from:
      http://www.cogwm.org/ztest_serve.cfc?wsdl

      <complexType name="QueryBean">
      <sequence>
      <element name="columnList" nillable="true" type="impl:ArrayOf_xsd_string"/>
      <element name="data" nillable="true" type="impl:ArrayOfArrayOf_xsd_anyType"/>
      </sequence>
      </complexType>

      The ztest_serve file is a ColdFusion7 component returning a query from a
      component method. These two things should be identical. The WSDL
      generated from the component is not what the documentation says.

      So which is correct? Should we consider the documentation to be the new
      version7 wsdl for a querybean? Or should we use the wsdl actually
      generated by a component running under CF7 ? Ultimately, the WSDL
      generated by the component does not seem to be working, so is it
      possible to get a 'complete' wsdl for returning a querybean from a soap
      service?

      Thanks