cxf

IP-addresses Log file by all requests in MULE CE 3.3.0?

久未见 提交于 2019-12-23 04:42:18
问题 in MULE CE 3.3.0 I want to implement this process: 1- Post- office has a service for giving postal-code to clients. So post-office creates a WSDL-file for its service. 2- Here, our company is a connector between post-office and clients. Our company using mule and create another WSDL file based on post-office’s WSDL file and published out the WSDL for client usage. 3- Company-A and Company-B, get the WSDL-file URL and for instance in My-eclipse IDE or any other IDEs create a portlet and deploy

Annotating CXF (wsdl2java) generated package

谁说我不能喝 提交于 2019-12-23 04:30:31
问题 I need to add package level annotation (XmlJavaTypeAdapters type adapter). The problem is that when I run wsdl2java it generates package-info.java file for that package. When I try to add my own package-info.java I get error: "the type package-ingo is already defined". Is there a way to inject my annotation to package-info.java?? Maybe any other ideas? thanks 回答1: After some research I used external mapping file. For all that have similar problem to mine I have described below what I have

How to enable TLS/SSL in java, Spring / CXF for Web Service?

a 夏天 提交于 2019-12-23 04:16:06
问题 I have a simple WebService defined in Spring config: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:wsa="http://cxf.apache.org/ws/addressing" xmlns:http="http://cxf.apache.org/transports/http/configuration" xmlns:wsrm-policy="http://schemas.xmlsoap.org/ws/2005/02/rm/policy" xmlns:wsrm-mgr="http://cxf.apache.org/ws/rm/manager" xmlns:httpj=

CXF throws None of the policy alternatives can be satisfied

蹲街弑〆低调 提交于 2019-12-23 03:52:14
问题 I am trying to write Java client for .NET web service using CXF but when calling "client.getConduit()", it throws Exception - org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied. Please help! Here is the code snippet- ServiceClass service = new ServiceClass(); PortClass port = service.getPort(ServiceClass.class); Client client = ClientProxy.getClient(port); HTTPConduit httpConduit = (HTTPConduit) client.getConduit(); final HTTPClientPolicy

NullPointerException while generating web service with Apache CXF

依然范特西╮ 提交于 2019-12-23 02:25:32
问题 I want to create a web service and using Apache CXF 2.7.12. My jdk version is 1.8.0_20. While generating WSDL file in eclipse got this exception. java.lang.NullPointerException at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187) at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:141) at org.apache.cxf.tools.java2wsdl.generator.wsdl11.BeanGenerator.generateAndCompile(BeanGenerator.java:91) at org.apache.cxf.tools.java2wsdl.generator.wsdl11.BeanGenerator

Export source code comments to the WSDL using CXF and maven?

别等时光非礼了梦想. 提交于 2019-12-23 01:54:22
问题 Like the title says: Is it possible to export my javadoc comments for web service method parameters into the wsdl? We're using CXF and the java2ws goal with maven to generate the wsdl from source code. 回答1: You can use the @WSDLDocumentationCollection annotation to attach multiple @WSDLDocumentation annotations to a single method (with different placements) but you can't use this to go much deeper than placing documentation on single operations of a port, because that's where it ceases to be

How to set receiveTimeout and connection timeout for cxfEndpoint

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 01:36:10
问题 I am trying to set receiveTimeout and connection timeout for cxfEndpoint in below code .. I got so many spring dsl related answer but i am using camel dsl specifically. I am trying to set receiveTimeout and connection timeout for cxfEndpoint in below code .. I got so many spring dsl related answer but i am using camel dsl specifically. I am trying to set receiveTimeout and connection timeout for cxfEndpoint in below code .. I got so many spring dsl related answer but i am using camel dsl

Parsing String[] Request Parameter through REST with Apache CXF

∥☆過路亽.° 提交于 2019-12-22 17:55:30
问题 I'm currently trying to develop a simple proof of concept for a REST application using CXF 2.6.4. I'm taking the non-spring approach. I'm using JBoss AS 7.1.1 Final as my web server. The following is my web service class: package restful.webservice; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import restful.entity.ControllerVersion; @Produces(MediaType.APPLICATION_JSON)

how to run cxf jax-ws without build-in jetty (use tomcat instead)

眉间皱痕 提交于 2019-12-22 13:59:45
问题 every time when i run with the following inside tomcat, cxf build-in jetty is up and serving the request. <jaxws:endpoint id="wsServer" implementor="a.b.c.ServiceImpl" address="http://localhost:8080/ws"> </jaxws:endpoint> is there any way we have tomcat receiving the request and delegating to cxf? 回答1: UPDATE You can avoid using embedded Jetty by following this article: Use org.apache.cxf.transport.servlet.CXFServlet in your web.xml and don't forget to import META-INF/cxf/cxf-servlet.xml.

JAVA - CXF WS-security “A security error was encountered when verifying the message”

血红的双手。 提交于 2019-12-22 12:22:12
问题 Sorry for this question, it can appear recurrent by I'm completely blocked. I'm trying to implement a Web Service Server on top of CXF framework. Jax-ws is very helpful to handle a web service, it's easy to implement it. But, the problem come when you want to introduce security . To handle security in implement the following source code : EndpointImpl jaxWsEndpoint = (EndpointImpl) Endpoint.publish(endPointAddress, httpWebService); inProps.put("action", "UsernameToken Timestamp"); inProps.put