WSDL2Java is a JAX-RPC tool that is run against the WSDL file to create Java APIs and deployment descriptor templates according to these specifications.
Questions tagged [wsdl2java]
656 questions
8
votes
1 answer
apache cxf-codegen-plugin wsdl2java relative wsdlLocation
I'm able to use generate classes with a relative wsdlLocation when I specify each file, such as
${basedir}/src/main/resources/sample.wsdl
…

mav
- 129
- 1
- 9
8
votes
2 answers
wsdl: how to generate exception with errorCode and errorMessage inlined?
I'm trying to use wsdl:fault, but can not generate expected java class (exception). The class I get generated (annotations and getters/setters removed):
public class ProjectException extends Exception {
private com.home.project.generated.Fault…

Vi Matviichuk
- 1,122
- 15
- 32
8
votes
1 answer
How to generate sources for multiple services using Apache CXF codegen plugin for Maven under one execution
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 multiple services. I know you can specify a…

Evan LaHurd
- 977
- 2
- 14
- 27
8
votes
0 answers
CXF Error: input message must reference global element declaration with same localnameas operation
While running wsdl2java I was getting below message:
I am using cxf 3.1 with jdk 7
my wsdl2java command is as below
wsdl2java -d C:\esub\.cxftmp/src -classdir C:\esub\build\classes -p http://www.example.org/ESBProxy/=org.example.esbproxy -impl …

CodeDCode
- 390
- 5
- 17
8
votes
1 answer
CXF: Implement multiple ports on same soap:adress?
We got a WSDL from a client, asking us to implement the service on our side.
The WSDL contains 3 port-bindings, with different names and bindings, but identical --- like this:
…

Rop
- 3,359
- 3
- 38
- 59
8
votes
4 answers
undefined element declaration 'xs:schema'
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 the wsdl file in my Eclipse project, it gives…

A N
- 394
- 2
- 8
- 18
7
votes
1 answer
Is there any Apache Axis WSDL2Java jar file for Eclipse Indigo
Is there any separate org.apache.axis.wsdl2java jar file for Eclipse Indigo version because its not worked in indigo version shows error like:
The selected wizard could not be started.
Plug-in "org.apache.axis.wsdl2java.eclipse" was unable to…

nag
- 920
- 6
- 27
- 51
7
votes
2 answers
Jaxb: Generate constant value for fixed-value attribute
I'm currently working on a xsd which uses the following contruct:
While not problematic per se, it is rather annoying to work with, since the fixed-value of…

Scorpio
- 2,309
- 1
- 27
- 45
7
votes
3 answers
How to generate *.xjb file from WSDL?
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 -wsdl weatherservice.wsdl

Tito
- 8,894
- 12
- 52
- 86
7
votes
1 answer
How to use CXF client in thread safe way
I have created the client stub for below service using apache-cxf's wsdl2java command.
http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL
Then I invoke the getWeatherInformation() method as below.
Weather weatherService = new Weather();
WeatherSoap…

prageeth
- 7,159
- 7
- 44
- 72
7
votes
2 answers
CXF wsdl2java not generating Javadoc for members
Running wsdl2java from CXF 2.7.5 for something like
Some type comment.

Marcel Stör
- 22,695
- 19
- 92
- 198
7
votes
3 answers
IllegalArgumentException: key can't be empty -- Which Key?
Trying to build a demo contract-first service from a sample WSDL (using CXF 2.7.1):

Withheld
- 4,603
- 10
- 45
- 76
7
votes
3 answers
How to specify frontend for wsdl2java in a pom.xml?
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 placed like this:
…

Withheld
- 4,603
- 10
- 45
- 76
6
votes
3 answers
Publishing wsdl java M2E plugin execution not covered
I have written a WSDL and I want to generate java classes.
I use the cxf-codegen-plugin for maven2, but I get the following validation error in Eclipse:
Plugin execution not covered by lifecycle configuration:
…

Constantine Gladky
- 1,245
- 6
- 27
- 45
6
votes
4 answers
How to convert WDSL to Java with Axistools-maven-plugin?
I configured the axistools-maven-plugin as follows:
org.codehaus.mojo
axistools-maven-plugin
1.4
…

Achaius
- 5,904
- 21
- 65
- 122