cxf

org.jboss.as.server.deployment.DeploymentUnitProcessingException: Apache CXF library detected in ws endpoint deployment

邮差的信 提交于 2020-01-14 13:07:07
问题 I am using Eclipse Juno and WildFly 8.2 and try to deploy soap web services with ws-security. This is my ref site. https://docs.jboss.org/author/display/JBWS/WS-Security#WS-Security-Authenticationandauthorization Deployment is ok! But the problem seems to be the client of Eclipse. I made some jsp codes with eclipse ide <%@ page import="javax.xml.ws.BindingProvider"%> <%@ page import="javax.xml.namespace.QName"%> <%@ page import="java.net.URL"%> <%@ page import="javax.xml.ws.Service"%> <%@

org.jboss.as.server.deployment.DeploymentUnitProcessingException: Apache CXF library detected in ws endpoint deployment

喜欢而已 提交于 2020-01-14 13:06:31
问题 I am using Eclipse Juno and WildFly 8.2 and try to deploy soap web services with ws-security. This is my ref site. https://docs.jboss.org/author/display/JBWS/WS-Security#WS-Security-Authenticationandauthorization Deployment is ok! But the problem seems to be the client of Eclipse. I made some jsp codes with eclipse ide <%@ page import="javax.xml.ws.BindingProvider"%> <%@ page import="javax.xml.namespace.QName"%> <%@ page import="java.net.URL"%> <%@ page import="javax.xml.ws.Service"%> <%@

Is there a way to strip annotations when using the cxf-codegen-plugin for generating sources?

♀尐吖头ヾ 提交于 2020-01-14 06:12:49
问题 I'm using the cxf-codegen-plugin to generate some classes from a WSDL. After the sources are generated, a bunch of beans get deleted (we don't need them, just the service interfaces), but there is an @XmlSeeAlso annotation in the generated source that references some of these deleted classes. We don't need the @XmlSeeAlso annotation at all, is there a way to tell the cxf-codegen-plugin to exclude certain annotations when generating sources? 回答1: I solved this by adding a tag to a maven-antrun

“*Certificate not found* (from client)” when calling Web Service that requires signing

送分小仙女□ 提交于 2020-01-14 06:08:23
问题 I have a peculiar problem when calling a web service that expects the message to be signed using WS-Security. If I call using my client application (using Apache CXF) I get a HTTP 500 error message: *Certificate not found* (from client) while if I call the same service using SoapUI, configured for signing with the same key and key-store, it works as expected. I noticed that the <KeyInfo> part of the call differs between CXF and SoapUI. With CXF (as below) the KeyInfo is a lot more detailed

How to inject ResourceInfo in javax.servlet.Filter

試著忘記壹切 提交于 2020-01-14 04:19:09
问题 I am trying to register time metrics based on the service method but not able to inject ResourceInfo. I want to write some generic logic to register the time based on the service. Here is my code: import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.annotation.WebFilter; import javax.ws

CXF code first webservice is creating wsdl with xs:element form=“unqualified” not picking up namespace

安稳与你 提交于 2020-01-14 04:06:12
问题 I'm creating webservices with CXF using the code first approach. I want to use namespaces, and therefore elementFormDefault is set to true . The WSDL is fine, except for the elements embedded in the complextypes, i get following xs:element having a form="unqualified" tag. But I want to get rid of the form=unqualified tag <xs:element form="unqualified" name="LikeSearch" type="xs:boolean"/> My package-info.java looks like this: @javax.xml.bind.annotation.XmlSchema(namespace="http://registry

Spring boot 2.x基于cxf发布webservice服务

早过忘川 提交于 2020-01-13 16:57:46
一. pom.xml添加相关依赖 <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-spring-boot-starter-jaxws</artifactId> <version>3.2.5</version> </dependency> 二 开发WebService接口类和接口对应的实现类 添加interface package com.dhcens.platform.service; import org.springframework.stereotype.Component; import javax.jws.WebMethod; import javax.jws.WebService; /** * @author zhibao */ @WebService(name = "QueryWebService", // 暴露服务名称 targetNamespace = "http://dhcens.com.cn/"// 命名空间,一般是接口的包名倒序 ) @Component public interface QueryDataService { @WebMethod public String queryData(String paramters); } 添加实现类 package com

jaxws-api 2.2 not loaded in maven build

允我心安 提交于 2020-01-13 10:53:28
问题 I have generated Java code with Apache CXF tool wsdl2java. In the comments of my service it says that I should endorse Jaxws API 2.2 but don't know what it means. In my Maven POM I have this: <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.2</version> </dependency> On build, I get these errors in Maven: cannot find symbol symbol : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) I have checked JAX-WS API 2

jaxws-api 2.2 not loaded in maven build

巧了我就是萌 提交于 2020-01-13 10:53:09
问题 I have generated Java code with Apache CXF tool wsdl2java. In the comments of my service it says that I should endorse Jaxws API 2.2 but don't know what it means. In my Maven POM I have this: <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.2</version> </dependency> On build, I get these errors in Maven: cannot find symbol symbol : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) I have checked JAX-WS API 2

Sign and Encrypt SOAP Messages with Apache CXF

╄→尐↘猪︶ㄣ 提交于 2020-01-13 05:17:30
问题 I'm trying to write a "Secure Hello World" web service using Apache CXF also; I should note that I'm kind of new to Java and WS-* stuff. Basically, what I want to do is a hello-world web service with soap messages to and from this web service signed and encrypted using x.509 certificate(s) . I have already read the tutorial on Apache CXF site about WS-Security but; I want to use WS-SecurityPolicy instead of Interceptors. Can anyone point me in the right direction? 回答1: Here's a blog with