Apache CXF helps you build and develop services using frontend programming APIs, like JAX-WS and JAX-RS. These services can speak a variety of protocols such as SOAP, XML/HTTP, RESTful HTTP, or CORBA and work over a variety of transports such as HTTP, JMS or JBI.
0
votes
0answers
5 views
Setting up javax.jws.HandlerChain
I am using the HandlerChain annotation. Within my handler XML file, I have found many examples of setting up a handler-class but all of them appear to utilize the default empty constructor. How do ...
0
votes
0answers
5 views
WS-Federation authentication redirect loop
I'm using Spring-Security-3.1.3, Apache-CXF-Fediz-1.1.0-SNAPSHOT. I'm trying to setup a "simple" WS-Federation Endpoint. I'm using the SNAPSHOT version of Fediz because it has support for Spring ...
0
votes
0answers
4 views
CXF don't accept SOAP req with default xml namespace
this one is accepted (auth namespace declared explicitly)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:auth="http://foo.pro/Auth/">
...
0
votes
0answers
7 views
Apache CXF Post issue
I'm using apache cxf WebClient(org.apache.cxf.jaxrs.client.WebClient) for POST an JSON String.
WebClient client = WebClient.create(url);
client.path("");
client.header("Content-Length", ...
0
votes
1answer
8 views
CXF Custom Validation Interceptor with custom response not working
I am trying to write a Custom CXF Interceptor to do some validations on SOAP request to a web service. Based on the validation results, I want to block the request to web service and return the ...
0
votes
1answer
10 views
publish cxf webservice in localhost
used cxf framework for webservice. It works.
however the webservice is always published in public ip and I see followin in colsole
Setting the server's publish address to be ...
1
vote
0answers
14 views
CXF In-Interceptor annotation is not working + JAX-RS
I have written a CustomValidationInterceptor. I want to configure this interceptor at service level with the use of annotations. Suppose, If I have exposed 5 services, and I want to configure the ...
0
votes
0answers
20 views
CXF InInterceptor not firing
I have created web service. It works fine. Now I'm trying to implement authentication to it. I'm using CXF interceptors for that purpose. For some reason interceptors won't fire. What am I missing? ...
1
vote
0answers
16 views
CXF/ JAX-RS : Return Custom response from interceptor
We need to return custom error code and error message when exception occurs during REST invocation. We have created a exception mapper provider, it works well for the exceptions from the application ...
0
votes
1answer
19 views
Apache CXF wsdl2java client - string in CDATA instead of escape characters
I have ganerated webservice client using Apache CXF wsdl2java tool. It work fine, but in one method I have to send string that contain special characters. Generated client use escape characters. I do ...
0
votes
3answers
23 views
Handling REST Exception
I'm using a REST service with CXF that does a GET request with an int parameter.
@Path("parkingservice")
public interface ParkingService {
/**
* @param id
* @return
*/
@GET
...
1
vote
0answers
15 views
Generate Junit test with cxf-codegen-plugin
I'm using the cxf-codegen-plugin to generate some Java classes from a WSDL. The thing works great but the webservice is growing so I have to code more and more Junit test. I wonder if there is a way ...
0
votes
0answers
27 views
How to properly implement a complex webservice? [closed]
I know how to create webservice, clients and make it all work. But now I'm facing a design problem. I've got an existing application and I want to use external webservice. Both my application and the ...
0
votes
1answer
11 views
WSO2 AS: get Axis2 MessageContext in CXF?
I deploy JAX-RS service to CXF (WSO2 AS 5.1.0) as WAR-file.
Also I have Axis2 Handler deployed as module (MAR) which used to modify Axis2 MessageContext in IN/OUT flows.
How can I get Axis2 ...
1
vote
0answers
28 views
Couldn't receive all document using CXF/MTOM
I'm trying to do very simple thing : a Client invokes a SOAP service via its WSDL to load a PDF document.
I'm using Apache CXF 2.7.5 and MTOM
The problem is that it seems that the document isn't ...
0
votes
0answers
7 views
FIQL SearchContext throws NullPointerException when injected with @Context
I am trying to implement a simple Rest service using FIQL but my code throws NullPointerException at the point where I inject the SearchContext with the @Context. Here is my code
My service class:
...
0
votes
0answers
7 views
CRUP operations with soap web services
i'm trying to build a soap web service that persorme crud operations ,
i used hibernate to persist data , and CXF for my web service.
i built my web service and it works fine , however whand i add ...
0
votes
1answer
22 views
WebServiceexception “No Content-type in the header” when trying to consume Apache Tomcat hosted webservice
I am getting wsdl url of remote webservice which is deployed on apache tomcat. I am converting into java client using CXF, when calling method of web services getting following error.
Exception in ...
0
votes
0answers
12 views
what's the cause of Proxy Error in my cxf client?
When I call a webservice within cxf client from my local computer everything is ok but when I call the webservice on server the webservice displays the message below:
Caused by: java.io.IOException: ...
0
votes
0answers
14 views
Get sub-resource locator method in Apache CXF JAX-RS RequestHandler
I'm writing an Apache CXF RequestHandler to do some authentication filtering on my JAX-RS resources. The authentication requirements are configured as annotations on the resource methods, so I need to ...
1
vote
0answers
9 views
WS-Security with PasswordDigest security concern
I created a WS endpoint which is secured with WS-Security. The client authentication is based on a UsernameToken with PasswordDigest password type (sadly certificate-based authentication is not an ...
1
vote
2answers
35 views
What is the simplest way to extract an XML node for JAXB.unmarshal()?
I use the wsdl2java goal of cxf-codegen-plugin to generate Java from a WSDL. Then, in my tests, I use JAXB.unmarshal() to populate classes from a raw webservice XML result.
A typical example is ...
0
votes
1answer
29 views
Wake m2e Maven builder up when XSDs imported by WSDLs are modified
I have a WSDL first CXF server project in which the WSDL imports several XSDs.
Some of these XSDs, in turn, refer to other XSDs.
The maven builder correctly detects workspace resource changes on the ...
1
vote
0answers
19 views
apache(httpd) load balancer and restfull requests
I use apache httpd as a load balancer and all the soap requests are working properly and are being navigating through the load balancer. but the problem is that all my restfull request to the load ...
0
votes
0answers
17 views
cxf jaxrs endpoint nor resolving the input parameters send as xml from soap ui
I am trying to write a cxf-jaxrs service on top of a source generated from wsdltojava.The service consumes and produces xml and implements a POST request.
I deployed the service in tomcat 7.0.40 and ...
0
votes
0answers
25 views
Replace cxf parameters with spring (dynamically)
I have following cxf.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
0
votes
0answers
20 views
Apply SAML 2 on top of restful web services
I am a newbie to SAML. I want to implement a simple hello world restful WS using CXF and Spring and apply SAML 2 on top of it. Can you please provide some pointers as to how to implement the same.
...
0
votes
0answers
24 views
How to configure Jsonp and CXF with Interceptors
I am developing a restful WS and I want to give the option to the users to take data back from my WS in the form of XML or Json and also to be able to choose a callback function if they want Jsonp. ...
1
vote
1answer
13 views
CXF failing after upgrading Jackson lib
I have just upgraded from Jackson 2.1.1 to 2.2.2 and it has caused the
following exception:
javax.ws.rs.client.ClientException: .No message body writer has been
found for class : class ...
0
votes
1answer
18 views
Running Apache CXF on top of Atmosphere in Apache Karaf 3.0 (OSGI Environment)
I'm trying to implement Server Push/Reverse Ajax/Comet Technologies like HTTP Streaming or SSE, etc.. using Apache CXF - JAX-RS RESTFul services (> CXF 2.7.x - Supports Servlet 3.0 & JAX-RS 2.0 ...
0
votes
0answers
16 views
How can I change receiveTimeout of cxf async client from java?
How can I change receiveTimeout of cxf async client ?
initially it is set in cxf.xml by
<http:client ReceiveTimeout="5000" />
I want to change it in running application from java code, how ...
0
votes
1answer
30 views
How to resolve a Camel-CXF Web Service client ClassNotFoundException
I'm having a painful time resolving a Camel-CXF ClassNotFoundException. I've included a sample program exhibiting the problem
You can find the source code at:
...
0
votes
0answers
33 views
Validation framework in REST web service using CXF
I am new to Web services and Apache CXF.
Can you please let me know whether CXF provides its own validation framework for REST/SOAP to validate incoming request for URL , path or header parameters ...
0
votes
1answer
37 views
make cxf - wsdl2java to use SLF4J
We have a maven project which generates the wsdl client through apache cxf. The main goal is, to have the service wrapper fully generated, so that only the wsdl files have to be maintained under ...
0
votes
1answer
14 views
Apache CFX Schema validation - contract first
I am developing a Web service using Apache CXF and contract first approach with schema validation. Problem is, that validation is not working. There is no error, so it like is not activated. But ...
0
votes
0answers
18 views
Swagger and CXF..some problems using swagger ui and publishing endPoints
I'm trying to publish a cxf rest endPoint adding annotations required to use swagger.
I'm trying to follow the guidelines at
...
0
votes
2answers
30 views
Change host name in endpoint
If I have a webservice, I am on creating it on server side, I have the endpoint, let's say, localhost:port/etc.
Can you please tell me how can I configure the host name, on server side, for example, ...
0
votes
0answers
31 views
Apache CFX OAuth and Spring Security Exception in Glassfish
I have problem. I would like to implement OAuth with Apache CFX 2.75. There is a sample named "oauth" (server and client) directory in "Apache CFX 2.75".[Apache CFX WebSite][1]
I make it run on ...
0
votes
1answer
18 views
CXF Duplicated URL
I'm generating web services using CXF, and deploying them in Websphere Application server. In the page that list the url's of WSDL the links to these WSDL's are appearing duplicated (with the host ...
0
votes
1answer
69 views
CXF 2.7.x Woodstox Compatibility via Maven
In the CXF's documentation it is said that the 2.7.x version requires the Woodstox jars not under the 4.2.0 version to be available in the classpath.
Can somebody, please, suggest Maven dependencies ...
0
votes
0answers
45 views
develop CXF client with p12 certificate
I want to develop a CXF client using a WSDL and a p12 certificate but all my tests are failed.
My certificate is good because when I use SoapUI it works.
Here my code:
public static void main(String ...
0
votes
0answers
19 views
Sharing resources across applications
I have my functionality split up into projects/modules such as dao, services and so on.Now there are two applications one using CXF and another Spring MVC which are separate projects. Building the dao ...
0
votes
1answer
28 views
Enabled MTOM in CXF but cannot upload large file
I am using CXF 2.3.9 to create an upload web service. Here is a fraction of my server bean
@XmlType
public class FileUploader
{
@XmlMimeType("application/octet-stream")
private DataHandler ...
0
votes
1answer
26 views
WS dynamic client and complexType parameter
I'm trying to create dynamic WS Client and I've got some problems with WS operations with ComplexType parameter. Here is the example:
WebService:
@WebMethod
public int testPerson(Person a) {
...
1
vote
1answer
34 views
Apache CXF, generating web services from WSDL file
I am new to SOAP services. I want to write a SOAP service using apache CXF from scratch. I have a WSDL file
http://sms.pswin.com/SOAP/SMS.asmx?WSDL.
I was able to generate the template classes from ...
0
votes
1answer
27 views
Process SOAPAction with CXF
I'm trying to figure out how to process a SOAP request, where the SOAPAction is specified in message header, but NOT in the message body. Following is an example request that I need to process.
...
0
votes
0answers
29 views
Resource interpreted as Document but transferred with MIME type application/xml
I have some RESTful APIs that I am building using Apache CXF. I was using the browser to test my results and this works fine mostly.
However, in some cases I get "Resource interpreted as Document but ...
0
votes
1answer
55 views
What ways to publish a stand alone JavaSE webservice exist?
I need to decide which java se technology can I use now to publish a webservice that takes the less possible development work. I know about 3 different ways:
Embedable OpenEJB (this probably uses an ...
0
votes
1answer
40 views
Need help deploying CXF service to Tomcat
Hi I am following this tutorial here. The code, xml file are exactly the same since I downloaded their code. However, as I copy my WAR file to Tomcat 7 server, I've got the following errors
SEVERE: ...
0
votes
0answers
23 views
Web service client code generation with Apache CXF
I'm building a web service which has a dependency to an API where we store enums, interfaces, beans, etc. CXF generates the wsdl file from the endpoint, the wsdl gets uploaded into the repository, and ...