I have a Glassfish app server hosting my web service (jax-rs with apache cxf).
I have a Java client consuming this web service using code:
Service service = JAXRSClientFactory.create("http://localhost/service", Service.class);
The service is consumed x number of times at run time. x can vary.
All is good - the code runs fine and as...
I want to use to implement only REST service - a very simple one returning 'person' by full name or id in JSON. Im probably will be using JAX-RS and maybe JAXB - im not sure if tis is a right choise. I want to use it with following technologies/products and their versions:
JDK 1.5
Eclipse 3.5 EE
Tomcat 6.0
CXF 2.2.5
Spring 2.5.1
My q...
I have created a cxf webservice within my cxf.xml file I have the following tag.
bean id="videoStatsTable" class="com.company.auth.dataobjects.VideoStatsTable"
From what I understand Spring should create this object for me. The problem is I'm not sure how to get access to it. It seems as if I need the servletContext but as I'm in not i...
After adding a RESTFul service using Apache CXF to my Spring (and Wicket) project I get the following exception:
org.apache.cxf.BusException: No binding factory for namespace http://apache.org/cxf/binding/jaxrs registered.
I have included the row below in my Spring configuration and thought this would actually solve my problem. But it ...
I'm not a Java programmer by any sense, so I apologize if this is a stupid question. I have a service that was given to me, that basically searches the inventory of a future partner. The file they sent is a compiled .jar file, and a wsdl file. The read me file states that it can be used with XFire or CXF. The question is, how do I set th...
I'm writing a RESTful Java server with CXF framework.
How do I can write a @Path Regular Expression in order to obtain any URI finished in "/action" value?
...
Hi
I im developing a web application, its a servlet which basically acts as a front end for a web service, im using CXF for the web service client, the application is running on a WebLogic 9.10 server, every thing was working ok until the project owner decided to add ssl supprt, no big problem, since im using cxf whitout spring, i mana...
My web service client application uses Apache CXF to generate client stubs for talking to several web services. The generated CXF web service stub objects have quite a large memory footprint (10 - 15 web service objects take more than 64 MB of memory). Is there any way to reduce the CXF object footprint?
...
UPDATE: I have submitted my question to the CXF User's mailing list, here.
UPDATE: I have currently signed all of my jars. I still can't seem to get CXF setup in a way that it can find the WSDL. My last attempt was to place the WSDL inside of my WAr file so I can access it through a web browser. I set the wsdllocation inside of the clie...
We have a web application built on a Tomcat 6/WebWork/Hibernate/SQL Server stack.
One part of the web application is a network map built using
the Flare toolkit (the predecessor to Flare was Prefuse). The network map data is retrieved via a webservice call, say getData(). This call is made by the Flare application to retrieve XML data ...
Hello all,
I'm having the following problem (reported there by someone else) when running my webapp under Glassfish, while under Jetty it works fine..
javax/xml/ws/spi/Provider mentions creating a META-INF/services/javax.xml.ws.spi.Provider resource, but this is already supplied with CXF and creating an additional resource file does no...
The CXF documentation mentions caching as Advanced HTTP:
CXF JAXRS provides support for a number of advanced HTTP features by handling If-Match, If-Modified-Since and ETags headers. JAXRS Request context object can be used to check the preconditions. Vary, CacheControl, Cookies and Set-Cookies are also supported.
I'm really interes...
Hi all,
I have two code projects both using CXF to use web services. When I make a call from project A to project B, the method I am calling receives null parameters. I've turned on logging and the inbound message does indeed contain the correct parameters. I have also tried calling my service from SoapUI (a webservice testing tool)....
I have a CXF service service that I created WSDL first and when I deploy the WAR into glassfish app server 2.1.1, I get the following exception:
java.io.FileNotFoundException: C:\Sun\AppServer\domains\domain1\config\TestService.wsdl
If I put the WSDL in that location, everything works fine. How do I setup my WAR so that the TestServic...
Hi,
I'm trying to use an application which uses cxf-jaxws in bean definition:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sec="http://cxf.apache.org/configuration/security"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:util="http://www.springframework.or...
Hey guys,
I'm working on an Apache CXF webservice (using JAX-WS, over SOAP). The service itself is pretty simple: receive a request, insert the request into a database, and return whether the insert was successful. I'd like to rely on XML validation to enforce a number of constraints on the request.
So, my question. How do I return ...
Hello,
We get the following error when we use WSDL2Java tool to generate stubs. The webservice is up and running.
WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsd
l definition from : http://scheduler.heartbeatsoftware.com/scheduler/WebServices
/SampleSNMWebService?wsdl
Caused by : WSDLException: faultCod...
Is there a way to specify which XML parser cxf uses? Either through the cfx.xml file or programmatically?
Our app has the Woodstox parser on its classpath, and cxf seems to be using that by default. However, the Woodstox implementation seems to truncate large Base64 encoded byte arrays in the SOAP packet.
Removing Woodstox from the c...
Technologies Involved
Mule
Apache CXF
Given
A simple POJO (controversial acronym, but let's say a smart POJO):
public class SmartPojo implements SomeBusinessInterface {
public String doSomethingSmart( With something ) {
String result;
result = Irrelevant.process( something )
return result;
...
Hey guys,
I'm working on a project that involves a simple web service, and have had a slew of little problems. It's an Apache CXF webservice (using JAX-WS, over SOAP). The service itself is pretty simple: receive a request, insert the request into a database, and return whether the insert was successful. I'd like to rely on XML validat...