wsdl2java Questions

2

I'm able to use generate classes with a relative wsdlLocation when I specify each file, such as <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/resources/sample.wsdl</w...
Fleabane asked 4/10, 2016 at 23:0

2

Solved

Imagine this scenario. I have a wsdl file with namespace a/b/c and it imports another wsdl whose namespace is m/n/o. Unfortunately, both of them have same ComplexTypes XYZ defined in them. Now, wh...
Peru asked 26/9, 2012 at 15:36

1

I create code from a wsdl based on the cxf-codegen-plugin. I use additional bindings to change the package use Date instead of XmlGregorianCalender this works fine with version 3.5.5 When I switc...
Cobbs asked 23/2, 2023 at 11:43

3

Migrating from Java 8 to Java 11. Updated cxf-codegen-plugin from version 3.2.0 to 3.3.6. Plugin still generates Java stubs from wsdl files using packages from javax.jws.* instead of from jakarta.j...
Bioscope asked 12/8, 2020 at 20:16

1

I'm currently using the Apache CXF codegen plugin (version 3.1.1) for Maven to generate sources from our client-provided WSDL. I have the wsdl2java goal specified, and I want to generate code for m...
Ayah asked 31/8, 2015 at 18:17

6

Solved

I am using Apache CXF cxf-codegen-plugin Maven plugin to generate sources from WSDL file. Problem is that I get JAXBElement<String> generated instead of String. I have added the jaxb-bindings...
Nupercaine asked 20/9, 2012 at 8:24

3

Trying to build a demo contract-first service from a sample WSDL (using CXF 2.7.1): <?xml version='1.0' encoding='UTF-8'?> <wsdl:definitions name="OrderProcessService" targetNamespace="ht...
Purusha asked 9/1, 2013 at 19:18

10

Solved

When I generate a webservice client using wsdl2java from CXF (which generates something similar to wsimport), via maven, my services starts with codes like this: @WebServiceClient(name = "StatusMa...
Northing asked 15/12, 2010 at 21:38

4

I am completely new to web service stuff. I have to write rest web service client for a web service. The web service runs fine on SoapUI. WSDL file for the URL is provided to me. But when I add th...
Ichinomiya asked 19/9, 2013 at 15:2

6

I have a JavaFX application I was migrating from Java 8 to Java 11. It has been a rough transition but most of the application is working except for the web service. It keeps giving me the followin...
Farinose asked 10/10, 2019 at 9:4

3

Solved

I have a WSDL file weatherservice.wsdl and I am trying to generate binding for this WSDL using xjc. How do I do this using xjc? I did not find any command line args to do it from xjc. xjc -p com -...
Rete asked 26/3, 2015 at 23:36

2

Solved

I'm attempting to upgrade a service to Java 11. We currently use wsdl2java (Apache CXF) to generate source code based on WSDLs. I'm doing this all via Maven. The source files generate properly ba...
Vedis asked 2/8, 2019 at 0:19

3

I'm struggling to fix this issue since 2013... I'm using Windows 7. [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.1.2:wsdl2java (generate-sources) on project service-data-...
Diagenesis asked 4/9, 2015 at 12:55

4

Solved

I am a client to a SOAP service I do not control (implemented in .NET). The service provides a WSDL. I use Apache CXF to generate the java client from the WSDL (specifically, I am using the cxf-cod...
Gentlemanatarms asked 4/9, 2014 at 22:56

2

Solved

Running wsdl2java from CXF 2.7.5 for something like <xsd:complexType name="baseTaxParametersEnhanced"> <xsd:annotation> <xsd:documentation> Some type comment. </xsd:docume...
Cirrate asked 18/10, 2013 at 7:32

4

I configured the axistools-maven-plugin as follows: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>axistools-maven-plugin</artifactId> <version>1....
Yellowgreen asked 17/10, 2011 at 12:8

1

Solved

Trying to add an apache-cxf bundle in my application.But getting the following error while running the application Failed to instantiate [org.springframework.ws.server.endpoint.mapping.PayloadRo...
Ghiberti asked 15/5, 2019 at 10:52

3

Solved

I found this great tip about adding -fe jaxws21 to the wsdl2java command to have it generate jaxws 2.1 compliant code instead of 2.2, but Maven's pom.xml doesn't seem to like this addition when pla...
Bulwark asked 31/12, 2012 at 17:42

8

Solved

Is there any alternative to Axis2? Or the way to make it work (different data binding, for example)? Retrieving document at '...'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGene...
Saturate asked 31/8, 2009 at 13:30

2

We are integrating a third party SOAP web services in our application. The WSDL is used with SOAPUI tool, where sample requests and responses worked fine. When we try to integrate with apache Axis...
Arsenical asked 25/1, 2010 at 23:7

1

I'm unable to use cxf:cxf-codegen-plugin to generate required sources from WSDL due to the following exception: [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.1.2:wsdl2java (g...
Emmetropia asked 27/4, 2016 at 17:16

1

Solved

I work on a web application that calls multiple web service clients from within its code. Each web service has some common namespaces, however I am currently mapping these namespaces to different ...
Homestead asked 14/8, 2018 at 19:41

4

Solved

Is ther any equivalent to wsdl2java that will take a WSDL file and generate scala stubs for the server and/or client? I googled, but either there isn't or my google-fu is weak.
Jesselton asked 17/6, 2011 at 16:10

2

Solved

I have ordinary Microsoft webservice and normal CXF of latest version with Java/JDK 1.6, Eclipse etc. When I am running wsdl2java, the JAXB part throws an error "Thrown by JAXB: undefined elem...
Catlett asked 22/8, 2011 at 13:58

15

Solved

I'm attempting to compile Java 1.4 code that was created by IBM's WSDL2Java on Java5 without recreating the stubs and saw this error in Eclipse. I'm under the assumption that the stubs generated sh...
Zygophyllaceous asked 13/5, 2009 at 20:16

© 2022 - 2025 — McMap. All rights reserved.