• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 614
  • Last Modified:

Problem about consuming .NET web service using Coldfusion

Hello

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#">
            </cfinvoke>

Open in new window

get-sms-cfm.jpg
0
tekas
Asked:
tekas
  • 2
1 Solution
 
SidFishesCommented:

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#">
0
 
tekasAuthor Commented:
Thanks a lot! That worked perfectly, now I have a well formed array result.
0
 
tekasAuthor Commented:
This solution resolves a general problem of Coldfusioon consuming a .NET web service.
0
 
gdemariaCommented:
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.

http://www.experts-exchange.com/Programming/Languages/.NET/Web_Services/Q_24365367.html


Thanks! :)
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now