Well, heck-- you're making this harder than it has to be.  You don't
need a "full blown API"-- ColdFusion does all the SOAP nonsense for you!


If you are calling a SOAP web service, all you need is a couple lines of
code.  Check out:
http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applicat
ions_with_CFML/webservices4.htm

Two simple examples (copied from that page) would be:

<cfinvoke 
  webservice = "http://www.xmethods.net/sd/2001/BabelFishService.wsdl";
  method = "BabelFish"
  translationmode = "en_es" 
  sourcedata = "Hello world, friend"
  returnVariable = "foo">
<cfoutput>#foo#</cfoutput>

Or...

<cfscript>
  ws = CreateObject("webservice", 
        "http://www.xmethods.net/sd/2001/BabelFishService.wsdl";);
  xlatstring = ws.BabelFish("en_es", "Hello world, friend");
  writeoutput(xlatstring);
</cfscript>

All the SOAP stuff happens in the background and you get a regular
ColdFusion variable back.

I don't know what kind of variable your web service is returning (array,
string, complex type, ect), but looking at the WSDL will tell you that.

~Brad


-----Original Message-----
From: LSD 4Me [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2008 1:53 PM
To: CF-Talk
Subject: Re: Dynamic XML(DOM)

"...When you say XML data, you're not referring to a SOAP packet are
you?"

Yes, it is a SOAP packet returned in XML format. The API that was
written for the remote webservice has plenty of SOAP related requests
but we are using the HTTP POST method insteatd of creating a full blown
API on our side.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308761
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to