Welcome! Log In Create A New Profile

Advanced

WD12 - Web Service

Posted by Andres Sanchez 
Andres Sanchez
WD12 - Web Service
July 11, 2008 08:55PM
Hi:

I want to make a Web Service but I had no idea on what to do, I know the following though:
1) Do not use GUI, no windows or visual elements, just Global Procedures.
2) Every Global Procedure will be mapped as a web service function.
3) to send data you will have to use, Serialize/Deserialize.

This much I know, but still, don't know how to start. Does someone has an example on how to send a small data set?


Thanks

Andres Sanchez
KenKnight
Re: WD12 - Web Service
July 12, 2008 02:59AM
Hi Andres,

I'll try to put something small together for you.

Cheers!
Ken

PS. what version are you using?



Edited 1 time(s). Last edit at 07/12/2008 03:01AM by KenKnight.
KenKnight
Re: WD12 - Web Service
July 12, 2008 04:39AM
Hi Andres,

Here is what a simple webservice written in WinDev looks like;

http://windevtutorials.com/myWebService/

You can download the project from here

You need to following files in a directory on the server and then you need to run the WDSoapSetup.exe file to finish the setup. If you're running IIS you will need to install the ISAPI module WDSIIS.dll and restart the IIS service.

I have this running under the abyss service fine.

WD120IMG2.DLL
WD120SIIS.dll
WD120TEST.DLL
WDMetabase.dll
WDSOAPACTION.DLL
WDSOAPCE.DLL
WDSOAPCOM.DLL
WDSOAPCPL.DLL
WDSOAPETAT.DLL
WDSOAPGRF.DLL
WDSOAPHTML.DLL
WDSOAPIMG.DLL
WDSOAPMAT.DLL
WDSOAPOBJ.DLL
WDSOAPOLE.DLL
WDSOAPPDF.DLL
WDSOAPPRN.DLL
WDSOAPRTF.DLL
WDSoapSetup.exe
WDSOAPSTD.DLL
WDSOAPVM.DLL
WDSOAPXLS.DLL
WDSOAPXML.DLL
WDSOAPZIP.DLL

Hope this helps.

Cheers!
Ken

PS this is version 12 windev.
Andres Sanchez
Re: WD12 - Web Service
July 12, 2008 08:22PM
Hi Ken:

Thanks, I've downloaded the example and in my computer does not work.
I am in Vista, probably there is some configuration to do, I will try it on other windows
to see if the learning process is much easier.

However I still have a doubt in how would you send a small dataset.

Andres Sanchez
KenKnight
Re: WD12 - Web Service
July 12, 2008 08:34PM
Hi Andres,

Some key points to remember about webservices with windev.

1) You have to have the ISAPI dll for windev running in the web server space. If you're running IIS, it will WD120SIIS.dll. For apache it's a different dll. Along with making sure that .soap is associated with WD120SIID.dll. I believe that the WDSoapConfig will take care of installing these.

2) Make the necessary alias / virtual directory entries in your server so that they point to where the wdl and xml files are located.

Once this has been configured properly you should be able to go to the directory of the sample htm files (ie [localhost] ) and you should be able to test the echo method.

As for sending a small dataset you will need to use serialize and deserialize in some cases. Let me see if I can add that functionality to the sample.

Cheers!
Ken

Andres Sanchez
Re: WD12 - Web Service - SOLVED
July 12, 2008 10:19PM
Ken:

I think my problem was the vista OS, i probably miss to configure something, because I tried it on a W2K machine and is working now.

I already did the example of the small data set with the serialize, and the trick was reading it back, cause the global functions that WD generate to use the service use a structure to return back the data, but that was also solved.

Thank you very much for your assistance.

Andres Sanchez
KenKnight
Re: WD12 - Web Service
July 13, 2008 03:10AM
Glad to hear you got it working!

Cheers!
Ken
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: