• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF9 and C# webservice help

Participant ,
Jan 07, 2011 Jan 07, 2011

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

TOPICS
Advanced techniques

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2011 Jan 07, 2011

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 07, 2011 Jan 07, 2011

Copy link to clipboard

Copied

There is no error. but not getting values of that function. that function has email, first, last name fields.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2011 Jan 08, 2011

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

http://www.figleaf.com/

http://training.figleaf.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 09, 2011 Jan 09, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2011 Jan 09, 2011

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 09, 2011 Jan 09, 2011

Copy link to clipboard

Copied

yes there are

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2011 Jan 09, 2011

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 10, 2011 Jan 10, 2011

Copy link to clipboard

Copied

Please see the attached image.output.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2011 Jan 10, 2011

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 10, 2011 Jan 10, 2011

Copy link to clipboard

Copied

LATEST

a function called "m" returns a single value works and return the value but not getusers(), getusers return that dump structure.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation