|
|
|
| Local GXChart |
You can download GXChart and run it in your own Web Server!
If you are a client you can get the local version for free. If you are not a client, buy it at gxshop.com. |
| |
| Documentation |
|
|
| |
| Examples |
| - |
Using GXChart as a web service from GeneXus
This is a simple example in which SOAP is used to request the URL of a chart that will be displayed in a Web Panel.
The file location.xml must be placed in the KB folder. This ensures that the SOAP request is correctly sent to the GXChart server. If you already have a location.xml file, then you must edit it as shown in the documentation.
Due to the information in this file, the procedure MakeChart is actually never called and is just used to define the interface for the SOAP call. This procedure must be set as main and generated with the VB Web generator. This has the effect of correctly generating a call to an ASP object from any generator.
The web panel ChartTest just shows an image obtained from the URL returned from the SOAP call. This object can be generated with any of GeneXus web enabled generators (VB, Java, C/SQL or C#). |
| |
|
| - |
Using GXChart as a web service from .NET
This example shows how to call GXChart as a web service via SOAP from a C# program in the .NET platform, and how to obtain the chart from the returend URL via HTTP. To use this example, you need at least the .NET Framework. The example can be built by invoking the C# compiler with the command csc *.cs. If you have Visual Studio .NET you can open the project WebChartTest.csproj instead and build it from there. The file WebChart.cs was generated automatically with the WSDL tool, included in Visual Studio .NET, by using the command wsdl http://www.gxchart.com/webchart.wsdl. |
| |
|
| - |
Using GXChart as a web service from Java
This example shows how to call GXChart as a web service via SOAP from a Java program. To use this example, you need the Apache SOAP package which also requires the Xerces Java Parser and JavaMail packages, and the latter in turn requires the JavaBeans Activation Framework package.
The ZIP file contains a file named WebChart.jar where the class com.GXChart.WebChart is implemented. This class can be used from any Java program to call GXChart as a Web Service and its source code (com/GXChart/WebChart.java) is also included in the zip file. Also included is the file WebChartTest.java which provides an example of how to use the com.GXChart.WebChart class. If you are using Sun's Java SDK. this code can be compiled with the command javac WebChartTest.java and executed with java WebChartTest. | | |
|
|
| |