cxf

Java SOAP-WS client horror

∥☆過路亽.° 提交于 2019-12-25 10:25:26
问题 It's looking amazingly difficult to use any of the most used soap services framework (at least those I've tried) and come up with this kind of soap request <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bencws.foobar.com/doc/2008-01-01/" xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"> <soap:Header xmlns:foo="http://safe.foobar.com/doc/2007-01-01/" xmlns:oof="http://www.w3.org/2005/08/addressing"> <foo:AccessKeyId>0PKRFZMV7GRJ11N791R2</foo

InjectionUtils can not access a member of class DateTimeZoneBuilder$PrecalculatedZone

偶尔善良 提交于 2019-12-25 09:41:42
问题 I am trying to send a post request with cxf implementation. But I am getting java.lang.IllegalAccessException: Class org.apache.cxf.jaxrs.utils.InjectionUtils can not access a member of class org.joda.time.tz.DateTimeZoneBuilder$PrecalculatedZone with modifiers "public" My method interface is : @GET @Path("history") HistoryResult getHistory(@Valid @QueryParam("") HistoryParameters historyParameters) HistoryParameters has two joda time LocalDate : public class HistoryParameters { @NotNull

How to prevent namespace wrapper tags in SOAP wsdl?

给你一囗甜甜゛ 提交于 2019-12-25 07:19:16
问题 I created a wsdl webservice with cxf . Problem: both my request and response contain an extra wrapper element with the namespace. Question: is it possible to prevent this wrapper element? Because for me it adds no value, and is just an additional element when others would use my webservice. For example I'd like to reduce the <com:MyNameOperation><MyNameReq> hierarchie in the following example to be just one element, not two nested elements. @WebService(name = "myname", serviceName = "myname",

Apache CXF Webservice failing on AJAX call

╄→гoц情女王★ 提交于 2019-12-25 06:13:22
问题 We have developed a webservice based on Apache CXF . This is working fine when accessed normally that is using APIGEE or by using a JaxWsProxyFactoryBean (A clinet for Apache CXF ). But when I tried to access this by providing the SOAP Address through AJAX call it is giving me the following exception: INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: No such operation: (HTTP GET PATH_INFO: /tata-ws-1.0/TataWeb) at org.apache.cxf.interceptor

JAX-RS rest services working fine. How to add JSP pages? Stuck with configuration

你离开我真会死。 提交于 2019-12-25 05:24:10
问题 I have some rest services running already, using cxf-rt-frontend-jaxrs 2.7.7 /myservice/customers /myservice/items My rest service provides 2 endpoints: @Component public class CustomerService { @GET @Path("customers") @Produces({MediaType.APPLICATION_JSON}) public ... getCustomers() { ... } @GET @Path("items") @Produces({MediaType.APPLICATION_JSON}) public ... getItems() { ... } } This works great, and now I would like to add some jsp pages. I've read about Redirecting requests and serving

XJC episode with maven

馋奶兔 提交于 2019-12-25 04:21:12
问题 How can I generate an episode with maven? I now get an error message: an operand is missing (org.apache.cxf:cxf-xjc-plugin:2.4.0:xsdtojava:generate-sources:generate-sources) Here my plugin: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-xjc-plugin</artifactId> <version>2.4.0</version> <configuration> <extensions> <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:2.4.0</extension> </extensions> </configuration> <executions> <execution> <id>generate-sources</id> <phase>generate

Enforce Two-Way SSL in Java CXF clients

佐手、 提交于 2019-12-25 03:37:19
问题 Two-Way SSL - or mutual authentication - is typically dictated in HTTPS by the server. For example, this tutorial explains how to set up WildFly application server to require webservice clients to present a certificate during communication. However, in our case we need to enforce Two-Way SSL on the client side. That means our client is configured with a client certificate so that it can supply the certificate during handshake. If a server we are connecting to does not ask for the certificate,

I need to be able to clone a SOAPMessage object, but it doesn't implement Clonable. How can I do this?

笑着哭i 提交于 2019-12-25 03:33:07
问题 I have a "skeleton" SOAPMessage object, which will be the starting point of other SOAPMessages. I want to be able to clone the base SOAPMessage, so I can then fill it with the information needed and send it, and do this every time I need to send a SOAPMessage. How can I clone a SOAPMessage, since it doesn't implement Clonable? I've been looking for other frameworks and found Apache CXF, which has a SoapMessage class that is Clonable. However, I can't use it because the WSDL I'm using is old

application-context Spring configuration file not found

微笑、不失礼 提交于 2019-12-25 02:26:09
问题 I'd like to create a simple soap webservice with Spring and CXF . But my application-context.xml configuration file is not found: webapp/WEB-INF/web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app ...> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:application-context.xml</param-value> </context-param> <servlet> <servlet-name>CXFServlet<

Web Service Call Via CXF Gives Null Parameters

旧街凉风 提交于 2019-12-25 02:23:01
问题 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). This passes over the parameters as I expect. Anyone have any ideas what's going wrong? The service interface: @WebService public interface IShortlistService { public