TC, I pulled your code into Flex Builder and did not receive your error on launch. However, I noticed a couple things you may want to work through:
1. First, the URL that you have specified as the wsdl attribute for mx:WebService looks very suspicious. When you specify a wsdl that you have network access to, you should be able to open it in a browser and view the information on the webservice you're trying to access. For instance, here is the wsdl for an Adobe webservice: http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc?wsdl 2. In addition, you need to be using the .send() method for the operation. So where you have the click="" defined for the button, it should be in the format of mmWebService.getVmdbHrrsJoin.send() http://livedocs.macromedia.com/flex/2/docs/00000135.html 3. Make sure that you have a crossdomain.xml file in your webroot if the swf is not hosted at the quest3 domain...otherwise you'll never get to the webservice. http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww\ help.htm?context=LiveDocs_Parts&file=00001153.html 4. Also, I'm no wsdl expert, but from the looks of it, the webservice operation you're trying to access does not take any input parameters. Anyway, hope that helps. -Jun --- In [email protected], "tddclare" <[EMAIL PROTECTED]> wrote: > > Hi, > > I haven't worked with webservices much, but am needing to test out a > service that was produced by a software package my company is > evaluating. I'm building the flex front end to show the results. > > When I run what I have, I get errors when the application launches: > =================================== > TypeError: Error #1034: Type Coercion failed: cannot convert "" to > flash.xml.XMLNode. > at mx.rpc.xml::SchemaContext/::httpResultHandler() > at > flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\ tFunction() > at flash.events::EventDispatcher/dispatchEvent() > at > mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp\ atchRpcEvent() > at > mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu\ ltHandler() > at mx.rpc::Responder/result() > at mx.rpc::AsyncRequest/acknowledge() > at ::DirectHTTPMessageResponder/completeHandler() > at > flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\ tFunction() > at flash.events::EventDispatcher/dispatchEvent() > at flash.net::URLLoader/flash.net:URLLoader::onComplete() > =================================== > > > My application is relatively simple: > =================================== > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:Script> > <![CDATA[ > import mx.rpc.events.FaultEvent; > import mx.rpc.events.ResultEvent; > > public function handleResult(e:ResultEvent):void { > trace( "Result: " + e.result ); > } > > public function handleFault(e:FaultEvent):void { > trace( "Error: " + e.fault.faultString ); > } > ]]> > </mx:Script> > <mx:WebService id="mmWebService" > > wsdl="http://quest3:8000/NasaVDBjoin/servlet/ArtifactDocumentService/Met\ aMatrixDataServices.wsdl" > result="handleResult(event)" > fault="handleFault(event)"> > </mx:WebService> > <mx:Button id="getDataButton" > click="mmWebService.getVmdbHrrsJoin(63458);" /> > </mx:Application> > =================================== > > > and I suspect I'm not doing something right with setting up the > webservice, as the error occurs after the app starts, before I push > the button. > > Here's the WSDL of the web service (I suspect my answer is here, but > again, I'm dumb): > =================================== > <definitions name="MetaMatrixDataServices" > targetNamespace="http://com.metamatrix/NasaVDBjoin"> > − > <types> > − > <xsd:schema targetNamespace="http://com.metamatrix/NasaVDBjoin"> > <xsd:import > namespace="http://www.metamatrix.com/VmdbHrrsIntegration_Input" > schemaLocation="http://quest3:8000/NasaVDBjoin/servlet/ArtifactDocumentS\ ervice/NasaDemo/DataIntegrationPOC/HrrsVmdbIntegration/VmdbHrrsIntegrati\ on_Input.xsd"/> > <xsd:import > namespace="http://www.metamatrix.com/VmdbHrrsIntegration_Output" > schemaLocation="http://quest3:8000/NasaVDBjoin/servlet/ArtifactDocumentS\ ervice/NasaDemo/DataIntegrationPOC/HrrsVmdbIntegration/VmdbHrrsIntegrati\ on_Output.xsd"/> > </xsd:schema> > </types> > − > <message > name="VmdbHrrsIntegration_VmdbHrrsJoin_getVmdbHrrsJoin_VmdbHrrsJoin_Inpu\ tMsg"> > − > <documentation> > Input message for operation > VmdbHrrsIntegration_VmdbHrrsJoin/getVmdbHrrsJoin. > </documentation> > <part > name="VmdbHrrsIntegration_VmdbHrrsJoin_getVmdbHrrsJoin_VmdbHrrsJoin_Inpu\ tMsg" > element="schema1:VmdbHrrsJoin_Input"/> > </message> > − > <message > name="VmdbHrrsIntegration_VmdbHrrsJoin_getVmdbHrrsJoin_VmdbHrrsJoin_Outp\ utMsg"> > − > <documentation> > Output message for operation > VmdbHrrsIntegration_VmdbHrrsJoin/getVmdbHrrsJoin. > </documentation> > <part > name="VmdbHrrsIntegration_VmdbHrrsJoin_getVmdbHrrsJoin_VmdbHrrsJoin_Outp\ utMsg" > element="schema2:VmdbHrrsJoin_Output"/> > </message> > − > <portType name="VmdbHrrsIntegration_VmdbHrrsJoin"> > − > <operation name="getVmdbHrrsJoin"> > <input > message="tns:VmdbHrrsIntegration_VmdbHrrsJoin_getVmdbHrrsJoin_VmdbHrrsJo\ in_InputMsg"/> > <output > message="tns:VmdbHrrsIntegration_VmdbHrrsJoin_getVmdbHrrsJoin_VmdbHrrsJo\ in_OutputMsg"/> > </operation> > </portType> > − > <binding name="VmdbHrrsIntegration_VmdbHrrsJoin" > type="tns:VmdbHrrsIntegration_VmdbHrrsJoin"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > − > <operation name="getVmdbHrrsJoin"> > <soap:operation style="document" > soapAction="VmdbHrrsIntegration_WS.VmdbHrrsIntegration_VmdbHrrsJoin.getV\ mdbHrrsJoin"/> > − > <input> > <soap:body use="literal"/> > </input> > − > <output> > <soap:body use="literal"/> > </output> > </operation> > </binding> > − > <service name="MetaMatrixDataServices"> > − > <port name="VmdbHrrsIntegration_VmdbHrrsJoin" > binding="tns:VmdbHrrsIntegration_VmdbHrrsJoin"> > <soap:address location="http://quest3:8000/NasaVDBjoin/services/service"/> > </port> > </service> > </definitions> > =================================== > > Thanks for any help. I'm not sure where to even start looking for the > answer. > > -- TC >

