Hi,

Thanks to everyone for their help.

Robert, I tried the settings suggested in the Axis Docs, but still
No luck with the 2D Arrays.  You were able to duplicated the problem 
on CFMX 6.1, Did you make the changes to server-config.wsdd and get 
2DArrays to work?  

Thanks to everyone else for suggesting other data structures that work.  I
did some testing and there is no problem with Structs of Structs and other
combinations, but the designer wants as simple and portable a solution as
possible, so it's back to see what I can do to make the 2D Array work.

Has anyone successfully build a webservice in Coldfusion that sends back a
2DArray, if so how did you get it to work?

Thanks again

Mackenzie Cosens


 

-----Original Message-----
From: Robert Munn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 3:42 PM
To: CF-Talk
Subject: Re: Problem in a Simple webservice: 1D array works 2D fails

I was able to replicate this error on CFMX 6.1. According to the Apache Axis
documentation, 2D array support needs to be enabled through the global Axis
config. See this document:

http://ws.apache.org/axis/java/reference.html

Note that 2d array support is disabled by default. 

Here is the relevant info:

Global Axis Configuration

The server is configured (by default) by values in the server-config.wsdd
file, though a dedicated Axis user can write their own configuration
handler, and so store configuration data in an LDAP server, database, remote
web service, etc. Consult the source on details as to how to do that. You
can also add options to the web.xml file and have them picked up
automatically. We don't encourage that as it is nice to keep configuration
stuff in one place.

In the server-config file, there is a global configuration section, which
supports parameter name/value pairs as nested elements. Here are the options
that we currently document, though there may be more (consult the source, as
usual).

<globalConfiguration>
  <parameter name="adminPassword" value="admin"/>
  <parameter name="attachments.Directory" value="c:\temp\attachments"/>
  <parameter name="sendMultiRefs" value="true"/>
  <parameter name="sendXsiTypes" value="true"/>
  <parameter name="attachments.implementation"
             value="org.apache.axis.attachments.AttachmentsImpl"/>
  <parameter name="sendXMLDeclaration" value="true"/>
  <parameter name="enable2DArrayEncoding" value="true"/>
  <parameter name="dotNetSoapEncFix" value="false"/>
</globalConfiguration>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222624
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to