Skip to main content
Inspiring
July 9, 2009
Pregunta

Consuming wsdl, PLEASE HELP!!!

  • July 9, 2009
  • 1 respuesta
  • 5656 visualizaciones

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.

Este tema ha sido cerrado para respuestas.

1 respuesta

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

I attached a screen shot and below is my codes to get that result shown on the screen shot.

In this cfinvoke I passed only one of the function, there are many other functions, I assumed I have to use cfinvoke again whenever I want to get different data back from this web services.

<cfinvoke

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

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

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

<cfinvoke>

<cfdump

var="#result#">

In my effort to search for an explanation/tutorial, I found this link: http://articles.techrepublic.com.com/5100-10878_11-5067756.html

I was very happy at first and this what brought me to try the following codes but unfortunately these codes returns yet another object with a different set of functions such as getColumn( ); getColumn_info( ) instead of the data I need.

<cfscript>

mydata =

structnew();

mydata.first_name = result.getAllColumnResults();

mydata.last_name = result.getAllColumnResults();

</cfscript>

<cfdump

var="#mydata#" label="mydata">

Note: I modified the url on my cfinvoke shown in this posting for security issues, this url involve many sensitive data and my cf invoke can only work if I put

the login & password as cfinvokeargument