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
4
votes
1 answer
Apache CXF 2.3.0 WSDLToJava problem
I'm trying out apachecxf 2.3.0 and i'm having problems using the wsdlToJava tool. No matter what, i get an WSDLToJava Error: java.lang.reflect.UndeclaredThrowableException. Tried an older version 2.1 and it works fine on the same WSDL.
Are anyone…

Northa
- 41
- 1
- 3
4
votes
2 answers
How to add custom code to JAXWS generated source
Is it possible to customise the code for a JAXWS class. What I want to do is add some helper methods to the generated class to help extract information from it. I know I can subclass the generated source but this means I have to cast it everywhere…

Spence
- 28,526
- 15
- 68
- 103
4
votes
2 answers
How to get Soap Header Information by CXF WSDL2JAVA Generated Code?
I am using the CXF Web Client to call Soap Web Service.
WSDL2JAVA is used to generate Java Code from wsdl. There are information from the soap header but the generated code do not have method to access the header.
How can I get header information…

Ben Cheng
- 769
- 10
- 25
4
votes
0 answers
Where should you put XSD documentation in order for JAXB to pick them up and put them in Javadoc?
I am developing a contract first webservice and wish to include the appropriate documentation in the schema so that it is as self descriptive as possible.
What is the best practice to put XSD annotations and documentation such that JAXB picks them…

jbx
- 21,365
- 18
- 90
- 144
4
votes
2 answers
How to change javadoc comments language when generate java from wsdl with CXF wsdl2java?
I generated java sources from wsdl file using CXF wsdl2java command :
wsdl2java -impl -server -d
but the generated comments are in French. How is possible to change the comments language (I want the…

stevey
- 1,137
- 4
- 21
- 30
4
votes
1 answer
CXF wsdl2java - generate list without wrapper (static inner class)
I'm trying to make a ws and I have small problem with classes generated by cxf.
Whenever I try to make a list, it is generated as a field of static inner class(wrapper).
for example
…

user2426264
- 41
- 3
4
votes
3 answers
How to generate client code using wsdl2java through https?
I'm using Tomcat 6 and CXF 3 to implement some web services. I need to generate client code by using wsdl2java command on my local server. And it works on http protocol:
wsdl2java -frontend jaxws21 -p com.activenetwork.iam.ws.client -d…

53iScott
- 827
- 1
- 13
- 18
4
votes
1 answer
Apache CXF wsdl2java client - string in CDATA instead of escape characters
I have ganerated webservice client using Apache CXF wsdl2java tool. It work fine, but in one method I have to send string that contain special characters. Generated client use escape characters. I do not want that. I want to place the string inside…

M314
- 925
- 3
- 13
- 37
4
votes
1 answer
How to access method from two classes which do not share an interface?
I am creating a java library that will access web services, but the library will be called in different platforms, so we are using ksoap2 and ksoap2-android to generate helper classes for the different platforms. The problem is that we then have…

Mike Hedman
- 1,391
- 1
- 11
- 30
4
votes
1 answer
Configuring CXF codegen plugin
I have a problem in my pom.xml file, i didn't understood very well what is the problem since i use jdk/jre 1.7(classloader) (the latest), it's about a webservice project using CXF/Spring :
My Machine :
Windows 7, x64; eclipse Juno, Jdk/jre 1.7,…

Mathis Hobden
- 356
- 2
- 7
- 19
4
votes
0 answers
Fully qualified class name while using exceptionSuper argument in CXF Wsdl2Java utilty
This is related to this question and the subsequent patch applied to cxf .
When using a WSDL-first approach to generate java stubs, is there a way to make exceptions extend RuntimeException instead of Exception?
Thanks Daniel and Piepera for the…

Joe Scaria
- 125
- 1
- 9
4
votes
1 answer
Generating WSDL2Java from Maven with CXF
For e.g. I have cxf-codegen-plugin like this:
org.apache.cxf
cxf-codegen-plugin
${cxf.version}
…
user1448458
3
votes
1 answer
How can I tell Axis WSDL2Java to take WSDLs from a JAR?
I have a maven project in which I am using the Codehaus Axis Tools plugin to run WSDL2Java.
Unfortunately, I do not have direct control of my WSDLs - they are provided to me in a JAR which is in my Maven repository. My project has a Maven dependency…

Vihung
- 12,947
- 16
- 64
- 90
3
votes
0 answers
wsdl2java and document/literal wrapped style issue
Everybody, Hello!
Say, I have a web-service:
@WebService
public interface StubWebService {
/**
* Just a stub method.
*/
public void stubMethod();
}
And I want to generate a client of it with the wsdl2java tool. After the generation I…

Dmitry
- 3,028
- 6
- 44
- 66
3
votes
2 answers
WebService generation with CXF generates Exception_Exception class
We have a Web Service implementation that throws a custom SecurityException.
public class SecurityException extends Exception {
The service is then transformed into a wsdl using the maven plugin java2ws. The resulting .wsdl file contains
…

Pete
- 10,720
- 25
- 94
- 139