Send webservice parameters by using query string from browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • A.M

    #1

    Send webservice parameters by using query string from browser

    Hi,



    Is there any way to call a WSS web service method by using browser and see
    the XML result in browser as well?



    I have been told that there is query string syntax for calling webservices.
    Is that true?



    Thank you,

    Alan




  • jabailo@texeme.com

    #2
    Re: Send webservice parameters by using query string from browser


    You can use the GET (query string) or POST (browser form) http format
    locally from the server.

    GET and POST are turned off by default for remote use.

    You can enable them in your web.config or globally in the machine.config

    A.M wrote:[color=blue]
    > Hi,
    >
    >
    >
    > Is there any way to call a WSS web service method by using browser and see
    > the XML result in browser as well?
    >
    >
    >
    > I have been told that there is query string syntax for calling webservices.
    > Is that true?
    >
    >
    >
    > Thank you,
    >
    > Alan
    >
    >
    >
    >[/color]

    Comment

    • jabailo@texeme.com

      #3
      Re: Send webservice parameters by using query string from browser


      You can use the GET (query string) or POST (browser form) http format
      locally from the server.

      GET and POST are turned off by default for remote use.

      You can enable them in your web.config or globally in the machine.config

      A.M wrote:[color=blue]
      > Hi,
      >
      >
      >
      > Is there any way to call a WSS web service method by using browser and see
      > the XML result in browser as well?
      >
      >
      >
      > I have been told that there is query string syntax for calling webservices.
      > Is that true?
      >
      >
      >
      > Thank you,
      >
      > Alan
      >
      >
      >
      >[/color]

      Comment

      • A.M

        #4
        Re: Send webservice parameters by using query string from browser


        Thank you for help.

        What is the HTTP GET syntax for sending web method parameters?

        Thnaks again,
        Alan


        <jabailo@texeme .com> wrote in message
        news:pJqdnUYQ6v HWoFHfRVn-1Q@speakeasy.ne t...[color=blue]
        >
        > You can use the GET (query string) or POST (browser form) http format
        > locally from the server.
        >
        > GET and POST are turned off by default for remote use.
        >
        > You can enable them in your web.config or globally in the machine.config
        >
        > A.M wrote:[color=green]
        >> Hi,
        >>
        >>
        >>
        >> Is there any way to call a WSS web service method by using browser and
        >> see the XML result in browser as well?
        >>
        >>
        >>
        >> I have been told that there is query string syntax for calling
        >> webservices. Is that true?
        >>
        >>
        >>
        >> Thank you,
        >>
        >> Alan
        >>
        >>
        >>[/color][/color]

        Comment

        • A.M

          #5
          Re: Send webservice parameters by using query string from browser


          Thank you for help.

          What is the HTTP GET syntax for sending web method parameters?

          Thnaks again,
          Alan


          <jabailo@texeme .com> wrote in message
          news:pJqdnUYQ6v HWoFHfRVn-1Q@speakeasy.ne t...[color=blue]
          >
          > You can use the GET (query string) or POST (browser form) http format
          > locally from the server.
          >
          > GET and POST are turned off by default for remote use.
          >
          > You can enable them in your web.config or globally in the machine.config
          >
          > A.M wrote:[color=green]
          >> Hi,
          >>
          >>
          >>
          >> Is there any way to call a WSS web service method by using browser and
          >> see the XML result in browser as well?
          >>
          >>
          >>
          >> I have been told that there is query string syntax for calling
          >> webservices. Is that true?
          >>
          >>
          >>
          >> Thank you,
          >>
          >> Alan
          >>
          >>
          >>[/color][/color]

          Comment

          • [MSFT]

            #6
            Re: Send webservice parameters by using query string from browser

            You may type the url for ASMX file in IE to invoke the web service, for
            example:




            "HelloWorld " is the name of public web method.

            Luke

            Comment

            • [MSFT]

              #7
              Re: Send webservice parameters by using query string from browser

              You may type the url for ASMX file in IE to invoke the web service, for
              example:




              "HelloWorld " is the name of public web method.

              Luke

              Comment

              • A.M

                #8
                Re: Send webservice parameters by using query string from browser


                How about the web method's paremeters?

                "[MSFT]" <lukezhan@onlin e.microsoft.com > wrote in message
                news:yrmsY7bhFH A.1336@TK2MSFTN GXA01.phx.gbl.. .[color=blue]
                > You may type the url for ASMX file in IE to invoke the web service, for
                > example:
                >
                > http://MyServer/WebService5/Service1.asmx?op=HelloWorld
                >
                >
                > "HelloWorld " is the name of public web method.
                >
                > Luke[/color]


                Comment

                • A.M

                  #9
                  Re: Send webservice parameters by using query string from browser


                  How about the web method's paremeters?

                  "[MSFT]" <lukezhan@onlin e.microsoft.com > wrote in message
                  news:yrmsY7bhFH A.1336@TK2MSFTN GXA01.phx.gbl.. .[color=blue]
                  > You may type the url for ASMX file in IE to invoke the web service, for
                  > example:
                  >
                  > http://MyServer/WebService5/Service1.asmx?op=HelloWorld
                  >
                  >
                  > "HelloWorld " is the name of public web method.
                  >
                  > Luke[/color]


                  Comment

                  • [MSFT]

                    #10
                    Re: Send webservice parameters by using query string from browser

                    The page will have some textbox for you input paremeters. But this only
                    allow you test web service locally.

                    Luke

                    Comment

                    • [MSFT]

                      #11
                      Re: Send webservice parameters by using query string from browser

                      The page will have some textbox for you input paremeters. But this only
                      allow you test web service locally.

                      Luke

                      Comment

                      • A.M

                        #12
                        Re: Send webservice parameters by using query string from browser

                        I was trying to create a URL to the webservice (with parameters) and use
                        that URL to receive an XML stream contains the webmethod's result.

                        I need to do that because I have some clients that cannot have SOAP client
                        capabilities.



                        From your reply I understand it is impossible. The only way to call a
                        webmethod is a soap call. Is that a correct assumption?



                        Thank you,

                        Alan



                        "[MSFT]" <lukezhan@onlin e.microsoft.com > wrote in message
                        news:FlpgWgohFH A.1336@TK2MSFTN GXA01.phx.gbl.. .[color=blue]
                        > The page will have some textbox for you input paremeters. But this only
                        > allow you test web service locally.
                        >
                        > Luke[/color]


                        Comment

                        • A.M

                          #13
                          Re: Send webservice parameters by using query string from browser

                          I was trying to create a URL to the webservice (with parameters) and use
                          that URL to receive an XML stream contains the webmethod's result.

                          I need to do that because I have some clients that cannot have SOAP client
                          capabilities.



                          From your reply I understand it is impossible. The only way to call a
                          webmethod is a soap call. Is that a correct assumption?



                          Thank you,

                          Alan



                          "[MSFT]" <lukezhan@onlin e.microsoft.com > wrote in message
                          news:FlpgWgohFH A.1336@TK2MSFTN GXA01.phx.gbl.. .[color=blue]
                          > The page will have some textbox for you input paremeters. But this only
                          > allow you test web service locally.
                          >
                          > Luke[/color]


                          Comment

                          • [MSFT]

                            #14
                            Re: Send webservice parameters by using query string from browser

                            Hello Alan,

                            Web Service will receive and response data in Text/XML format, which is not
                            for display in IE. We had better call a web method with SOAP client so that
                            we can set parametor and get correct result.

                            Normally, opening a web method in IE is only a way to test if the web
                            service is working, not a regular way to call a web method.

                            Luke

                            Comment

                            • [MSFT]

                              #15
                              Re: Send webservice parameters by using query string from browser

                              Hello Alan,

                              Web Service will receive and response data in Text/XML format, which is not
                              for display in IE. We had better call a web method with SOAP client so that
                              we can set parametor and get correct result.

                              Normally, opening a web method in IE is only a way to test if the web
                              service is working, not a regular way to call a web method.

                              Luke

                              Comment

                              Working...