cxf

Null Pointer Exception in WSDServiceFactory - Apache CXF libs

不问归期 提交于 2019-12-24 17:53:05
问题 I have an problem with my code. The WSDL file was parsed by wsdl2java from apache cxf. Now I'm trying to get connection with web service but still I'm getting null pointer exception. Exception in thread "main" java.lang.NullPointerException at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:92) at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203) at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147) at org.apache.cxf.jaxws.spi

CXF 2.7 give common.ToolException: Non unique body parts error

我只是一个虾纸丫 提交于 2019-12-24 17:46:03
问题 I am using Apache CXF for develop webservice from WSDL but its give an error. org.apache.cxf.tools.common.ToolException: Non unique body parts, operation [ getStation ] and operation [ getStationStatus ] in binding {urn:schemas.nema.org:evse:dir:xsd}StationDirectoryPort have the same body block: {urn:schemas.nema.org:evse:dir:xsd}StationSearchParameter WSI-BP-1.0 R2716 violation: Operation 'getStation' soapBody MUST NOT have namespace attribute at org.apache.cxf.tools.validator.internal

How to make changes in marshalled output in Java web service client

被刻印的时光 ゝ 提交于 2019-12-24 14:16:32
问题 I am trying to interact with a third party web service, who requires me to send a security token as a part of each request. The token is a node by itself, and I acquire it from the response of an initial call. The web service endpoint is dotNet, and I have a Java client. Apparently, the server side expects me to send the security token exactly like it was provided to me: literally the same string: so it won't do if its content has a different size, order, etc. So, in SoapUI, everything works

Apache CXF - How to register a SOAP service without Spring?

北城余情 提交于 2019-12-24 14:12:45
问题 I need to register a SOAP service without Spring configuration. I know it it is possible to do that in case of RESTFUL service (by using the CXFNonSpringJaxrsServlet and configuring in web.xml) but how could I use something similar for a SOAP service? This is my original applicationContext.xml: <?xml version="1.0" encoding="UTF-8"?> <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

Camel - How to set CXF Client Timeout

血红的双手。 提交于 2019-12-24 13:46:01
问题 I have a bundle on Fuse ESB 7. It routes a message to a web service using CXF like this: from("vm:myEndPoint") .to("cxf:http://remotews:8989/CreateUser/UserBean?serviceClass=com.co.Srvcl") Timeout for this connection is 30 seconds by default. Question is how can I decrease the timeout value on the client side? From what I have understood, this timeout can be set on the CXF web service (WS producer side) as below: <http-conf:conduit name="{http://service.co.com}MyServiceBean.http-conduit">

Apache Camel - Receiving SOAP response with empty body

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 13:33:55
问题 Created SOAP service using Apache camel 2.15.3 and everything works fine, even the response SOAP body is valid. Camel 2.15.3 is dependent on cxf 3.0.6 But when i updated cxf-core to 3.1.3, everything works fine, except the SOAP response body is EMPTY. There is no error logs, and the server starts up normally. am i missing some dependencies ? POM.xml <properties> <log4j.version>1.2.17</log4j.version> <camel.version>2.15.3</camel.version> <spring.version>4.1.6.RELEASE</spring.version> <cxf

Generate Wadl for apache cxf

江枫思渺然 提交于 2019-12-24 12:14:28
问题 Is there any way to automatically generate wadl file for cxf? Iam having a class that takes all requests like @Path("/") and then redirect to its implementation class. I want to generate wadl for it. Is this possible? I have done this http://{localhost}:8080/api/?_wadl but Iam getting <resources base="http://{localhost}:8080/api"> <resource path="/"> <!-- Dynamic subresource --> <resource path="/"/> </resource> </resources> 回答1: I don't think that is possible. What you did is dynamic, cxf

cxf-codegen-plugin does not comply with cxf ValidationFeature

自闭症网瘾萝莉.ら 提交于 2019-12-24 09:25:54
问题 According to ValidationFeature documentation in order for the validation to happen the operations input and output bindings must be annotated with @Valid However, the webservice interface generated by cxf-codegen-plugin does not have these annotations, and I don't seem to find a command line argument or a plugin that allows to add them. The @Valid annotations cannot be put in the implementation of the webservice interface without violating Liskov substitution principle: the reference

Disable CXF logging for one web service

五迷三道 提交于 2019-12-24 09:25:12
问题 In my application I would like to log request and response with business logic. Application does some backend logic with SOAP communication and this is what I want to log. Unfornatly in this same application I must serve data ( avg. is 4 request/s) Let's say this service name is PlatformDataService. How to turn off cxf logging for only one web service? Enviorment: JDK 8 cxf 2.7.14 AS : Jboss EAP 6.4 I turn on login on server by: add logger org.apache.cxf INFO and system property org.apache

Apache Camel : Control over route startup

南笙酒味 提交于 2019-12-24 09:24:17
问题 i have a restful webservice configured using cxf and camel. My config xml is : <jaxrs:server id="restContainer" address="/" staticSubresourceResolution="true"> <jaxrs:serviceBeans> <ref bean="FooBar" /> </jaxrs:serviceBeans> <jaxrs:providers> <bean class="org.apache.cxf.jaxrs.provider.JSONProvider"> <property name="dropRootElement" value="true" /> <property name="supportUnwrapped" value="true" /> </jaxrs:providers> <camelcxf:rsServer id="rsServer" address="/" serviceClass="com.camel.example