-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everybody
I have small project, I have a web services that made by C#. In Web services it return DataTable. I use Java is Client to get DataTable, but I search in all pages in google still not have solutions. This is my Web services that made by C#:
[WebMethod]
public DataTable getPartMonitoringPanel(string sRegion_ID)
{
string conn = ConfigurationManager.AppSettings["ConnectionInfo"];
string sql = "exec sp_getPartMonitoringPanel " + sRegion_ID;
return new DatatableFunction().getDataTable(sql, conn);
}
So how Can I got DataTable in Java and show it into my grid ?
By definition, if you have produced a "web service", regardless of the language, it must provide the interface contract in the form of a WSDL. That is, unless it is RESTful web service. In the former case, you can run the WSDL through the Axis wsdl2java to produce the appropriate Java client classes you will need to assemble a SOAP request and execute the call to the web service.
In the case of a RESTful web service, if that's what you created, see this simple example.
The whole idea behind web services is that the language used to develop them is irrelevant. So, ideally, the fact that you wrote them in .Net shouldn't matter. You consume it the same as if they had been written in Java.
Asked: 2013-03-01 04:57:08 +0800
Seen: 19 times
Last updated: Mar 02 '13
Problem binding values to a composite component
How can i load a constant in .zul
ZK team plans to dispose of Composer EventQueues no longer in scope? [closed]
Dirty state for forms with collection properties
ZK drang and drop and databinding [closed]
Not able to bind Spring beans after zk upgrade
spring + zk @autowired problem