XML Web Services

Discussion in 'MCAD' started by Guest, Nov 24, 2004.

  1. Guest

    Guest Guest

    To all,

    I have a question on web services. Suppose there's a web
    services named MyWebServices (in localhost/MyWebApp/) and
    it contains a method called WebMethod01. This web method
    will take in a parameter called input01.

    How do you call the web method in a http-post way?

    e.g.
    http://localhost/MyWebApp/MyWebServices.asmx/WebMethod01?
    input01=someInput

    I don't know what's the correct way to use it in HTTP.....

    Thanks,
    JL
     
    Guest, Nov 24, 2004
    #1
    1. Advertising

  2. Guest

    UAError Guest

    <> wrote:

    >To all,
    >
    >I have a question on web services. Suppose there's a web
    >services named MyWebServices (in localhost/MyWebApp/) and
    >it contains a method called WebMethod01. This web method
    >will take in a parameter called input01.
    >
    >How do you call the web method in a http-post way?
    >
    >e.g.
    >http://localhost/MyWebApp/MyWebServices.asmx/WebMethod01?
    >input01=someInput
    >
    >I don't know what's the correct way to use it in HTTP.....
    >
    >Thanks,
    >JL
    >


    http-post buries information in the HTTP Header not in the
    URL. If you are manipulating only the URL, you are actually
    using http-get.

    For your example to work you need to change the following in
    the machine.config files

    <webServices>
    <protocols>
    <!-- <add name="HttpGet"/> -->

    <webServices>
    <protocols>
    <add name="HttpGet"/>

    its disabled for security reasons.

    http://msdn.microsoft.com/library/d...nConfigurationOptionsForASPNETWebServices.asp
     
    UAError, Nov 24, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Szymi
    Replies:
    0
    Views:
    613
    Szymi
    Nov 3, 2003
  2. Greg
    Replies:
    1
    Views:
    657
    The Poster Formerly Known as Kline Sphere
    Jul 17, 2004
  3. Greg
    Replies:
    31
    Views:
    1,348
  4. SAD
    Replies:
    1
    Views:
    604
    Winged
    Sep 28, 2005
  5. BOGABOGA
    Replies:
    3
    Views:
    627
    BOGABOGA
    Apr 12, 2005
Loading...

Share This Page