add this :

NetConnection.prototype.AppendToGatewayUrl = function(){
      //dummy function would be enough
}

see if this works.

Jeremy.

On 6/13/06, murtuza_ab <[EMAIL PROTECTED]> wrote:

Hi,

I have problem in remoting using NetConnection object and java as a
backend with macromedia flash remoting gateway. I am using Flex2
beta 3. I am not able to connect to the remote server. The code I am
writing is as follows;

import flash.net.NetConnection;
import flash.net.ObjectEncoding;

var gateway_conn:NetConnection = new NetConnection();
gateway_conn.objectEncoding = flash.net.ObjectEncoding.AMF0;
gateway_conn.connect("http://localhost:8080/demo/gateway");

var responder:Responder = new Responder(onQueryResult,
onQueryStatus);

gateway_conn.call("com.test.dao.SampleDAO.getUserData",
responder,strUserID)

gateway_conn.connect method always fails!!!

Please let me know what can be a problem??

Thanks.

Ali.


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to