manually passing function name and params to a webservice in browser

Posted on 2008-11-17
Last Modified: 2012-08-14
this is a stupid question but im going to ask it anyway as ive not done it before.

I have a webservice that i am trying to call from java.

It is a simple function called HelloWorld that expects the param name and then just returns the hello name string

If my webservice url is:

how can i pass the method name to call and pass the name param just using the browser?
Question by:scm0sml
    LVL 18

    Accepted Solution

    You can't.  You have to generate a SOAP message and send it to the service.  You cannot just type the values into the browser (or the URL).

    Author Comment

    "If you open web browser on the machine hosting the web service and type in the same parameters you are using here, does the response come back as expected?  That would be a good double check. "

    is a suggestions towards the bottom of this thread:

    LVL 59

    Assisted Solution

    by:Kevin Cross
    Open up Internet Explorer and type in the address you have above.  You will get a screen listing the web methods contained in the webservice defined by the ASMX file above.

    Click on the web method you want and it will provide you with a form to fill in the parameters needed to execute the web method.  Fill in the form and click the submit button for the form.  A response XML will come back.

    This same page will show you the example XML for SOAP request and SOAP response documents.
    LVL 18

    Expert Comment

    I think they are referring to the test form which can be run from the local machine.  You can use that to select a service and enter parameters.  That being said, you cannot simply "send" the method name and parameters to the service.  What you are asking for is a GET request, but .NET web services use POST requests.

    If you go to http://localhost:2458/SimpleService/Service.asmx in your browser, you should be presented with a list of web methods.  Clicking the "HelloWorld" service will give you that test form.

    The test form will only work if you access it from the local machine.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now