UPDATE:

DOH!  I changed the webserice and forgot to refresh it in CF Admin....I no 
longer get that error....but the dump of the query returned by the 
webservice sure looks like  a CF query object and NOT XML??

arrgghhhhh....what am I not seeing here??

so...output="no" returntype="query"

called as webservice....MM says all webservices create XML...I "seem" to be 
getting a query back and NOT XML

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
----- Original Message ----- 
From: "Bryan Stevenson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Monday, August 22, 2005 10:08 AM
Subject: Re: webservices and XML


>> Check your docs under the cffunction tab to see what the output attribute
>> actually does.  I think you may have it confused with what <cfreturn>
>> does.
>>
>> Here's a quote from <cffunction> docs page for output attribute:
>>
>> Specifies under which conditions the function can generate HTML output.
>>
>> yes: The entire function body is processed as if it were within a 
>> cfoutput
>> tag. Variables names surrounded by number signs (#) are automatically
>> replaced with their values.
>> no: The function is processed as if it were within a cfsilent tag
>> If you do not specify this attribute, the function body is processed as
>> standard CFML. Any variables must be in cfoutput tags.
>>
>> Dave
>
> Thanks Dave...but no I'm not confused (output is set to false because
> webservices don't return HTML) ;-)
>
> I want to know:
> 1) If CF does convert the data returned via CFRETURN by a web service to 
> XML
> 2) If it does convert the data to XML...what should the returntype be for
> that method
>
> Currently when I have output="no" and returntype="query"I get this error
> (which I think is an XML related error):
>
> Here is the fault returned when invoking the web service operation:<br>
> <pre>AxisFault faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode: faultString: org.xml.sax.SAXException: Bad types (class
> coldfusion.xml.rpc.QueryBean -&gt; class java.lang.String) faultActor:
> faultNode: faultDetail:
> {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bad 
> types
> (class coldfusion.xml.rpc.QueryBean -&gt; class java.lang.String) at
> org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:279) at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
> at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
> at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238) at
> org.apache.axis.message.RPCElement.getParams(RPCElement.java:386) at
> org.apache.axis.client.Call.invoke(Call.java:2409) at
> org.apache.axis.client.Call.invoke(Call.java:2308) at org.apache...
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> phone: 250.480.0642
> fax: 250.480.1264
> cell: 250.920.8830
> e-mail: [EMAIL PROTECTED]
> web: www.electricedgesystems.com
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:215908
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