# Calling Web Service

**URL:** <https://forum.servoy.com/t/calling-web-service/14866>\
**Category:** Classic Servoy\
**Created:** [October 13, 2011, 3:22pm UTC](https://forum.servoy.com/t/calling-web-service/14866 "2011-10-13T15:22:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkb](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@pkb](https://forum.servoy.com/u/pkb)\
**Post date:** [October 13, 2011, 3:22pm UTC](https://forum.servoy.com/t/calling-web-service/14866/1 "2011-10-13T15:22:37Z")

</div>

Hello Everybody,

I am new to web services. Can any one describe how to call a web service which has been developed using different technology ?  
I have gone through the wiki for RESTFUL web services. I think this is to create web service in Servoy.  
But my requirement is to call a web service and to pass xml to that service. Also this service returns xml as output. So how to receive that response ?  
Do I need any 3rd party plugin to call another web service or this can be possible by Servoy’s default plugins ?

Thanks

---

<div class="post-metadata">

**Author:** ![pkb](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@pkb](https://forum.servoy.com/u/pkb)\
**Post date:** [October 14, 2011, 7:04am UTC](https://forum.servoy.com/t/calling-web-service/14866/2 "2011-10-14T07:04:45Z")

</div>

I have checked it through http plugin and it works fine. ![:D]( "Very Happy")

```auto
var _xml = '<?xml version="1.0" encoding="ISO-8859-1"?><category> <category-name>ABCD</category-name> </category>';
var client = plugins.http.createNewHttpClient();
var postReq = client.createPostRequest('http://web_service_domain/test_webservice.php');
postReq.addParameter('xml_data', _xml);
	
var res = postReq.executeRequest();
result = res.getResponseBody();

```

Thanks
