cxf-codegen-plugin

I would like to add @XmlRoot annotation on CXF codegen

╄→尐↘猪︶ㄣ 提交于 2020-08-19 06:41:28
问题 I have a WSDL file which contains the following entry: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="urn:CP_Ablakido" xmlns:s0="urn:CP_Ablakido" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <xsd:schema elementFormDefault="qualified" targetNamespace="urn:CP_Ablakido"> <xsd:element name="GetList_11"

Specifying Package Name When Using Maven to Generate Java from WSDL

江枫思渺然 提交于 2020-02-01 00:32:45
问题 I am using a maven script to generate the Java code I need to communicate with a WCF service. I have gotten communication working and am ready to integrate my maven script, and the code it generates, with the rest of the java code from the project. However, I can't get maven to generate the code with the correct package name I want. From what I've read online I should be using the tag, and I've seen two possible places where this goes. I've included the segment of the script I think these

Make cxf-codegen-plugin generated class persistence capable

混江龙づ霸主 提交于 2019-12-25 11:05:32
问题 I have a Maven jar project that creates a SOAP client using cxf-codegen-plugin. In an another Maven project using that client it is simply needed to persist instance of a data class (some soap response) - generated by cxf-codegen-plugin - with JPA (currently using OpenJPA) . It might be possible with some configuration stuff - for example - after each client source code generation to add @Entity annotation to data class before compiling/enhancing and installing the client jar but I'd like to

CXF service proxies cause NullPointerException when passed null array

寵の児 提交于 2019-12-11 09:59:44
问题 Via using CXF 2.7.11 via Maven with the cxf-java2ws-plugin and cxf-codegen-plugin, a WSDL gets generated from a web service class and from that WSDL proxy classes are generated which then get used in various clients to connect to the actual, live server. There is a problem with these generated service proxies in that they cause a NullPointerException when passed a null array. The web service is something like this: public class MyService { public SomeResult someMethod(String param, String[]

No signature token Java CXF Client

坚强是说给别人听的谎言 提交于 2019-12-11 02:04:27
问题 I'm trying to buil a Java client with Apache-CXF-2.7.11 that communicates with .NET WCF services. My Java client code is following, the client were autogenerating whith the IDE, only the credentials i've copied from the CXF docs. public static void main(String args[]) throws java.lang.Exception { URL wsdlURL = Reportes.WSDL_LOCATION; if (args.length > 0 && args[0] != null && !"".equals(args[0])) { File wsdlFile = new File(args[0]); try { if (wsdlFile.exists()) { wsdlURL = wsdlFile.toURI()

Packaging WSDL clients in JARs with Maven and cxf-codegen-plugin

℡╲_俬逩灬. 提交于 2019-12-10 12:19:47
问题 I've got a maven project that will consume a number of webservices. The application will be packaged as a WAR. So far the clients' code has been generated with cxf-codegen-plugin , in the generate-sources phase. By default, generated sources are placed into target/generated-sources/cxf , and after compile , they are compiled and mixed up with the application classes in target/classes . Both the generated and application classes can share the first level packages. I'd like each of the clients

cxf-codegen-plugin port to Gradle

坚强是说给别人听的谎言 提交于 2019-12-10 05:15:17
问题 I'm trying to replicate what this plug-in does in Gradle. If I execute: ./wsdl2java -encoding UTF-8 -d /src/target/generated-sources/cxf -fe jaxws21 -sn UserSoapServicePorts -faultSerialVersionUID 1 -xjc-Xannotate -p http:... -p urn:... -p urn:... -p urn:... -p urn:h... -p urn:... -p urn:... -p urn:... -verbose /src/xmlTemp/user-soap-v1.wsdl ...then I get: an 22, 2016 3:51:05 PM org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped INFO: Operation {urn:stuff:wsdl:person:v1}doSomething

cxf-codegen-plugin port to Gradle

女生的网名这么多〃 提交于 2019-12-05 08:54:09
I'm trying to replicate what this plug-in does in Gradle. If I execute: ./wsdl2java -encoding UTF-8 -d /src/target/generated-sources/cxf -fe jaxws21 -sn UserSoapServicePorts -faultSerialVersionUID 1 -xjc-Xannotate -p http:... -p urn:... -p urn:... -p urn:... -p urn:h... -p urn:... -p urn:... -p urn:... -verbose /src/xmlTemp/user-soap-v1.wsdl ...then I get: an 22, 2016 3:51:05 PM org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped INFO: Operation {urn:stuff:wsdl:person:v1}doSomething cannot be unwrapped, input message must reference global element declaration with same localname as

CXF codegen maven plugin doesn't work OpenJDK 11

∥☆過路亽.° 提交于 2019-12-04 18:56:50
问题 I have been working with JDK 9 & 10 and CXF codegen plugin 3.2.5 and 3.2.6 with no problems but, today I'm trying to update my codebase from Oracle JDK 10 to OpenJDK 11 build 28, but I'm always getting the same error: [INFO] Error occurred during initialization of boot layer [INFO] java.lang.module.FindException: Module java.xml.ws not found [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ---------------------------------------------