Professional Web Applications Themes

Calling WebService method from JavaScript - ASP.NET Web Services

Hi, I have written a WebService using Visual Studio.Net's 'ASP.Net Web Service' project (ASMX). I want to call the exposed methods form a HTML client (using JavaScript) as a function. I do not want to prepare the Xml and make a SOAP call. One way is to use the webservice.htc but it will not work on Netscape. Can somebody suggest me some other solution through which I can make method calls ? regards, Tushar...

  1. #1

    Default Calling WebService method from JavaScript

    Hi,
    I have written a WebService using Visual Studio.Net's 'ASP.Net Web Service'
    project (ASMX). I want to call the exposed methods form a HTML client (using
    JavaScript) as a function. I do not want to prepare the Xml and make a SOAP
    call. One way is to use the webservice.htc but it will not work on Netscape.
    Can somebody suggest me some other solution through which I can make method
    calls ?

    regards,
    Tushar


    MSNews Guest

  2. #2

    Default Calling WebService method from JavaScript

    Hi,
    I have written a WebService using Visual Studio.Net's 'ASP.Net Web Service'
    project (ASMX). I want to call the exposed methods form a HTML client (using
    JavaScript) as a function. I do not want to prepare the Xml and make a SOAP
    call. One way is to use the webservice.htc but it will not work on Netscape.
    Can somebody suggest me some other solution through which I can make method
    calls ?

    regards,
    Tushar


    Tushar Guest

  3. #3

    Default Re: Calling WebService method from JavaScript

    MSNews wrote:
    > Hi,
    > I have written a WebService using Visual Studio.Net's 'ASP.Net Web Service'
    > project (ASMX). I want to call the exposed methods form a HTML client (using
    > JavaScript) as a function. I do not want to prepare the Xml and make a SOAP
    > call. One way is to use the webservice.htc but it will not work on Netscape.
    > Can somebody suggest me some other solution through which I can make method
    > calls ?
    >
    > regards,
    > Tushar
    >
    >
    Look at this posting I added to DotNetPimps:

    [url]http://www.dotnetpimps.net/2004/12/10/getting-your-web-service-to-use-get-and-post/[/url]

    You can enable the web service to allow GET or POST methods instead of
    SOAP. That is probably what you want.

    -Keith
    Keith Elder Guest

  4. #4

    Default Re: Calling WebService method from JavaScript


    "MSNews" <TusharGTalisma.com> wrote in message
    news:%23%23479yARFHA.248TK2MSFTNGP15.phx.gbl...
    > Hi,
    > I have written a WebService using Visual Studio.Net's 'ASP.Net Web
    > Service'
    > project (ASMX). I want to call the exposed methods form a HTML client
    > (using
    > JavaScript) as a function. I do not want to prepare the Xml and make a
    > SOAP
    > call. One way is to use the webservice.htc but it will not work on
    > Netscape.
    > Can somebody suggest me some other solution through which I can make
    > method
    > calls ?
    >
    > regards,
    > Tushar
    >
    You could also use Xml-Rpc instead of Web Services. Xml-Rpc is a very simple
    protocol, and I saw some implementations for JavaScript. There is also very
    easy to use implementation for .Net.

    Best regards
    Rafal Gwizdala


    Rafal Gwizdala Guest

Similar Threads

  1. Replies: 0
    Last Post: December 8th, 08:09 AM
  2. problem Calling webservice from client side javascript
    By Merav Orion in forum ASP.NET Web Services
    Replies: 0
    Last Post: September 27th, 05:20 PM
  3. Webservice calling a webservice.....Error
    By Peter Nordström in forum ASP.NET Web Services
    Replies: 0
    Last Post: October 21st, 12:02 PM
  4. Calling a WebService Method Asynchronously
    By shailesh in forum ASP.NET Web Services
    Replies: 0
    Last Post: September 1st, 11:51 AM
  5. Calling webservice from JavaScript
    By Steven Licciardi in forum ASP.NET Web Services
    Replies: 4
    Last Post: July 21st, 05:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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