Hi there,

I have a web service on my localhost. Calling this from a PHP page works fine and it returns the expected results. (I pass 2 values and it returns a different string depending on the values passed).

However, in Flex 3, I have generated the webservice proxy classes using the "Data" | "Manage Web Services" dialog.

I am consuming these services using the following code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:Button click="clickHandler(event)"/>
			import generated.webservices.*;
			import mx.controls.Alert;
			import mx.rpc.events.FaultEvent;

			public var _ws:SalesService = new SalesService();

			private function clickHandler(_e:MouseEvent):void

			public function resultHandler(_e:OnsaleResultEvent):void
				if(_e.result == null)
					Alert.show("result is: null");
					Alert.show("result is: "+_e.result);

			public function faultHandler(_e:FaultEvent):void
The "resultHandler" method is called and the "faultHandler" method is not called, which suggests a result is returned, but _e.result is null in the "resultHandler" method.

Can anyone see if I am missing something in the actionscript?


I can post the generated proxy classes, or even the wsdl for the webservice if it helps.