[Ugent please] connect Web service .net view in grid group ZK

asked 2013-03-01 04:57:08 +0800

zerocold gravatar image zerocold
128 1

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#:

        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 ?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-02 01:07:30 +0800

rdgrimes gravatar image rdgrimes
735 7

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.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-03-01 04:57:08 +0800

Seen: 19 times

Last updated: Mar 02 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More