Re: [Gambas-user] gambas3 and web services
I think this should be possible. I've worked with Web Services from out of java and c# and in its simplest form it's just a case of POSTing parameters on a request. In java you have the advantage of several tools which can read the WSDL for you and automatically generate client code with stubs for the methods to call the Web Service(s). I'm guessing you don't want to get quite that ambitious at this stage? I've done POSTing of parameters in Gambas (somewhere, I have to look for the code!) Can you share the WSDL and/or any existing client code with us? Regards, Caveat On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: Hallo to everyone, I am Massimo and I try to write a client software (in gambas 3) that use a web services. In other word the software send data with saop protocol an receive data with the same protocol. The information about the availebe services are described in a WSDL file. Now, hor Can I do this with gambas? Best Regards, Massimo. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and web services
attached to this mail the wsdl requested. I hope that this can hep me to develop my application. Regards, Massimo I think this should be possible. I've worked with Web Services from out of java and c# and in its simplest form it's just a case of POSTing parameters on a request. In java you have the advantage of several tools which can read the WSDL for you and automatically generate client code with stubs for the methods to call the Web Service(s). I'm guessing you don't want to get quite that ambitious at this stage? I've done POSTing of parameters in Gambas (somewhere, I have to look for the code!) Can you share the WSDL and/or any existing client code with us? Regards, Caveat On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: Hallo to everyone, I am Massimo and I try to write a client software (in gambas 3) that use a web services. In other word the software send data with saop protocol an receive data with the same protocol. The information about the availebe services are described in a WSDL file. Now, hor Can I do this with gambas? Best Regards, Massimo. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@... https://lists.sourceforge.net/lists/listinfo/gambas-user _1.wsdl Description: application/wsdl -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem compiling gambas3 (glew.h not found)
Le Tuesday 21 June 2011 10:57:47, Caveat a écrit : Please find attached full stdout and stderr in result_comp_gambas3.gz Also (with thanks to Kevin Fishburne!) script comp_gambas Error appears to be that it can't find glew.h: GL.h:29: fatal error: glew.h: No such file or directory I notice that I do have a glew.h in /usr/include/GL/ and according to synaptic I have libglew1.5 and libglew1.5-dev installed (but I do not have libglewmx installed...) Running 64-bit Ubuntu 10.10 and the Gambas3 version checked out was revision 3892. Any pointers? Thanks and regards, Caveat Can you post the content of the file /usr/lib/pkgconfig/glew.pc ? Thanks -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem compiling gambas3 (glew.h not found)
Hi Laurent It's attached herewith. Thanks and regards, Caveat On Tue, 2011-06-21 at 11:15 +0200, Laurent Carlier wrote: Le Tuesday 21 June 2011 10:57:47, Caveat a écrit : Please find attached full stdout and stderr in result_comp_gambas3.gz Also (with thanks to Kevin Fishburne!) script comp_gambas Error appears to be that it can't find glew.h: GL.h:29: fatal error: glew.h: No such file or directory I notice that I do have a glew.h in /usr/include/GL/ and according to synaptic I have libglew1.5 and libglew1.5-dev installed (but I do not have libglewmx installed...) Running 64-bit Ubuntu 10.10 and the Gambas3 version checked out was revision 3892. Any pointers? Thanks and regards, Caveat Can you post the content of the file /usr/lib/pkgconfig/glew.pc ? Thanks prefix=/usr exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include Name: The OpenGL Extension Wrangler Library Description: cross-platform C/C++ extension loading library Version: 1.5.2 Libs: -L${libdir} -lGLEW Cflags: -I${includedir} -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem compiling gambas3 (glew.h not found)
Le Tuesday 21 June 2011 11:28:43, Caveat a écrit : Hi Laurent It's attached herewith. Thanks and regards, Caveat Should be fixed in trunk. Thanks for the report. ++ -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem compiling gambas3 (glew.h not found)
No change I'm afraid. Checked out revision 3894 and in .../gb.opengl/src/glsl still getting /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..-pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.c:29: GL.h:29: fatal error: glew.h: No such file or directory compilation terminated. make[3]: *** [main.lo] Error 1 Sorry! On Tue, 2011-06-21 at 11:45 +0200, Laurent Carlier wrote: Le Tuesday 21 June 2011 11:28:43, Caveat a écrit : Hi Laurent It's attached herewith. Thanks and regards, Caveat Should be fixed in trunk. Thanks for the report. ++ -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem compiling gambas3 (glew.h not found)
Le Tuesday 21 June 2011 12:08:51, Caveat a écrit : No change I'm afraid. Checked out revision 3894 and in .../gb.opengl/src/glsl still getting /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..-pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.c:29: GL.h:29: fatal error: glew.h: No such file or directory compilation terminated. make[3]: *** [main.lo] Error 1 Sorry! And should also be fixed in trunk now :-p ++ -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem compiling gambas3 (glew.h not found)
Confirmed fixed in 3895. Many thanks for the lightning fast responses. :-) Regards, Caveat On Tue, 2011-06-21 at 12:18 +0200, Laurent Carlier wrote: Le Tuesday 21 June 2011 12:08:51, Caveat a écrit : No change I'm afraid. Checked out revision 3894 and in .../gb.opengl/src/glsl still getting /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..-pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.c:29: GL.h:29: fatal error: glew.h: No such file or directory compilation terminated. make[3]: *** [main.lo] Error 1 Sorry! And should also be fixed in trunk now :-p ++ -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and web services
I just made a quick example using one of the free Web Services out on the interwebbase ;-) Your project will need to include networking (obviously!) Dim http As HttpClient Dim buffer As String http = New HttpClient As http http.URL = http://www.webservicex.net/ConvertTemperature.asmx/ConvertTemp; http.Async = False http.Timeout = 60 http.Post(application/x-www-form-urlencoded, Temperature=100FromUnit=degreeCelsiusToUnit=degreeFahrenheit) Print begin If http.Status 0 Then Print ERROR Else ' Success - read data If Lof(http) Then Read #http, buffer, Lof(http) Print buffer End If Print end The result is: begin ?xml version=1.0 encoding=utf-8? double xmlns=http://www.webserviceX.NET/;212/double end This just converts a temperature from one unit to another (100C = 212F). You should be able to pick the bones out of this to make a specific client for the Web Service(s) you want to use. For more details of the example WS I used, see http://www.webservicex.net/ConvertTemperature.asmx?op=ConvertTemp Regards, Caveat On Tue, 2011-06-21 at 10:02 +0200, Almanova Sistemi wrote: attached to this mail the wsdl requested. I hope that this can hep me to develop my application. Regards, Massimo I think this should be possible. I've worked with Web Services from out of java and c# and in its simplest form it's just a case of POSTing parameters on a request. In java you have the advantage of several tools which can read the WSDL for you and automatically generate client code with stubs for the methods to call the Web Service(s). I'm guessing you don't want to get quite that ambitious at this stage? I've done POSTing of parameters in Gambas (somewhere, I have to look for the code!) Can you share the WSDL and/or any existing client code with us? Regards, Caveat On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: Hallo to everyone, I am Massimo and I try to write a client software (in gambas 3) that use a web services. In other word the software send data with saop protocol an receive data with the same protocol. The information about the availebe services are described in a WSDL file. Now, hor Can I do this with gambas? Best Regards, Massimo. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@... https://lists.sourceforge.net/lists/listinfo/gambas-user -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and web services [bigger, better, faster, more]
Hi Massimo, I just extended the example program I worked up to include all 4 main ways of calling a Web Service. These are: Http GET, Http POST, SOAP 1.1, and SOAP 1.2. One problem I ran into is that Gambas3 seems a little too fussy about the valid content types and will give a runtime error on ones it doesn't like but it seems like they are perfectly valid. I found the trick was to set the content-type as first param on the call to HttpClient.Post() to empty string and 'manually' send a Content-Type header. Be aware that the public Web Service used here can be a little flaky, and does time out now and then (guess it depends how many people are hitting their server at once...). You can find the code on pastebin, nicely formatted, at http://pastebin.com/2gyxGzAP and here's the code in plain text style: Public Sub Test_Click() Dim http As HttpClient http = New HttpClient As http doHttpGet(http) showResult(Http GET, http) http = New HttpClient As http doHttpPost(http) showResult(Http POST, http) http = New HttpClient As http doSOAP11(http) showResult(SOAP 1.1, http) http = New HttpClient As http doSOAP12(http) showResult(SOAP 1.2, http) End Public Sub doHttpGet(http As HttpClient) http.URL = http://www.webservicex.net/ConvertTemperature.asmx/ConvertTemp?Temperature=100FromUnit=degreeCelsiusToUnit=degreeFahrenheit; http.Async = False http.Timeout = 60 http.Get() End Public Sub doHttpPost(http As HttpClient) Dim data As String http.URL = http://www.webservicex.net/ConvertTemperature.asmx/ConvertTemp; http.Async = False http.Timeout = 60 data = Temperature=100FromUnit=degreeCelsiusToUnit=degreeFahrenheit Print Http POST data: data http.Post(application/x-www-form-urlencoded, data) End Public Sub doSoap11(http As HttpClient) Dim data, aHeader As String Dim headers As String[] http.URL = http://www.webservicex.net/ConvertTemperature.asmx; http.Async = False http.Timeout = 60 data = ?xml version= Chr$(34) 1.0 Chr$(34) encoding= Chr$(34) utf-8 Chr$(34) ? gb.newline soap:Envelope xmlns:xsi= Chr$(34) http://www.w3.org/2001/XMLSchema-instance; Chr$(34) xmlns:xsd= Chr$(34) http://www.w3.org/2001/XMLSchema; Chr$(34) xmlns:soap= Chr$(34) http://schemas.xmlsoap.org/soap/envelope/; Chr$(34)gb.newline soap:Body gb.newline ConvertTemp xmlns= Chr$(34) http://www.webserviceX.NET/; Chr$(34)gb.newline Temperature100/Temperature gb.newline FromUnitdegreeCelsius/FromUnit gb.newline ToUnitdegreeFahrenheit/ToUnit gb.newline /ConvertTemp gb.newline /soap:Body gb.newline /soap:Envelope Print Soap 1.1 data: data headers = [Content-Type: text/xml; charset=utf-8, Content-Length: Len(data), SOAPAction: Chr$(34) http://www.webserviceX.NET/ConvertTemp; Chr$(34)] For Each aHeader In headers Print Sending SOAP 1.1 header: aHeader Next http.Post(, data, headers) End Public Sub doSoap12(http As HttpClient) Dim data, aHeader As String Dim headers As String[] http.URL = http://www.webservicex.net/ConvertTemperature.asmx; http.Async = False http.Timeout = 60 data = ?xml version= Chr$(34) 1.0 Chr$(34) encoding= Chr$(34) utf-8 Chr$(34) ? gb.newline soap12:Envelope xmlns:xsi= Chr$(34) http://www.w3.org/2001/XMLSchema-instance; Chr$(34) xmlns:xsd= Chr$(34) http://www.w3.org/2001/XMLSchema; Chr$(34) xmlns:soap12= Chr$(34) http://www.w3.org/2003/05/soap-envelope; Chr$(34)gb.newline soap12:Body gb.newline ConvertTemp xmlns= Chr$(34) http://www.webserviceX.NET/; Chr$(34)gb.newline Temperature100/Temperature gb.newline FromUnitdegreeCelsius/FromUnit gb.newline ToUnitdegreeFahrenheit/ToUnit gb.newline /ConvertTemp gb.newline /soap12:Body gb.newline /soap12:Envelope Print Soap 1.2 data: data headers = [Content-Type: application/soap+xml; charset=utf-8, Content-Length: Len(data)] For Each aHeader In headers Print Sending SOAP 1.2 header: aHeader Next http.Post(, data, headers) End Public Sub showResult(typeOfCall As String, http As HttpClient) Dim buffer, aHeader As String Print *** Result for typeOfCall *** If http.Status 0 Then Print ERROR Else ' Success - read data If Lof(http) Then Read #http, buffer, Lof(http) Print buffer For Each aHeader In http.Headers Print Got header: aHeader Next End If Print *** End typeOfCall *** End Results are as follows: *** Result for Http GET *** ?xml version=1.0 encoding=utf-8? double xmlns=http://www.webserviceX.NET/;212/double Got header: HTTP/1.1 200 OK Got header: Cache-Control: private, max-age=0 Got header:
[Gambas-user] Web page 1st image (new idea)
i saw the image from 1st page at site and i have some ideas to make it better. i would like your opinion about that, as Benoit suggested. The concept is 1) the windows to be on a 3d-panorama position instead flat style. 2) Behind will be a star-wars like text from code. 3) And in front of them the logo with opacity for some effect. The result is the next image http://www.mediafire.com/imgbnc.php/70e13f6c21a1a88788f461a96476c1ea7e646e66ed55cef1533b15207be6b6fd6g.jpg Benoit said about it: Not bad! I need some place to put the news frame, and I suggest that the floor has no drop shadow, and/or looks like the old one. i will make a new image with size 480px × 328px as this one on site. -- Regards, Demosthenes Koptsis. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Fwd: Web page 1st image (new idea)]
The new version with web site dimensions is this one http://img28.mediafire.com/b0446d5e58da5d399646c537750afc8edee9edc6edfd5c9245c87cc93ea7f46b6g.jpg -- Regards, Demosthenes Koptsis. ---BeginMessage--- i saw the image from 1st page at site and i have some ideas to make it better. i would like your opinion about that, as Benoit suggested. The concept is 1) the windows to be on a 3d-panorama position instead flat style. 2) Behind will be a star-wars like text from code. 3) And in front of them the logo with opacity for some effect. The result is the next image http://www.mediafire.com/imgbnc.php/70e13f6c21a1a88788f461a96476c1ea7e646e66ed55cef1533b15207be6b6fd6g.jpg Benoit said about it: Not bad! I need some place to put the news frame, and I suggest that the floor has no drop shadow, and/or looks like the old one. i will make a new image with size 480px × 328px as this one on site. -- Regards, Demosthenes Koptsis. ---End Message--- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] My first Gambas patch (HttpClient content-type validation)
I noticed that the validation on the content-type param (first param on a call to HttpClient.Post) seemed a little too strict. It wouldn't allow me to (for example) specify: http.Post(application/soap+xml; charset=utf-8, data) So I have patched line 247 of CHttpClient.c in trunk/gb.net.curl/src from: if (isalnum(c) || c == '-' || c == '+' || c == '.' || c == '/') to now read: if (isalnum(c) || c == '-' || c == '+' || c == '.' || c == '/' || c == ';' || c == ' ' || c == '=') Thus adding semi-colon, space, and the equals sign to the set of accepted characters. I have tested this locally and it appears to work but I don't have commit rights to the Gambas3 svn (probably a good thing lol). Could one of the maintainers take a look and, if in agreement, make the above patch in trunk? Thanks and regards, Caveat -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Issue 71 in gambas: Signal #11
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 71 by islamph...@gmail.com: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 1) Describe the problem.Signal #11 rises 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 2.22.0 Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome when i click on Sales menusales.error rises but if try to reproduce the error just wrok fine...after while it arises again :P Attachments: e-pharmacist.tar.gz 8.6 MB pharm.sql.tar.gz 432 KB -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user