# Quick Web Service question

**URL:** <https://boards.straightdope.com/t/quick-web-service-question/680043>\
**Category:** Factual Questions\
**Created:** [January 29, 2014, 4:59pm UTC](https://boards.straightdope.com/t/quick-web-service-question/680043 "2014-01-29T16:59:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [January 29, 2014, 4:59pm UTC](https://boards.straightdope.com/t/quick-web-service-question/680043/1 "2014-01-29T16:59:54Z")

</div>

I am VERY new to Web Services.

With VS 10, I created a WCF Service that has a GetData function (this is default code that comes in the .svc file, not something I wrote). The wsdl looks like this - \<wsdl: operation name = “GetData”\>

In the .svc file, the GetData function just returns the info to you. If you enter 99, it returns “You entered 99” (I’ve tested this with VS debug).  
I’m trying to figure out the url to hit this function and return the data. I thought it would be something like this -

[http://localhost:62405/Service1.svc?GetData(99)](http://localhost:62405/Service1.svc?GetData(99))

But no worky.

---

<div class="post-metadata">

**Author:** ![sweepkick](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sweepkick](https://boards.straightdope.com/u/sweepkick)\
**Post date:** [January 30, 2014, 4:23am UTC](https://boards.straightdope.com/t/quick-web-service-question/680043/2 "2014-01-30T04:23:05Z")

</div>

Your question might be pretty specific for this message board, I would recommend poking around on Stack Overflow. Here’s something on SO along your lines:

> <https://stackoverflow.com/questions/11189451/how-can-i-call-a-web-service-and-pass-parameters-using-the-url>

I haven’t written a web service, but I’ve written programs that integrate with them. Take the recommendation to download SoapUI to heart - I have found the tool indispensable for this type of work.

HTH
