This is from another developer in my office, posted without response on
the CF forum:
- - - 8<- - - (snip)
I'm having a problem with coldfusion handling the return variable of a
webservice correctly.
I have tested the webservice with Java and Perl and it works flawlessly.
Coldfusion keeps throwing this error though.
------------------------------------------------------------------------
-----------------------------------------------
Could not perform web service invocation "getCounties" because AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode: faultString: org.xml.sax.SAXException: No deserializer for
{urn:NavService}County faultActor: faultNode: faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: No
deserializer for {urn:NavService}County at
org.apache.axis.encoding.DeserializerImpl.onStartElement(DeserializerImp
l.java:485) at
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.
java:428) at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:976) at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
198) at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:722) at
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.
java:404) at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:976) at org.apache.axis.message.SAX2E...
------------------------------------------------------------------------
---------------------
The webservice returns an array of complex types.The complex type is
nothing more than a County with an id and a name. It's an axis
webservice written in java.
It looks like to me that coldfusion doesn't know how to deserialize the
complex type. Unfortunately I don't know of a way to tell coldfusion how
to handle the data. It's a simple bean, and from what I understand
coldfusion should not have a problem converting it to a struct.
If anyone has any ideas please post them. Thanks in advance.
- - ->8 - - - (snip)
Obviously, if it's being used by Java and Perl, there shouldn't be any
problems with it. The definition for the complexType County is plainly
there in the WSDL file - has anybody seen this error before?
Thanks.
ecd.
--
Eric C. Davis
Programmer/Analyst II
Georgia Department of Transportation
Office of I.T. Applications
Web Applications Group
404.463.2860.199
[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]