Skip to main content
Participant
November 7, 2008
Answered

cfquery wsdl

  • November 7, 2008
  • 1 reply
  • 230 views
What am I missing here? I'm trying to have coldfusion run a query (which works) and then return it to a remote script. All my webservice stuff works, I'm just not sure how to send the result back.

What is the return type here? I'd like to return it as an array .
    This topic has been closed for replies.
    Correct answer Newsgroup_User
    username=bagus wrote:
    >
    > What is the return type here? I'd like to return it as an array .
    >

    Then your return type would be 'array'. But you will have to convert
    the query record set into an array of your choice. Simple functions and
    |or loops can easily be utilized to do this.

    Otherwise you can set the return type as 'query' which is translated by
    most web service consumers as some type of specialized array|hash
    array|structure complex variable.

    1 reply

    Newsgroup_UserCorrect answer
    Inspiring
    November 7, 2008
    username=bagus wrote:
    >
    > What is the return type here? I'd like to return it as an array .
    >

    Then your return type would be 'array'. But you will have to convert
    the query record set into an array of your choice. Simple functions and
    |or loops can easily be utilized to do this.

    Otherwise you can set the return type as 'query' which is translated by
    most web service consumers as some type of specialized array|hash
    array|structure complex variable.