cxf-client

How to set the Host header in JAX-RS / Apache CXF

自古美人都是妖i 提交于 2021-02-11 14:46:25
问题 I am trying to access a service over HTTPS but due to restrictive network settings I am trying to make the request through an ssh tunnel. I create the tunnel with a command like: ssh -L 9443:my-service.com:443 sdt-jump-server The service is only available via HTTPS, its hosted with a self-signed certificate, and it is behind a load-balancer that uses either the hostname or an explicit Host header to route incoming requests to the appropriate backend service. I am able to invoke the endpoint

Set EXPAND_XOP_INCLUDE for WSS4JOutInterceptor in apache cxf 3.0.X

久未见 提交于 2020-03-18 10:01:20
问题 i want to avoid the automatic generation of the xop included from apache cxf (version 3.0.4) when set MTOM ENABLE to true how can i do that? for example, i have a soap service . it support the mtom but not the xop include annotation , so it refused my request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/> <soap:Body> <ns2:receiveSip xmlns:ns2="http://sip.receive.core.iris.eng.it" xmlns:xmime

Can't get cxf and cxf-client to work at the same time grails

喜欢而已 提交于 2019-12-11 11:18:37
问题 I have a problem when I use both cxf and cxf-client together. The cxf says that it can't find any services. When I comment the configuration for the cxf-client the cxf finds the services. The configuration for the servlet is the standard configuration. The configuration for the client made from EU TIN service. The two plugins works find seperately but not together. Have anyone find a solution for this problem ? Using grails version 2.3.7 Cxf version 1.1.4 cxf-client 1.6.1 回答1: I managed to

CXF-Proxy Client and @Suspended AsyncResponse

核能气质少年 提交于 2019-12-11 09:24:38
问题 I recently learned that with JAX-RS 2.0 long running service endpoints can make use of the @Suspended annotation and AsyncResponse to free resources for incoming requests while the actual work is done in the background. All client examples - at least the ones I found so far - are either calling such endpoints directly (plain http-call) or make use of the JAX-RS client API. However I was not able to figure out how to use this with the proxy-based API. Given a REST endpoint that uses @Suspended

How do you get logging from the CXF Rest Client?

感情迁移 提交于 2019-12-02 03:17:31
问题 This took me quite a long time to figure out. I'm asking this question so I can answer it for others: How do you get useful logging info from the CXF Rest Client? EG: The url, params, payload, response, etc. Note: This question already exists but it's asking about CXF and Resteasy. I only want the answer for CXF: Logging in CXF and RestEasy clients 回答1: Here's how you do it with CXF: import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; import org.apache.cxf.interceptor

How do you get logging from the CXF Rest Client?

给你一囗甜甜゛ 提交于 2019-12-02 01:50:40
This took me quite a long time to figure out. I'm asking this question so I can answer it for others: How do you get useful logging info from the CXF Rest Client? EG: The url, params, payload, response, etc. Note: This question already exists but it's asking about CXF and Resteasy. I only want the answer for CXF: Logging in CXF and RestEasy clients Daniel Kaplan Here's how you do it with CXF: import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; import org.apache.cxf.interceptor.LoggingInInterceptor; import org.apache.cxf.interceptor.LoggingOutInterceptor; import org.apache.cxf