You are using something like a SOAP class, that reads the WSDL and
does all the work for you. You have to do it entirely manually in
witango. You have to build the soap envelope, and use @URL, and there
is a hack to specify text/xml in http header.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On May 21, 2008, at 10:22 AM, Rick Sanders wrote:
Hey guys,
I’ve been programming in Cold fusion way too long now, lol... I need
to invoke a web service from WiTango and then update the database.
In CF the code is something like this:
<cfinvoke webservice="http://webservices.eventinventory.com/ticketsearch?WSDL
" method="ListEvents_Active" returnvariable="XMLResult">
<cfinvokeargument name="APPCLIENT_ID" value="1475"/>
</cfinvoke>
<CFSET myXMLDoc = XMLParse(XMLResult._any[1])>
<CFSET toloop = ArrayLen(myXMLDoc.XMLRoot.XMLChildren[2].XMLChildren)>
<CFLOOP from="1" to="#toloop#" index="Loop">
<cfquery name="Events" datasource="SportsWorld">
INSERT INTO ActiveEvents (EventID,EventName,EventType) VALUES
('<cfoutput>#myXMLDoc.XMLRoot.XMLChildren[2].XMLChildren[Loop].XMLAttributes.EID#</cfoutput>','<cfoutput>#myXMLDoc.XMLRoot.XMLChildren[2].XMLChildren[Loop].XMLAttributes.E_Name#</cfoutput>','<cfoutput>#myXMLDoc.XMLRoot.XMLChildren[2].XMLChildren[Loop].XMLAttributes.E_Type#</cfoutput>')
</cfquery>
</CFLOOP>
How would I invoke a Web Service in WiTango, and parse it to an
array using the above example?
Thanks!
<image002.jpg>
Rick Sanders
Webenergy
Canada: 902-431-7279
USA: 919-799-9076
Canada: www.webenergy.ca
USA: www.webenergyusa.com
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf