conume WEBLOGIC webservice - ARRAYOFSTRING problem ?!

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

  1. #1

    Default conume WEBLOGIC webservice - ARRAYOFSTRING problem ?!

    I have created a webservice which is running fine on BEA Weblogic, the WDSL is
    generated automatically.
    When I try to invoke the ws method "getFile" from coldfusion it states ...
    ILLEGAL ARGUMENT EXCEPTION ...
    I suppose this is because there is a problem with the ARRAYOFSTRING definition
    in the WSDL or in the interpretation from COLDFUSION of this complex-type.
    Is this so and what to do about it?

    WSDL extract ::

    <s:element name="getFile">
    <s:complexType>
    <s:sequence>
    <s:element name="id" type="ope:ArrayOfString" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>

    ...

    <s:complexType name="ArrayOfString">
    <s:sequence>
    <s:element name="String" type="s:string" nillable="true" minOccurs="0"
    maxOccurs="unbounded"/>
    </s:sequence>
    </s:complexType>

    COLDFUSION extract ::

    <cfset myarray=ArrayNew(1)>
    <cfset myarray[1]="one">
    <cfset myarray[2]="two">

    <CFINVOKE WEBSERVICE="http://serverwebservice.jws?WSDL"
    METHOD="getFile" returnVariable="result">
    <CFINVOKEARGUMENT name="id" value="myarray"/>
    <CFINVOKE>

    tsja Guest

  2. Similar Questions and Discussions

    1. FMS + WebLogic
      In my application, there is a FMS + webLogic, webLogic listens some external services. As the data arrives webLogic, I hope webLogic can push the...
    2. ColdFusion MX7 and BEA WebLogic
      We are trying to set up ColdFusion MX 7 Enterprise on a Windows 2003 server under BEA WebLogic 8.1 SP3. We are trying to use WebLogic as the web...
    3. Problem deploying ColdFusion on Weblogic
      Hi, I have bea Weblogic 8.1 installed on Window Server 2003. I followed this...
    4. Installing with weblogic
      Hi, I just got the flex 1.5, and installed it with weblogic 7, when I go to the samples url I get the index page it shows up file, but when when...
    5. weblogic !!!
      Pranav Thaker wrote: http://edocs.bea.com ?? In general Weblogic is Weblogic across OS vendor types.
  3. #2

    Default Re: conume WEBLOGIC webservice - ARRAYOFSTRING problem?!

    Solved myself.

    CFM code has to be ...

    :)

    <cfset myArray = ArrayNew(1)>
    <cfset myArray[1] = "01">
    <cfset myArray[2] = "02">

    <cfset aArrayOfString=StructNew()>
    <cfset aArrayOfString.string=#myArray#>

    tsja Guest

  4. #3

    Default Re: conume WEBLOGIC webservice - ARRAYOFSTRING problem ?!

    great, i got the same problem but I solved with this. thx!
    juanaries14@hotmail.com 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