# Interact with a web service

**URL:** https://forum.servoy.com/t/interact-with-a-web-service/8976
**Category:** Classic Servoy
**Created:** [April 4, 2008, 3:46pm UTC](https://forum.servoy.com/t/interact-with-a-web-service/8976 "2008-04-04T15:46:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)
#### Post date: [April 4, 2008, 3:46pm UTC](https://forum.servoy.com/t/interact-with-a-web-service/8976/1 "2008-04-04T15:46:40Z")

</div>

I have a simple application which is used to collect names and addresses plus other ancillary details

Once collected the data is exported as .csv file and given to 3rd party who then use it for lead generation

The 3rd party has now requested that the data be sent via a web service

Anyone point me to any appropriate information to get me started ?

Cheers  
Harry

Servoy Developer  
Version 3.5.5-build 518  
Java version 1.5.0\_13-121 (Mac OS X)

---

<div class="post-metadata">

### Author: ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)
#### Post date: [April 4, 2008, 4:03pm UTC](https://forum.servoy.com/t/interact-with-a-web-service/8976/2 "2008-04-04T16:03:50Z")

</div>

Hi Harry,

I know how to get Servoy to consume a web service, but not how to provide one. Maybe there is something in the web client…

Think of a web service as a web site for use by robots. A normal web site provides html pages for humans to read through a web browser, while a web service will typically produce XML. A web service can be public or private requiring authentification.

in your case

[https://www.majic.co.uk/new\_address.xml](https://www.majic.co.uk/new_address.xml)

may return the next new address available as XML…

There are various standards for web services, XML-RPC, SOAP and REST.  
REST is a simple one.

What type of service is your client after?

---

<div class="post-metadata">

### Author: ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)
#### Post date: [April 4, 2008, 4:27pm UTC](https://forum.servoy.com/t/interact-with-a-web-service/8976/3 "2008-04-04T16:27:20Z")

</div>

Hi Christian,

Thanks for the reply - Hope you are well.

I may not have explained myself well.

I have to provide the data to their web service.

They will provide me with a URL where the web service resides and I need to supply the collected data as XML

Cheers  
Harry

---

<div class="post-metadata">

### Author: ![MSibai](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@MSibai](https://forum.servoy.com/u/MSibai)
#### Post date: [April 4, 2008, 5:14pm UTC](https://forum.servoy.com/t/interact-with-a-web-service/8976/4 "2008-04-04T17:14:16Z")

</div>

Hi Harry,

You can use Paul Bakker “Dynamic WebService Invoker Plugin (SOAP)” plugin, downloadable from:  
[http://downloads.servoy.com/thirdparty/Kydome\_WebServices.zip](http://downloads.servoy.com/thirdparty/Kydome_WebServices.zip)

But just a comment, it is not recommended to use webservices for data transfer, it could affect the http service performance and you may face multiple RPC and/or timeout issues …

The highly recommended technology is to use Database transactions, and it is very easy to manage using Servoy…

---

<div class="post-metadata">

### Author: ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)
#### Post date: [April 5, 2008, 9:20am UTC](https://forum.servoy.com/t/interact-with-a-web-service/8976/5 "2008-04-05T09:20:16Z")

</div>

Hi Harry,

depending on the service you need to post data to, if there is no need for SOAP or XML-RPC, you may be able to do everything with the Servoy HTTP plugin.

It is surprisingly fast as a way of transferring data.

---

<div class="post-metadata">

### Author: ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)
#### Post date: [April 5, 2008, 4:33pm UTC](https://forum.servoy.com/t/interact-with-a-web-service/8976/6 "2008-04-05T16:33:19Z")

</div>

Hi guys,

Thanks for the advice.  
This is a done deal as the client has already put the web service in place so I am working to their spec as opposed to being able to define my own submission methods

There is a section of their spec as follows:

**Connection to web service will be by URL, details to be supplied to 3rd party suppliers.**  
**The SOAP request will need to be WS-Securtity 1.0 compliant for the UsernameOverTransportSecurity method. Automatic if using WSE framework**

They have provided an XML schema and also an error handling routine which will respond via an XML result on success or failure

I’ll look at the plugin but any advice is always welcome

Cheers  
Harry
