Unable to connect to endpoint..

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Unable to connect to endpoint..

    I am developing an user interface for mobile devices using Macromedia Flash 8
    pro and a .NET webservice. My objective is to make a search through the search
    engine provided in the webservice (so i have to establish a WSDL connection
    between flash and the webservice and then to pass the input values from the
    flash user interface to the webservice, and then retrieve from this one the
    results and send them back to the flash user interface).
    Now the problem is that i cannot establish any connection between flash and
    the webservice for the research method i need (it says "unable to connect to
    endpoint: [url]http://-serve[/url] address-"). I didnt find on the internet any
    satisfactory help or good code example.
    Have you ever developed something like that, so you can give me some
    suggestions?
    :sad;

    fscommand("FullScreen", true);
    import mx.services.*;
    import mx.data.components.WebServiceConnector;

    var fault = function (stat) {
    if (stat.code == "WebServiceFault"){
    trace(stat.data.faultcode);
    trace(stat.data.faultstring);
    //trace(stat.data.detail);
    }
    };

    var wsConn:WebServiceConnector = new WebServiceConnector();
    wsConn.addEventListener("status", fault);
    wsConn.WSDLURL = "http://193.204.184.42/eTer/eTer.asmx?wsdl";
    wsConn.multipleSimultaneousAllowed = true;
    wsConn.operation = "ricerca_base";
    wsConn.params = [""];
    wsConn.trigger();

    mikadig Guest

  2. Similar Questions and Discussions

    1. Unable to connect to FMS from outside of the US
      I'm having a really strange problem. We set up our FMS a couple of weeks ago, and are able to stream videos. However, the person that is directing...
    2. Help me: Unable to connect to FMS
      Hello Guys I have an audio recorder . It is working fine on localhost but it is unable to connect to the remote FMS . i have tried...
    3. "Unable to connect to endpoint" web service error
      I am receiving a "Unable to connect to endpoint" error when I try to access a web service with setting useProxy="false". The web service is on thh...
    4. Unable to connect to SQL 2K via VS.NET
      Hi all, As the subject says I'm having trouble connecting to SQL Server 2K via Visual Studio.NET 2002 (VB). It tells me that SQL Server does not...
    5. Unable to connect
      Hello, I have problems with connecting to SQL Server from ESQL/C application. Error message is: SQL Server Message 19703: Unable to connect: SQL...
  3. #2

    Default Re: Unable to connect to endpoint..

    Hi,

    Instead of WebConnector class, you could use the WebService Class. Below is a sample code, however, I am unable to pass complex data, but simple data works.

    import mx.services.*;
    import mx.remoting.*;
    import mx.rpc.*;
    import mx.data.*;

    var myWebServiceObject:WebService = new WebService("http://test.com/mobile_servicesSOAP?wsdl");

    myWebServiceObject.onLoad = function()
    {
    trace("Success call for WSDL");

    var MyPendingCallObject:PendingCall = myWebServiceObject.myMethodName();

    MyPendingCallObject.onResult = function(result)
    {
    trace("----" + MyPendingCallObject.response);//output data
    }

    MyPendingCallObject.onFault = function(fault)
    {
    trace("Fault = " + fault.faultcode);
    trace("Fault = " + fault.faultstring);
    }
    }

    myWebServiceObject.onFault = function(fault)
    {
    trace("Oops!!!" + fault);
    }
    supriyaakg is offline Junior Member
    Join Date
    Mar 2011
    Location
    Bhopal
    Posts
    1

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139