Interact with a web service

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)

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

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?

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

Hi Harry,

You can use Paul Bakker “Dynamic WebService Invoker Plugin (SOAP)” plugin, downloadable from:
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…

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.

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