PETER ZHOU
Windev Mobile Android, MYSQL and Webservice July 20, 2012 12:31PM |
DerekT
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 03:39PM |
Paulo Oliveira
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 03:50PM |
PETER ZHOU
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 05:11PM |
PETER ZHOU
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 05:46PM |
DerekT
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 05:56PM |
Quote
PETER ZHOU
Hi DerekT,
I'm going thru the web service examples under WINDEV 16 & noticed it (server version) generate the '.wsdl' & '.awws' files where the .awws is deployed under the webdev app server.
The wsdl is what is created when you generate the webservice - the generation wizard will ask you for the address of the server on which to publish.
The awws is created at the same time - cannot remember the address syntax but when you have successfully generated a list will be displayed and towards the bottom the links to the wsdl and awws are displayed
In the (client version) of the web service example, it's using the '.wdsdl' file.
Correct - you need to import the webservice from the server (Workshop/Webservices)
How do i generate the (server version) to give the client the '.wdsdl' file ?
As item 2
Sorry for the trouble..
Not a problem - we have all been here
Regards,
PETER ZHOU
GuenterP
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 06:23PM |
Moderator |
Quote
Paulo Oliveira
If you need more than 10 simultaneous connections and don't want to pay for the WAS you can develop one socket server app with windev and connect to it from the mobile.
Under the windev in the components you can find one sample of the server and client socket apps.
The data treatment can be the same with webservices or sockets, passing it as XML or any other format you may decide in the sockets apps.
windev xx\Components\Sample components\WD Socket
Pragma Tix
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 11:08PM |
Quote
DerekT
Create a method (Global Procedure) that extracts the required data from the DB - convert the result into XML and return this as the result of the method.
LOCAL resp is Array_SelectCompaniesByCountryResponse _id, _company, _country is string pict is Buffer d is Date TableDeleteAll(Table1) resp = Array_SelectCompaniesByCountry( ED_COUNTRY ) FOR i = 1 _TO_ resp.Array_SelectCompaniesByCountryResult..Occurrence _company = resp.Array_SelectCompaniesByCountryResult.CorporateName _id = resp.Array_SelectCompaniesByCountryResult.CompanyID _country = resp.Array_SelectCompaniesByCountryResult.country pict = resp.Array_SelectCompaniesByCountryResult.Logo //d = resp.Array_SelectCompaniesByCountryResult.CreatedAt TableAddLine(Table1, _id, _company, _country, pict) ENDWebService code
PROCEDURE Array_SelectCompaniesByCountry(country is string) Companies is dynamic array of 0 stCompany IF HExecuteQuery(QRY_Company_by_Country,hQueryDefault, country) THEN FileToArray(Companies,QRY_Company_by_Country) END HFreeQuery(QRY_Company_by_Country) RESULT Companies
tCompany est une structure CompanyID est un 8-byte int //Corporate Name CorporateName est un string //address address est un string //Additional address AddressNext est un string //Zip code ZipCode est un string //City City est un string //country country est un string //Web Web est un string //Email Email est un string //Phone Phone est un string //Mobil Mobil est un string //Fax Fax est un string //Logo of the company Logo est un Buffer // Picture base64 encoded CreatedAt est un Date FINHTH BLS
PramaTix
Re: Windev Mobile Android, MYSQL and Webservice July 20, 2012 11:16PM |
Re: Windev Mobile Android, MYSQL and Webservice November 09, 2022 02:31AM |
Registered: 1 year ago Posts: 2 |
Re: Windev Mobile Android, MYSQL and Webservice November 18, 2022 12:13PM |
Registered: 5 years ago Posts: 151 |
Re: Windev Mobile Android, MYSQL and Webservice November 18, 2022 01:27PM |
Registered: 5 years ago Posts: 236 |