cxf

How to define a password to wsdl in cxf-maven-plugin

半世苍凉 提交于 2019-12-24 00:27:01
问题 I want to use the cxf-maven-plugin to generate Java code from a WSDL per this doc: http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html The service I am trying to reach is password protected. How do I specify a password? This doesn't seem to be documented. <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${project.build.directory

wsdl2java - WARNING: Default key managers cannot be initialized

混江龙づ霸主 提交于 2019-12-24 00:13:09
问题 While generating java WSDL client I am receiving these errors. Can you please help me to understand these? C:\Users\Administrator\workspace\apache-cxf-3.0.2\bin> wsdl2java https://example.com/V1/HelpService?wsdl *Nov 03, 2014 1:11:20 PM org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers WARNING: Default key managers cannot be initialized: C:\Users\Administrator.keystore (The system cannot find the file specified) Nov 03, 2014 1:11:20 PM org.apache.cxf.configuration.jsse

RESTful Webservice

心已入冬 提交于 2019-12-23 21:24:43
RESTful Webservice 1,REST和RESTFUL是什么? REST ( REpresentational State Transfer ),State Transfer 为 "状态传输" 或 "状态转移 ",Representational 中文有人翻译为"表征"、"具象",合起来就是 "表征状态传输" 或 "具象状态传输" 或 "表述性状态转移" REST是一种架构风格,REST 指的是一组架构约束条件和原则。满足这些约束条件和原则的应用程序或设计就是 RESTful。其核心是面向资源,REST专门针对网络应用设计和开发方式,以降低开发的复杂性,提高系统的可伸缩性。 REST提出设计概念和准则为: 1.网络上的所有事物都可以被抽象为资源(resource) 2.每一个资源都有唯一的资源标识(resource identifier),对资源的操作不会改变这些标识 3.所有的操作都是无状态的 REST简化开发,其架构遵循CRUD原则,该原则告诉我们对于资源(包括网络资源)只需要四种行为:创建,获取,更新和删除就可以完成相关的操作和处理。您可以通过统一资源标识符(Universal Resource Identifier,URI)来识别和定位资源,并且针对这些资源而执行的操作是通过 HTTP 规范定义的。其核心操作只有GET,PUT,POST,DELETE。

With CXF (actually GroovyWS), how do I generate a SOAP header with one child node having a text node?

故事扮演 提交于 2019-12-23 20:21:25
问题 I'm creating a Groovy client for a .net SOAP service that requires a soap header that looks like this: <soap:Header> <HeaderInfo xmlns="http://foo.bar.com/ns"> <token>abc-unique-token</token> </HeaderInfo> </soap:Header> I found the faq for adding headers to CXF messages and it gets me almost there, but not quite. The example they give for option 4 looks like this: List<Header> headers = new ArrayList<Header>() Header header = new Header(new QName("http://foo.bar.com/ns", "HeaderInfo"), "abc

How to consume a SOAP web service in a Mule Flow?

女生的网名这么多〃 提交于 2019-12-23 19:34:04
问题 I am beginning with Mule flows and have seen the I have seen this page http://www.mulesoft.org/documentation/display/MULE3CONCEPTS/Using+Mule+with+Web+Services and http://www.mulesoft.org/documentation/display/MULEWS/Consuming+SOAP+Web+Services+in+Mule this oe too. They were not of much help. Currently, I have a simple mule flow as shown below. Flow definition <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org

CXF - Jaxws issue in Jboss AS 7: org.apache.cxf.staxutils.DepthExceededStaxException: reach the innerElementCountThreshold:50000

99封情书 提交于 2019-12-23 19:30:31
问题 I am facing an exception in Jaxws client while processing a SOAP webservice response, which is huge. This was working perfectly in Jboss 5.1. But I upgraded the Jboss to AS 7 and started getting below error. Caused by: javax.xml.ws.soap.SOAPFaultException: reach the innerElementCountThreshold:50000 at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157) at com.sun.proxy.$Proxy41.getAllJobHistory(Unknown Source) at com.ep.service.impl.StatusSearchServiceImpl.findAll

How can I serve static content from CXF / JAX-RS with my rest API mapped to root context?

半世苍凉 提交于 2019-12-23 18:05:41
问题 I have a rest API using CXF to implement JAX-RS where the REST endpoints are directly on the root context. For example if my root context is localhost:8080/myservice And my endpoints are: localhost:8080/myservice/resource1 localhost:8080/myservice/resource2 But I want to serve static content like this: localhost:8080/myservice/docs/swagger.json In my web.xml I'd like to do something like this: <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet

How can I provide configuration to JAX-RS @Provider annotated ContainerRequestFilter?

假如想象 提交于 2019-12-23 17:42:33
问题 I'm using ContainerRequestFilter filter like this: @NameBinding @Target({TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface SomeFilterAnn {} @SomeFilterAnn @Provider public class SomeFilter implements ContainerRequestFilter { private static final Logger LOG = LoggerFactory.getLogger(SomeFilter.class); @Override public void filter(ContainerRequestContext requestContext) throws IOException { // ... } } It makes possible to bind the filter to rest resources by @SomeFilterAnn

Restful service with CXF and Kerberos authentication

早过忘川 提交于 2019-12-23 17:19:03
问题 Having a hard time trying to protect an existing CXF JAX-RS service with Kerberos authentication. I went through what seems to be the reference documentation : http://cxf.apache.org/docs/jaxrs-kerberos.html but it did not help much. I'm actually trying to configure Tomcat+CXF to reproduce this kind of Apache configuration (which works) : <Directory /var/www/> AuthType Kerberos KrbServiceName HTTP/fqdn@realm Krb5Keytab /path/to/file.keytab Require valid-user </Directory> jaas.conf and krb5

How do you call a web service in Java with only XSD and NO WSDL?

余生颓废 提交于 2019-12-23 17:02:24
问题 I have a web service outside of my company that provides no WSDL for their service. They do provide: a detailed document on how to POST to their service what a SoapEnvelope should look like and even an .xsd that I can use to create the message to put in the SOAP <env:Body></env:Body> of the call. How do you make a SOAP call to a web service without a WSDL (in Java)? I need a tool that can take my JAXB-formatted XML message, wrap it in a SOAP Envelope, and send it as HTTP POST to some web