Problem about consuming .NET web service using Coldfusion

Posted on 2009-04-27
Last Modified: 2013-12-16

We're trying to consume a .NET web service vie Coldfusion. That service is supposed to return multiple data like a list. But instead when we dump the result, we see an object which is not related with the result expected. I'm attaching the dumped result returned.

Is there a general problem about invoking .NET web services using Coldfusion? Or are we doing somethin wrong?
<cfinvoke webservice="correct address here" returnvariable="newMessages" method="GetMessages">

                <cfinvokeargument name="CustomerNo" value="#CustomerNo#">

                <cfinvokeargument name="UserName" value="#UserName#">

                <cfinvokeargument name="Password" value="#Password#">

                <cfinvokeargument name="ServiceCode" value="#ServiceCode#">

                <cfinvokeargument name="Prefix" value="#Prefix#">

                <cfinvokeargument name="Status" value="#Status#">


Open in new window

Question by:tekas
    LVL 36

    Accepted Solution


    See if this gives you expected info...

    <cfset myStruct.result = structNew() />
    <cfset myStruct.xmlData = newMessages.get_any() />
    <cfset myStruct.mySchema = xmlParse(myStruct.xmlData[1]) />
    <cfdump var="#myStruct.mySchema#">

    Author Comment

    Thanks a lot! That worked perfectly, now I have a well formed array result.

    Author Closing Comment

    This solution resolves a general problem of Coldfusioon consuming a .NET web service.
    LVL 39

    Expert Comment

    I have the same problem, however, the suggest didn't help in my case.   I opened a question, if either of you have any ideas, I would really appreciate any suggestions.

    Thanks! :)

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
    The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now