Professional Web Applications Themes

silly question... - ASP.NET Web Services

Can I type something like this in my browser: http://localhost/SQNWebService/SQNGetAccount.asmx?Branch=0&Bank=0&Acno=1&UserID=1 &TerminalID=1&User=wendell&Password=wendell and get back the xmal data from the webservice instead of the test/description page from Microsoft? [Apparently this syntax above is incorrect... what am I doing wrong?] -- Wendell Buckner/SQN Banking Systems...

  1. #1

    Default silly question...

    Can I type something like this in my browser:

    http://localhost/SQNWebService/SQNGetAccount.asmx?Branch=0&Bank=0&Acno=1&UserID=1 &TerminalID=1&User=wendell&Password=wendell


    and get back the xmal data from the webservice instead of the
    test/description page from Microsoft?

    [Apparently this syntax above is incorrect... what am I doing wrong?]



    --
    Wendell Buckner/SQN Banking Systems


    Wendell Guest

  2. #2

    Default Re: silly question...

    You are trying to access a webservice using a GET request. First of all
    you must have a way to define a "default method" because this way the
    webservice does not understand what method to call. As far as I know,
    such a mechanism does not exist.

    In order to properly execute webservice's method, you need to send via
    a POST method a proper SOAP request, declaring the wanted method and
    the parameters you want to pass.

    If you want to call a webservice from the browser you have to post a
    form with the appropriate SOAP request.

    Otherwise you can cirvent this and create an aspx page that handles
    the webservice call and returns the XML via Response.Write. After the
    XML is written you can call Response.End to stop processing.

    Tasos Guest

  3. #3

    Default Re: silly question...

    Thanks for your response... and thanks for the extra information... Our
    customer was wanting to know why they couldn't just type the command
    directly into the IE6 address bar to get back the information from the web
    service... I found out as you pointed out that they would have to specify
    the specific function that they would want to call (this makes sense) and
    that I had not specified a "default" function... I'm glad you pointed out
    that there is no way to specify a default function which will save me some
    time searching for way to do this since it's not possible... I also
    discovered that in the .NET framework 1.1 that GET/POST communications are
    disabled by default, so it's impossible to do what the customer wants
    without enabling them in the web.config and/or other appropriate files... If
    anybody else has had this problem then read the following MS article should
    help...

    http://support.microsoft.com/default.aspx?scid=kb;en-us;819267


    "Tasos Vogiatzoglou" <com> wrote in message
    news:googlegroups.com... 


    Wendell Guest

Similar Threads

  1. Silly question
    By Jim Macklin in forum Macromedia Flash Flashcom
    Replies: 7
    Last Post: February 22nd, 06:36 PM
  2. Perhaps a silly question...
    By Edwin Bossier in forum Macromedia Director Basics
    Replies: 1
    Last Post: November 29th, 10:00 PM
  3. Silly Question of the Day
    By larry123 in forum Macromedia Fireworks
    Replies: 10
    Last Post: October 17th, 09:34 PM
  4. silly question
    By Ron in forum Sun Solaris
    Replies: 8
    Last Post: August 11th, 11:18 AM
  5. Silly question from the UK
    By garryac in forum Photography
    Replies: 15
    Last Post: July 20th, 05:41 PM

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