I am new to SQL Server Reporting Services and web services in general. I am trying to follow this tutorial for integrating java with SSRS web services: http://www.craigsprogramming.com/2011/03/how-to-integrate-java-with-microsoft_4178.html.
I have generated the proxy classes from the server's ReportExecution2005 wsdl file, using the wsimport utility. I get most classes such as the ReportExecutionService and the ReportExecutionServiceSoap. However, I seem to be missing the ReportExecutionServiceSoapStub class which is utilized in the tutorial(and among other tutorials/examples). I have the same version of ReportExecutionService.
"import com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingservices.*;" doesn't contain ReportExecutionServiceSoapStub class
Would anyone have any idea why this is happening? This is very new to me, so any help would be appreciated. Thanks!
So I figured out the Stub class is generated by Apache Axis when the wsdl is converted to the proxy classes by Axis. I generated them with wsimport.
Related
I generated wsdl using wsimport from JDK 1.6. I then wrote a client to invoke the web service I got the following error.
java.lang.IllegalStateException: Could not initialize Service.
at org.codehaus.xfire.jaxws.ServiceDelegate.<init>(ServiceDelegate.java:77)
at org.codehaus.xfire.jaxws.Provider.createServiceDelegate(Provider.java:32)
at javax.xml.ws.Service.<init>(Service.java:56)
Then I removed xfire-all 1.2.6 jar used in my
application and found it working but only if the class was invoked from command line and not from application functionality which is the real need as removing xfire jar is not an option for me..Please help I read numberyyy of posts but did not get any fruitful solution yet.
Thanks in advance
I am new to Java EE, and am trying to learn how to create a web service. I followed the instructions given at this link- http://www.eclipse.org/webtools/community/education/web/t320/Implementing_a_Simple_Web_Service.pdf to create a simple Hello World web service. I got into trouble when trying to get Eclipse to start the glassfish4 server. I get the error shown below-
I am not sure what ${sunappserver.rootdirectory} means and how it is defined. Much appreciate anyone who can help me understand this and get it working.
Check your glassfish installation. This file contains lots of configuration details. Your Exception means it is missing! Maybe there is a backup called domain.xml.bak in the same directory.
Mine is in /usr/local/glassfish4_1/glassfish/domains/domain1/config/domain.xml
We were working on creating a RESTful service. We have thought of using frameworks like jersey or cxf. But apparently we found that just using the javax.ws.rs-api-2.0.jar and the related annotations, we can get the service working.
Question is:
How does it work? Is it dependent on the application servers?
What if we application server does not support or have the implementation of the API?
If it is dependent on application servers, can I find out the library which the server is using especially tomcat?
EDIT 1
This question is invalid. javax.ws.rs-api-2.0.jar is just an API. Using this jar does not suffice. It will not give compilation errors.
But at run-time, you need providers which will implement the rs-api. And thus we need the frameworks like jersey or cxf.
In our application, these jars were added to the war during ant-build from external location and that is why it confused us.
I am closing this question.
Hello and thanks for your time!
I have been looking for solution long enough, but didn't find how to connect glassfish with built-in Jersey via Rest. Actually, it's not a point make it via Rest, but I found out that I can't do that anyway else, if I plan using not-embedded neo4j.
http://docs.neo4j.org/chunked/milestone/server-java-rest-client-example.html
In the manual I need to install Jersey, but that Jersey is different than Glassfish's one, there's no needed classes inside.
I cant just replace Jersey files in Glassfish because of GF incompability. So, do I need to use another Jersey client, foreing to Glassfish, for Rest queries?
I found also framework neo4j-rest-graphdb, but I'm not sure it will work and probably is what I need. http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-rest-graphdb/2.0.0-M06/
I found JDBC driver for Neo4j - is this a better for these purposes?
Thank you!
Neo4j uses jersey version 1.* while glassfish uses version 2.*
The API has been changed as you can check in their respective docs :
https://jersey.java.net/documentation/1.17/client-api.html
https://jersey.java.net/documentation/latest/client.html
You basically need to create a client in both cases, and then define a webresource in 1.*, and a webtarget in 2.*
The import paths were also modified.
For instance, the client in 1.* is :
import com.sun.jersey.api.client.Client;
while in 2.* it is :
import javax.ws.rs.client.Client;
You should check the API for more details.
I assume you are using Glassfish 4. You can use the Jersey client APIs bundled with it you don't need to install one. Some of the client class names in the Jersey2 client are different then Jersey 1
For the past few days I have been looking at ServiceStack as a replacement for our WCF-based middleware (that exposes SOAP services).
My two main requirements :
Can be hosted outside of IIS (no problem using AppHostHttpListenerBase)
ServiceStack SOAP interfaces can be consumed from a Silverlight application.
Hosting from a console application works smoothly, but adding a service reference in my Silverlight client gives the following warning:
Custom tool warning: Endpoint 'WSHttpBinding_IOneWay' at address 'http://localhost:8080/soap12' is not compatible with Silverlight 5. Skipping...
Which makes sense, but I cannot seem to find a way to change the binding to e.g. basicHttpBinding.
Is this possible? I tried various ways to tackle this from app.config but no luck so far.
Much obliged in advance,
Robert van Drunen