Re: cfinvoke smartermails webservices

2010-12-06 Thread Mack

cfdump var=#wsResults.getListNames()# ?

I think usually web service responses are Java objects that are
accessed via getters (for example if you have listNames in your
response then you can access it with getListNames(), etc).

-- 
Mack

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339807
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfinvoke smartermails webservices

2010-12-05 Thread Clay Owensby

I am working with smartermail's webservice functions.  I believe that I have 
the invoke code written properly but I am getting in return what looks like the 
.NET methods that I need to retrieve my results.
Ok so here is the result string that I get from the following code.

String : [Ljava.lang.String;@28ed4b76 TypeDesc : 
org.apache.axis.description.typed...@72f544f7

I am confused because I am trying to ge a list of the MailingLists from 
smartermail and I know that the list is called Test.  Do you know why I would 
get the results above?

here is my code and a link to the page running this code is 
http://www.ourppimarketing.com/Wrapper/test.cfm

cfinvoke 
webservice=http://mail.ourppimarketing.com:9998/Services/svcMailListAdmin.asmx?WSDL;
method=GetMailingListsByDomain
returnvariable=wsResults

cfinvokeargument name=AuthUserName value=/
cfinvokeargument name=AuthPassword value=/
cfinvokeargument name=DomainName value=ourppimarketing.com/

/cfinvoke


cfdump var=#wsResults#
cfdump var=#wsResults.ListNames#

cfset TempQuery = QueryNew(ListNames)

cfloop collection=#wsResults.ListNames# item=a  
  cfset QueryAddRow(TempQuery)
  cfset QuerySetCell(TempQuery, ListNames, trim (wsResults.ListNames))
  cfoutput#a# : #wsResults.ListNames[a]#/cfoutput
/cfloop 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339799
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm