Passing Array type to WSDL

Posted: 03-09-2005, 08:25 PM
Hi, I am writing a CFC which takes the array as input and return type as
string. Wondering how i can display the field properties of the array. Fields
in MyArray are FName, LName which are strings <cfcomponent displayname='MyCFC'
hint='CFC WSDL'> <cffunction access='remote' name='MyFunction'
returntype='string'> <cfargument name='MyArray' required='true' type='array'>
<cfreturn My result> </cffunction>
</cfcomponent> I am using CF MX 6 Looking for your help. Thanks in advance
-Raaga

Reply With Quote

Responses to "Passing Array type to WSDL"

Kevin Schmidt
Guest
Posts: n/a
 
Re: Passing Array type to WSDL
Posted: 03-09-2005, 08:27 PM
Well you could always use ArrayToList and convert the array to a string that way.


Reply With Quote
Raaga
Guest
Posts: n/a
 
Re: Passing Array type to WSDL
Posted: 03-09-2005, 08:37 PM
Hi Kevin, Thanks for your reply. The purpose of writing this CFC is to
collect the FName, LName and i have those in a Array. If some one sees the WSDL
by accessing http://MyURL/MyCFC?WSDL how do they know that they have to pass
FName and LName in the query which are of string datatype. Thanks -Raaga

Reply With Quote
Kevin Schmidt
Guest
Posts: n/a
 
Re: Passing Array type to WSDL
Posted: 03-09-2005, 08:39 PM
Why are you requiring them to pass these items in in an array?
Reply With Quote
Raaga
Guest
Posts: n/a
 
Re: Passing Array type to WSDL
Posted: 03-09-2005, 08:45 PM
Hi Kevin, I am giving this WSDL to other people send data to my server
through this url. By seeing the WSDL the can understand the fileds required
instead of me sending the information. Thanks -Raaga

Reply With Quote
Kevin Schmidt
Guest
Posts: n/a
 
Re: Passing Array type to WSDL
Posted: 03-09-2005, 09:38 PM
So again I ask, why are you requiring them to pass you an array? Why not XML or another format?
Reply With Quote
Raaga
Guest
Posts: n/a
 
Re: Passing Array type to WSDL
Posted: 03-09-2005, 10:38 PM
Hi Kevin,
My client needs the data to be sent as in Array format.

Thanks
-Raaga
Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
#39121 [NEW]: Incorrect return array handling in non-wsdl soap client. sos at sokhapkin dot dyndns dot org PHP Bugs 5 11-06-2006 04:38 PM
Passing value to Array pooknikk Macromedia Flash Data Integration 1 03-04-2005 02:11 PM
How to exclude a type definition from WSDL Frank Liu ASP.NET Web Services 0 10-22-2003 01:11 AM
Relation between XmlNode and WSDL minoccurs or type Patrick ASP.NET Web Services 0 10-15-2003 01:26 PM
Passing an entire array in PHP Phillip Wu PHP Development 2 07-15-2003 01:10 PM