Skip to main content
Inspiring
July 9, 2009
Question

Consuming wsdl, PLEASE HELP!!!

  • July 9, 2009
  • 1 reply
  • 5656 views

I'm on a new project and this is the first time I'm going to work with web services using wsdl. I read some tutorials from the net and books today but still don't get the point especially what next after using cfinvoke.

I used cfinvoke as suggested by the adobe live doc, tutorial and get the returnvariable, dumped this variable and I can see a structure in red color with class name and many methods.

my question is, what next?

I can't find any article that help me describe the next step.

How am I supposed to get the data or the xml file (?), sorry I'm very new with web service.

This topic has been closed for replies.

1 reply

Inspiring
July 10, 2009

I guess consuming wsdl is not the right term since I already got the object. The better term may be is how to view or get data out from the object.

Inspiring
July 10, 2009

Can you attach the XML (or a screen shot) that's produced when you dump the object? It'll probably be the easiest way for someone to help direct you in extracting nodes and values from XML objects!

Inspiring
July 13, 2009

Things to try:

1. I see from your screenshot that there are two methods getMemberInformation(). One without parameters and one with an integer parameter. Try result2.getMemberInformation(0).

2. CFDUMP just result2.getMemberInformation() and/or result2.getMemberInformation(0). There may be some issue with your mydata2 struct that is not obvious from the code you posted.

3. Is it possible that getMemberInformation() is any empty array? I can't read the type from the screenshot you provided. Does ArrayLen(result2.getMemberInformation()) return a number?


I tried both:

<cfscript>

mydata2 =structnew();

mydata2.firstname = result2.GetMemberInformation(0);

</cfscript>

<cfdump var="#mydata2#" label="mydata2"><p>

and

<cfset

Y = "#ArrayLen(result2.getMemberInformation())#">

Both showed this error:

I also attached the screen shot again

The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.

Null Pointers are another name for undefined values.

The error occurred in C:\Inetpub\wwwroot\scratch\iModule\imodule_1.cfm: line 85
83 : <cfdump var="#result2#"><p>
84 : 
85 : <cfset Y = "#ArrayLen(result2.getMemberInformation())#">
86 : 
87 : <cfdump var="#Y#">