Welcome! Log In Create A New Profile

Advanced

[WD20] - How to use Web Service developed in WD?

Posted by YogiYang 
[WD20] - How to use Web Service developed in WD?
September 07, 2018 09:12AM
Hello,

We are planning to develop a set of web services that will generate a PDF and an Image (JPG) files and send it to Mobil client.

I have never developed Web Service in WD.

I want to know as to once the Web Service is developed how can I use it in LAN?

Client has around 26 Portable Device users and around 8 PCs.

TIA

--
Yogi Yang
pao
Re: [WD20] - How to use Web Service developed in WD?
September 07, 2018 10:14AM
What type of webservices, REST, SOAP?

Regards

Paulo Oliveira
Re: [WD20] - How to use Web Service developed in WD?
September 07, 2018 01:57PM
Hi

a webservice is accessible via its URL... So your answer is "via its URL"... WHAT the URL is depends on WHERE you are deploying the webservice...

In any case, by using the server IP address in your URl, you shouldn't have any problem.

Best regards

Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on [www.fabriceharari.com]
Re: [WD20] - How to use Web Service developed in WD?
September 07, 2018 05:21PM
Hello,

Thanks for the reply.

Quote

What type of webservices, REST, SOAP?

I don't know. What type of Web Service can we build in WD20?

Quote
fabriceharari
> a webservice is accessible via its URL... So your
> answer is "via its URL"... WHAT the URL is depends
> on WHERE you are deploying the webservice...
>
> In any case, by using the server IP address in
> your URl, you shouldn't have any problem.
How would it be possible to deploy this Web Service?

Can it run stand alone or does it require any third party server like Apache?

--
Yogi Yang
pao
Re: [WD20] - How to use Web Service developed in WD?
September 07, 2018 05:45PM
To install the webservice you need one web server (apache/iis) and the webdev application server.

You have to buy the WAS if you need more than 10 connections at the same time to the webservice, for 10 connections you can use one free version.

For mobile my advice is to use REST and JSON.


[doc.windev.com]

PS: I don't know if the REST webservices are available in WD20, if not and you have WB20 you can do it using AWP pages or use the SOAP ones.

Regards

Paulo Oliveira



Edited 2 time(s). Last edit at 09/07/2018 06:20PM by pao.
Re: [WD20] - How to use Web Service developed in WD?
September 07, 2018 06:23PM
Hi Yogi,

since you use WINDEV v20, you can [out of the box] create ONLY SOAP and NOT REST Services.

Regards
Steven Sitas
Re: [WD20] - How to use Web Service developed in WD?
September 08, 2018 03:02PM
Hi

if you have webdev 20 amso, you can create a rest webservice (it's just one awp page)

Best regards

Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on [www.fabriceharari.com]
Re: [WD20] - How to use Web Service developed in WD?
September 10, 2018 06:35AM
Hello,

From discussion so far I have come to the conclusion that I will need to have WAS with support for unlimited users.

Is it possible to purchase WAS as a separate product?

TIA

--
Yogi Yang
Re: [WD20] - How to use Web Service developed in WD?
September 10, 2018 07:48AM
Yes it is. 299 euro or 347 US dollar
Follow this link to WEBDEPW23U (windows) or WEBDEPL23U (Linux)
[windev.com]

Arie
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 07:54AM
ArieM Wrote:
-------------------------------------------------------
> Yes it is. 299 euro or 347 US dollar
> Follow this link to WEBDEPW23U (windows) or
> WEBDEPL23U (Linux)
> [windev.com]

Thanks for your reply.

I will just repeat myself just to be double sure.

We or our client does not own WebDev.

Still can we purchase WAS and deploy the server on client's premises?

The WAS offered by PCSoft is version 23. Will it be possible to run WD20 generated Web Service on WAS 23?

TIA

--
Yogi Yang



Edited 1 time(s). Last edit at 09/11/2018 08:06AM by YogiYang.
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 08:17AM
Hello,

I found this link: [help.windev.com]

Which is saying that we can deploy Web Service on Apache!

Am I understanding this properly?

--
Yogi Yang
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 09:14AM
Hi Yogi Yang

Quote
Still can we purchase WAS and deploy the server on client's premises?
Yes

Quote
The WAS offered by PCSoft is version 23. Will it be possible to run WD20 generated Web Service on WAS 23
Yes

But you can get the actual V20 versions as well
[windev.com]

And since this seems to be a bit new to you I would start with the FREE 10 users first and do some small test.
Create simple webservice with just one procedure (i.e. returning a string saying 'hello world') and see if you can get that up an running.

Arie
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 09:30AM
Sorry I am one of those Windoze guys

Arie
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 01:18PM
Hi

So, to be as clear as possible:

- to deploy a webservice, you need the webdev application server (10 or illimited) (one license per server)
- you ALSO need a WEB SERVER (IIS or APACHE) on which the webdev application server will be configured
- the install process for the was is able to configure IIS or apache automatically -IF- it's a version it knows (so apache alone, yes, apache inside wamp, no, IIS of a version known, when the webdev version came out yes, new version of IIS no)
- and yes, the license for the server is COMPLETELY independent from the webdev development tool, as the WAS is there for HOSTING purposes, and you may not be the one creating what is hosted.
- when you install the was, an option will allow you to choose that v20 sites/webservices can be managed (all the previous engine version are then installed too)
- the WAS exists for windows and linux but the linux version has some limitations (and you should be very good in linux to do the install)

I hope this helps

Best regards

Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on [www.fabriceharari.com]
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 05:26PM
Hello Arie and Fabrice,

Thanks a lot for your valuable help.

Now he picture is clear and I can go a head developing my Web Service.

As this is a black art for me at present I will have to try out something and learn from it.

TIA

--
Yogi Yang
pao
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 06:29PM
Yogi,

You can start by checking the Examples\Training\WD Webservice Server and Examples\Training\WD Webservice Client to see how it works and test with the free WAS version.

Regards

Paulo Oliveira
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 06:56PM
Hi all,
what happens with WAS license if client needs to change server?

Thanks

BR,
Alen Uzelac
Re: [WD20] - How to use Web Service developed in WD?
September 11, 2018 09:07PM
Hi Alen,

afaik there is no system check or something like that. The license is a administrative/legal thing in this case. You are entitled to use one license on one server only.

When installing you need the installation/serial code, which you receive when buying a license. So you cannot just download the full version and install it right away. But it is portable when switching to another server, no need to contact pcsoft for that.

Arie
Infos
Re: [WD20] - How to use Web Service developed in WD?
September 18, 2018 02:21PM
Have you tried with this php4WM
This is free

[www.youtube.com]
Re: [WD20] - How to use Web Service developed in WD?
September 20, 2018 08:26AM
Infos Wrote:
-------------------------------------------------------
> Have you tried with this php4WM
> This is free
>
> [www.youtube.com]


Yes but it is a bit slow when the amount of date requested is large.

Secondly I am not able to get php4WM to upload an image and store it in DB. If you have a solution for this please do help me out.

TIA

--
Yogi Yang
Infos.
Re: [WD20] - How to use Web Service developed in WD?
September 20, 2018 10:43AM
Do you need to transfer the image physically to your cell phone?
If you have to physically upload the image then use the FTP protocol

This is my application that uploads data using php4wm
[play.google.com]


This is an app that sends cell phone data to the cloud
[play.google.com]
Re: [WD20] - How to use Web Service developed in WD?
September 21, 2018 08:59AM
Infos. Wrote:
-------------------------------------------------------
> Do you need to transfer the image physically to
> your cell phone?

Thanks for your idea

I don't want to transfer to cell phone. I want to transfer from cell phone to the server. In short I want to upload images and document files from cell phone to server.

Using FTP is not at option at present but I will have to talk to client regarding allowing the use of FTP for uploading data from cell phone to server.
Re: [WD20] - How to use Web Service developed in WD?
September 21, 2018 09:02AM
Hello,

Quote
Infos
This is my application that uploads data using php4wm
[play.google.com]
Can you share as to how you managed to get php4wm to upload images/data?

Regards,

--
Yogi Yang
Infos.
Re: [WD20] - How to use Web Service developed in WD?
September 22, 2018 09:08AM
Greeting

You have in these videos detailed about everything about php4wm
Frédéric Emprin


You need to have the path shown to the image to display the image
Infos.
Re: [WD20] - How to use Web Service developed in WD?
September 22, 2018 09:13AM
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: