Could be a problem with a malformed soap response which is not confirming to the schema bound in the wsdl.
Please use a HTTP proxy like Charles to verify the response from the server. Check if a fault element is in the xml response, which a soap webservice enabled server should send in most cases. If the server response seems ok in charles, then try to turn on the strict schema validation on the server side. It should tell if the problem is server side or not. ~Peeyush On Tue, Aug 12, 2008 at 6:21 PM, Mandy <[EMAIL PROTECTED]> wrote: > Here is the full xml response: > > [RPC Fault faultString="Error #1069" faultCode="DecodingError" > faultDetail="null"] > (mx.messaging.messages::AcknowledgeMessage)#0 > body = "<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Body> > <ns2:getProductsResponse > xmlns:ns2="http://service.xxx.xx.xxx.xxx.xxx.xxx/"> > <return ns2:size="344" ns2:name="Products" ns2:link="Products"> > <product ns2:name="WEATHER" ns2:link="WEATHER"> > <product ns2:name="CYCLONE" ns2:link="WEATHER.ANALYSES.CYCLONE"/> > <product ns2:name="HYDROMARINE" > ns2:link="WEATHER.ANALYSES.HYDROMARINE"/> > <product ns2:name="MISCELLANEOUS" > ns2:link="WEATHER.ANALYSES.MISCELLANEOUS"/> > </product> > </return> > </ns2:getProductsResponse> > </soapenv:Body></soapenv:Envelope>" > > ~Amanda > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > "<My xml response here>" doesn't really give us a lot to go on :) > > > > But, 1069 is "field not found" so you're probably decoding into a > class > > that's missing a required field that's trying to be populated. > > > > -Josh > > > > On Tue, Aug 12, 2008 at 5:19 AM, Mandy <[EMAIL PROTECTED]> wrote: > > > > > I am getting a decoding error calling a JAX-WS webservice. Both > the > > > flex app calling the webservice and the webservice are on the same > > > machine, so I don't think I need a crossdomain.xml file. The funny > > > thing is the webservice is returning the xml response to me that I > > > want, but it gets sent to the fault method. I am using the Flex 2 > > > SDK. > > > > > > Here is the error: > > > [RPC Fault faultString="Error #1069" faultCode="DecodingError" > > > faultDetail="null"] > > > (mx.messaging.messages::AcknowledgeMessage)#0 > > > body = "<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > > > <soapenv:Body> > > > <My xml response here> > > > </soapenv:Body></soapenv:Envelope>" > > > Here is my code: > > > <?xml version="1.0" encoding="utf-8"?> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > > layout="absolute"> > > > <mx:Script> > > > <![CDATA[ > > > import mx.controls.Alert; > > > import mx.rpc.events.ResultEvent; > > > import mx.rpc.events.FaultEvent; > > > > > > public function get(event:ResultEvent):void > > > { > > > Alert.show(event.toString()); > > > } > > > > > > public function web(event:FaultEvent):void > > > { > > > Alert.show("EVENT " + > event.toString > > > () + "\nFAULT " + event.fault.toString() > > > + "\nMESSAGE " + > > > event.message.toString() + "\nTYPE " + event.type.toString() > > > + "\nEVENT_PHASE " + > > > event.eventPhase.toString()); > > > } > > > > > > public function callWS():void > > > { > > > ProductsWS.getProducts(username, > > > password); > > > } > > > ]]> > > > </mx:Script> > > > <mx:WebService id="ProductsWS" > > > wsdl="http://host:port/Workspace/Project/WEB-INF/wsdl/Sample.wsdl" > > > useProxy="false" fault="web(event)" > > > showBusyCursor="true" requestTimeout="30"> > > > <mx:operation name="getProducts" result="get > (event)" > > > fault="web(event)"/> > > > </mx:WebService> > > > <mx:Button id="CallWS" label="call WS" click="callWS();" > > > enabled="true" x="292" y="234"/> > > > </mx:Application> > > > > > > Thanks, > > > Amanda > > > > > > > > > ------------------------------------ > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! > Groups > > > Links > > > > > > > > > > > > > > > > > > -- > > "Therefore, send not to know For whom the bell tolls. It tolls for > thee." > > > > :: Josh 'G-Funk' McDonald > > :: 0437 221 380 :: [EMAIL PROTECTED] > > > > >

