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

Here are the codes:

<cfinvoke

webservice="https://amn.mod.com/ws_20/generalquery.asmx?wsdl" method="GetOneMember" returnvariable="result2">

   <cfinvokeargument name="login" value="mylogin">

   <cfinvokeargument name="password" value="mypassword">

   <cfinvokeargument name="columns" value="firstname, Lastname,zip">

   <cfinvokeargument name="constituentId" value="0003009">

</cfinvoke>

<cfdump

var="#result2#">

<p>

<!--- Checking what are the sub functions of GetAllColumns --->

<cfscript>

mydata2 =

structnew();

mydata2.firstname

= result2.GetMemberInformation;

</cfscript>

<cfdump

var="#mydata2#" label="mydata2">

<p>

Error:

Element GETMEMBERINFORMATION is undefined in RESULT2.

The error occurred in C:\Inetpub\wwwroot\scratch\iModule\imodule_1.cfm: line 89
87 : <cfscript>
88 : mydata2 =structnew();
89 : mydata2.firstname  = result2.GetMemberInformation;
90 : </cfscript>
91 : 


I suspect that GetMemberInformation needs parenthesis GetMemberInformation(). Have you also confirmed that the result2 object has a GetMemberInformation() method?