Copy link to clipboard
Copied
Hi all,
I am not able to get the values GetUsers() functions via a c# service. Do you know why? <cfdump outfut all the functions names of that webservice..
<cfset
x = cfobject("webservice","http://w9s312c1/WebService/Store.svc?wsdl") >
<cfset
e = x.getUsers()>
<cfdump
var="#e#">
Copy link to clipboard
Copied
You didn't provide nearly enough information for anyone to help you.
What kind of error are you getting? If you're not getting an error, what's happening exactly?
What kind of object is the C# service supposed to return?
If you don't get an error, what happens when you invoke some of those functions?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
There is no error. but not getting values of that function. that function has email, first, last name fields.
Copy link to clipboard
Copied
Are you able to invoke any of the other functions? What exactly does that function return? An array containing the three fields, or something else?
Dave Watts, CTO, Fig Leaf Software
Copy link to clipboard
Copied
it returns bunch of function names, and return types not the values. And when I looked the output source code it has wsdl/xml content.
Copy link to clipboard
Copied
When you dump the GetUsers function, are there other functions you can invoke from there?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
yes there are
Copy link to clipboard
Copied
What happens when you invoke those functions?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
Please see the attached image.
Copy link to clipboard
Copied
It looks to me like your function returns an object containing an array of User objects (whatever they are). You need to basically drill down until you get something that can be converted to a string. So, take the current object you're dumping, then invoke GetUser(1) (for example), then dump that, etc, etc.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
a function called "m" returns a single value works and return the value but not getusers(), getusers return that dump structure.