cxf

passwordCallback in CXF

别等时光非礼了梦想. 提交于 2019-12-12 19:53:57
问题 I develop a webservice client for an existing webservice. I am using Apache CXF 2.2. The service requires security with Username and plain text password, which I configured like this: <bean id="myPasswordCallback" class="com.kraemer_imd.mobilized.m2m_adapter.ClientPasswordCallback"/> <jaxws:client id="m2mClientService" serviceClass="de.vodafone.easypu.ws.EasyPUOrderServicePortType" address="http://m2m.vodafone.de/speasy/services/EasyPUOrderService" bindingId="http://www.w3.org/2003/05/soap

CXF JAXB JAXBEncoderDecoder unmarshalling error : unexpected element when having qualified elements

早过忘川 提交于 2019-12-12 19:51:10
问题 I have the following problem and cannot find a solution: The WSDL has elementFormDefault="qualified" , in the response that I receive in my CXF client all the elements are prefixed with namespace but JAXB throws an exception org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"unm:ENTSCWS", local:"searchReturn"). Expected elements are at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:661) at org.apache.cxf.jaxb.JAXBEncoderDecoder

How to create enveloped signatures in SOAP with CXF

ⅰ亾dé卋堺 提交于 2019-12-12 18:18:21
问题 I have a spec asking for a SOAP body that looks like the example below. Based on my understanding of JAX-RS (see this page) this involves creating an "enveloped signature" of the body, but I'm not finding documentation on created enveloped signatures for JAX-WS. All my attempts to specify individual parts to sign cause additional xml to appear in the header, but I'm unable determine how to sign a part of the body and have the signature appear within the body. Also please note that the

Eclipse ECF Vs Apache CXF

允我心安 提交于 2019-12-12 16:43:20
问题 I'm trying to come up with an architecture which allows me to have OSGi bundles distributed remotely which get discovered dynamically etc. After some time spent looking at what's out there I am oriented at using the following: Apache CXF (as OSGi Remote Services implementation) Spring Dynamic Modules JAX-WS Tools Component for Eclipse One of the things I was trying to understand is where projects like Eclipse ECF and Riena stand in this regard. Are they alternatives to Apache CXF? (In this

Disabling Multipart Caching in CXF jax-rs

不羁的心 提交于 2019-12-12 16:05:37
问题 I posted this question to the CXF list, without any luck. So here we go. I am trying to upload large files to a remote server (think of them virtual machine disks). So I have a restful service that accepts upload requests. The handler for the upload looks like: @POST @Consumes(MediaType.MULTIPART_FORM_DATA) @Path("/doupload") public Response receiveStream(MultipartBody multipart) { List<Attachment> allAttachments = body.getAllAttachments(); Attachment att = null; for (Attachment b :

Adding Soap Action Header using Java

余生颓废 提交于 2019-12-12 16:01:38
问题 How do I add soap action header in java. I tested the service in SoapUI using <a:Action s:mustUnderstand="1">MyServiceName</a:Action> in Header and it works fine as per this post SOAP Action mismatch error while testing a WCF service with SoapUI . Without this header I get The SOAP action specified on the message, '', does not match the HTTP SOAP Action, error which is the same error I get from my Java client application. PS: I used Apache CXF to generate the stubs from the wsdl. I also tried

unable to find cxf-manifest.jar in cxf_home/lib

核能气质少年 提交于 2019-12-12 15:57:06
问题 I have generated wsdl file from tomcat. when i try to generate client stub from the wsdl using apache cxf 2.5.2 i got the unable to finde cxf-manifest.jar in cxf_home/lib. I already set environment variable for java_home, tomcat_home, cxf_home and cxf_jar. kindly help me to solve this problem. this is the commend I have used in the command prompt ,. " wsdl2java -client -verbose http://localhost:8080/Service/Uploadfile?wsdl" 回答1: Be sure you downloaded the BINARY distribution, not the SOURCE

How to set existing Id as primary key in HyperJaxb3 Cxf project, (code generation from wsdl)?

不羁的心 提交于 2019-12-12 15:54:07
问题 I am trying to redifine primary key to existing IDs, but with Apache CXF plugin generation from wsdl file. wsdl file is here - https://api.mindbodyonline.com/0_5/ClientService.asmx?wsdl my pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>MindBodyCXF</groupId> <artifactId>CXFSpring<

TomEE + CXF configuration reference

混江龙づ霸主 提交于 2019-12-12 15:48:31
问题 So I was trying to find any reference documentation or non-trivial examples for using the three. The 'best' I found was: TomEE/OpenEJB JAXRS refactoring Some tips for TomEE and JAXRS config The TomEE Documentation doesn't list Jax-RS at all, and I was only able to find some examples consisting of a single endpoint class Where can I find a comprehensive reference of configuration options? The main problem is that I'd know how to do most of the things I want when using standalone CXF, but I

FIQL SearchContext throws NullPointerException when injected with @Context

廉价感情. 提交于 2019-12-12 12:26:31
问题 I am trying to implement a simple Rest service using FIQL but my code throws NullPointerException at the point where I inject the SearchContext with the @Context . Here is my code My service class: import java.util.*; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import org.apache.cxf.jaxrs.ext.search.SearchCondition; import org.apache.cxf.jaxrs.ext.search.SearchContext; @Path("/search") public