Link to home
Start Free TrialLog in
Avatar of scm0sml
scm0sml

asked on

manually passing function name and params to a webservice in browser

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:
http://localhost:2458/SimpleService/Service.asmx

how can i pass the method name to call and pass the name param just using the browser?
ASKER CERTIFIED SOLUTION
Avatar of ChetOS82
ChetOS82
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scm0sml
scm0sml

ASKER

"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:
https://www.experts-exchange.com/questions/23850280/calling-a-vb-net-webservice-from-java.html

?
SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.