Passing Array type to WSDL

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Passing Array type to WSDL

    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

    Raaga Guest

  2. Similar Questions and Discussions

    1. using Web Service with Complex-Type in WSDL
      I have a web service developed in BEA WebLogic that I am trying to call. The WSDL has two complex types in it and is of type document/literal. When...
    2. WSDL Data type restrictions
      Hi, my queston relates to classes generated using XSD.exe from schemas. Basically I have a number of schemas which contain data type definitions,...
    3. Mapping of type string in WSDL
      Hi I've got the following webmethod: public string Hello( string name) { return "Hello " + name; }
    4. How to exclude a type definition from WSDL
      Hi, I have a web service which returns a strongly typed dataset to its client. This typed dataset was defined in a class library which was...
    5. Relation between XmlNode and WSDL minoccurs or type
      I have a WSDL-file that looks like the following (Part of it) - <s:complexType name="Persoonslijst"> - <s:sequence> <s:element minOccurs="0"...
  3. #2

    Default Re: Passing Array type to WSDL

    Well you could always use ArrayToList and convert the array to a string that way.


    Kevin Schmidt Guest

  4. #3

    Default Re: Passing Array type to WSDL

    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 [url]http://MyURL/MyCFC?WSDL[/url] how do they know that they have to pass
    FName and LName in the query which are of string datatype. Thanks -Raaga

    Raaga Guest

  5. #4

    Default Re: Passing Array type to WSDL

    Why are you requiring them to pass these items in in an array?
    Kevin Schmidt Guest

  6. #5

    Default Re: Passing Array type to WSDL

    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

    Raaga Guest

  7. #6

    Default Re: Passing Array type to WSDL

    So again I ask, why are you requiring them to pass you an array? Why not XML or another format?
    Kevin Schmidt Guest

  8. #7

    Default Re: Passing Array type to WSDL

    Hi Kevin,
    My client needs the data to be sent as in Array format.

    Thanks
    -Raaga
    Raaga Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139