RE: [flexcoders] Re: Returning XML from a Java web service to Flex (2.0)
I guess our decoder doesn't know how to handle the Document class directly, we probably expect it to be a String or something else that in WSDL 1.1 will indicate how it should be parsed. Only thing I can suggest is have it returned as a String instead and then parse it back on the client side. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Wednesday, February 01, 2006 3:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Returning XML from a Java web service to Flex (2.0) Strange, for some reason, my own messages (and replies to them) are not being sent to me via email... I get the others (many others) but mine (and your reply) never made it... strange. I guess I know I need to monitor my messages better. Anyhow, here's the WSDL. (the message part you're interested in is 'ExecuteQueryOutput') Thanks in advance... Thunder __ http://com.appfusion.web-service/wstest.wsdl"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://com.appfusion.web-service/wstest.wsdl"; xmlns:dom="http://xmlns.oracle.com/2001/XMLSchema/DOM"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > WSDL for Service: wstest, generated by Oracle WSDL toolkit (version: 1.1) http://com.appfusion.web-service/wstest.xsd"; xmlns:tns="http://com.appfusion.web-service/wstest.xsd"; xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> http://schemas.xmlsoap.org/soap/http"; style="rpc"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://localhost:/wstest/wstest"/> --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > Can you send the WSDL to us please? > > Matt > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of thunderstumpgesatwork > Sent: Monday, January 30, 2006 6:10 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Returning XML from a Java web service to Flex > (2.0) > > Hi all, > > I have been using .NET web services with my Flex 2.0 client and > successfully returning objects of type System.Xml.XmlDocument > (Microsoft's implementation of the DOM). These xml documents are > successfully consumed by the Flex WebService class and converted to an > ActionScript result Object. > > Recently I tried to create a similar web service in Java (Using > Oracle's Application Server OC4J) to return an object of type > org.w3c.dom.Document. I have published the web service, and > successfully tested it from a Java Client app. In Flex though, I get > an error in the WSDL parser "Type dom:org.w3c.dom.Document not > resolvable". Shouldn't Flex recognize this as XML just like it did > with the .NET web service? > > Has anyone else successfully returned XML data from web services in > Java to Flex? Any chance I could get a simple example of this web > service? I am not partial to OC4J, so if there's an example in Axis, > or some other server that's fine. > > Any guidance or information on this is greatly appreciated. Any > additional information needed for my setup? I'll gladly post some > code. See complete Flash exception below. > > thanks, > Thunder Stumpges > > > > Type dom:org.w3c.dom.Document not resolvable at > mx.rpc.soap::WSDLParser/http://www.macromedia.com/2005/flex/mx/internal: > :parseMessage()[C:\dev\max\sdk\frameworks\mx\rpc\soap\WSDLParser.as:717] > at > mx.rpc.soap$internal::WSDLOperation/parseMessages()[C:\dev\max\sdk\frame > works\mx\rpc\soap\WSDLOperation.as:48] > at > mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/internal:: > invokePendingCall()[C:\dev\max\sdk\frameworks\mx\rpc\soap\Operation.as:5 > 08] > at > mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/interna
[flexcoders] Re: Returning XML from a Java web service to Flex (2.0)
Strange, for some reason, my own messages (and replies to them) are not being sent to me via email... I get the others (many others) but mine (and your reply) never made it... strange. I guess I know I need to monitor my messages better. Anyhow, here's the WSDL. (the message part you're interested in is 'ExecuteQueryOutput') Thanks in advance... Thunder __ http://com.appfusion.web-service/wstest.wsdl"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://com.appfusion.web-service/wstest.wsdl"; xmlns:dom="http://xmlns.oracle.com/2001/XMLSchema/DOM"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > WSDL for Service: wstest, generated by Oracle WSDL toolkit (version: 1.1) http://com.appfusion.web-service/wstest.xsd"; xmlns:tns="http://com.appfusion.web-service/wstest.xsd"; xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> http://schemas.xmlsoap.org/soap/http"; style="rpc"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:com-appfusion-web_service-wstest"/> http://localhost:/wstest/wstest"/> --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > Can you send the WSDL to us please? > > Matt > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of thunderstumpgesatwork > Sent: Monday, January 30, 2006 6:10 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Returning XML from a Java web service to Flex > (2.0) > > Hi all, > > I have been using .NET web services with my Flex 2.0 client and > successfully returning objects of type System.Xml.XmlDocument > (Microsoft's implementation of the DOM). These xml documents are > successfully consumed by the Flex WebService class and converted to an > ActionScript result Object. > > Recently I tried to create a similar web service in Java (Using > Oracle's Application Server OC4J) to return an object of type > org.w3c.dom.Document. I have published the web service, and > successfully tested it from a Java Client app. In Flex though, I get > an error in the WSDL parser "Type dom:org.w3c.dom.Document not > resolvable". Shouldn't Flex recognize this as XML just like it did > with the .NET web service? > > Has anyone else successfully returned XML data from web services in > Java to Flex? Any chance I could get a simple example of this web > service? I am not partial to OC4J, so if there's an example in Axis, > or some other server that's fine. > > Any guidance or information on this is greatly appreciated. Any > additional information needed for my setup? I'll gladly post some > code. See complete Flash exception below. > > thanks, > Thunder Stumpges > > > > Type dom:org.w3c.dom.Document not resolvable at > mx.rpc.soap::WSDLParser/http://www.macromedia.com/2005/flex/mx/internal: > :parseMessage()[C:\dev\max\sdk\frameworks\mx\rpc\soap\WSDLParser.as:717] > at > mx.rpc.soap$internal::WSDLOperation/parseMessages()[C:\dev\max\sdk\frame > works\mx\rpc\soap\WSDLOperation.as:48] > at > mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/internal:: > invokePendingCall()[C:\dev\max\sdk\frameworks\mx\rpc\soap\Operation.as:5 > 08] > at > mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/internal:: > invokeAllPending()[C:\dev\max\sdk\frameworks\mx\rpc\soap\Operation.as:39 > 3] > at > mx.rpc.soap::WebService/WebService$733$private::unEnqueueCalls()[C:\dev\ > max\sdk\frameworks\mx\rpc\soap\WebService.as:770] > at > mx.rpc.soap::WebService/http://www.macromedia.com/2005/flex/mx/internal: > :wsdlHandler()[C:\dev\max\sdk\frameworks\mx\rpc\soap\WebService.as:572] > at > flash.events::EventDispatcher/dispatchEvent() at > mx.rpc.soap::WSDLParser/dispatchEvent()[C:\dev\max\sdk\frameworks\mx\rpc > \soap\WSDLParser.as:748] > at > mx.rpc.soap::WSDLParser/WSDLParser$1050$private::parseCompleted()[C:\dev > \max\sdk\frameworks\mx\rpc\soap\WSDLParser.as:293] > at > mx.rpc.soap::WSDLParser/http://www.macromedia.com/2005/flex/mx/internal: > :httpResultHandler()[C:\dev\max\sdk\frameworks\mx\rpc\soap\WSDLParser.as > :170] > at > flash.events::EventDispatcher/dispatchEvent() at > mx.rpc::AbstractInvoker/http://www.macromedia.com/2005/flex/mx/internal: > :dispatchRpcEvent()[C:\dev\max\sdk\frameworks\mx\rpc\AbstractInv