facebook

Calling Web Service from local host

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #327042 Reply

    S.Q.
    Member

    In the <…..>_custom.js file I have added

    function InitializeService(){
    service.useService(http://localhost:1554/MyWebService.asmx,
    “HelloWorldService”);
    service.HelloWorldService.callService(“HelloWorld”);
    }

    function Calling_service()
    {
    InitializeService();
    ShowResult();
    alert(‘wow’);
    }

    From the button press I run the Calling_service() to see if alert is popped up. Nothing happens. It seems that during testing the web service is not being read from localhost. Is there a setting that I am missing or something else

    #327064

    Hi,

    I’m assuming you’re using Test Center. Please turn off Local Web Service and try it again. (See Window menu>Settings>Local Web Server to disable)

    #327088

    S.Q.
    Member

    Can you pls help with how to do scripting in the .._custom.js file to call a web service created from Visual Studio. Also pls mention the settings if any. Have completely hit a brick wall with calling of web service and handling the return values.

    #327121

    ClintNash
    Member

    S.Q.,

    Have you verified that the issue you have is not a cross domain issue? Can you, for example, publish your asmx file to your hosting solution and then create another website project (in visual studio) that runs on local host and retrieve data to it? In other words if you take MobiOne out of the equation does everything else work (from local host to the web).

    Clint…

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Calling Web Service from local host

You must be logged in to post in the forum log in