I'm invoking a webservice method which returns a List of Lists and CF is
generating an error message about 'marshalling data..."?
All my other methods that return a String value work perfect. How can I
get this to work properly in CF? It works ok in Java.
========= CF ERROR MSG ===========
Cannot perform web service invocation itemDetail.
The fault returned when invoking the web service operation is:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: Marshalling Error: class java.util.ArrayList nor any of
its super class is known to this context.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Marshalling Error: class
java.util.ArrayList nor any of its super class is known to this context.
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:221)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:128)
at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1087)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
===================================
========= WEB SERVICE METHOD that returns a List containing multiple
Lists. ===============
public List<Object> itemDetail(String itemName) {
List<String> statusMsgs = new ArrayList<String>();
List<Error> errorList = new ArrayList<Error>();
List<Subscriber> itemList = new ArrayList<Subscriber>();
List<SubscriberAttribute> itemTypeList = new
ArrayList<SubscriberAttribute>();
List<IpAssignment> itemStockList = new
ArrayList<IpAssignment>();
List<Object> returnList = new ArrayList<Object>();
(********* POPULATE EACH LIST HERE - blah blah*********)
returnList.add(errorList);
returnList.add(itemList);
returnList.add(itemTypeList);
returnList.add(itemStockList);
returnList.add(statusMsgs);
return returnList;
}
===================================
Thanks,
Dave Bosky | Information Services | HTC | direct: 843-369-8613 | fax:
843-369-7178 | [EMAIL PROTECTED]
**********************************************************************
HTC Disclaimer: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified that
any dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify us
immediately by replying to the message and deleting it from your computer.
Thank you.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314285
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4