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
841
votes
15 answers
Access restriction on class due to restriction on required library rt.jar?
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 should just compile as long as the runtime jars are…

sal
- 23,373
- 15
- 66
- 85
190
votes
10 answers
How to avoid the need to specify the WSDL location in a CXF or JAX-WS generated webservice client?
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 = "StatusManagement",
wsdlLocation =…

Victor Stafusa - BozoNaCadeia
- 13,995
- 13
- 56
- 72
83
votes
4 answers
Java Webservice Client (Best way)
I have a third party WSDL, I need to write code in Java for a web service client to invoke the operations in the third party WSDL. Right now, I have generated the client stub using the WSDL2JAVA tool from Axis and used the XMLbeans for data binding.…

Java Guy
- 3,391
- 14
- 49
- 55
38
votes
6 answers
JAXB generating JAXBElement instead of String
I am using Apache CXF cxf-codegen-plugin Maven plugin to generate sources from WSDL file. Problem is that I get JAXBElement generated instead of String. I have added the jaxb-bindings.xml file which looks like this:

Paulius Matulionis
- 23,085
- 22
- 103
- 143
32
votes
2 answers
Importing xsd into wsdl
This is my current configuration:
XSD

IUnknown
- 9,301
- 15
- 50
- 76
25
votes
2 answers
How to use Axis WSDL2Java generated files?
I generated Java files from WSDL with WSDL2Java converter, but I don't know how can I use service with these files, because there are no examples. I'm implementing client side.

newbie
- 24,286
- 80
- 201
- 301
23
votes
3 answers
Generating Web Service from WSDL File
I want to generate Web Service Classes from WSDL File. I want server side code not client side. wsimport creates client sides. which tool do you use to create server side code from WSDL File?

firstthumb
- 4,627
- 6
- 35
- 45
23
votes
2 answers
Custom package names cxf-codegen-plugin
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, when I use cxf-codegen-plugin to generate Java code…

Gopal
- 1,292
- 3
- 19
- 41
20
votes
1 answer
Must an XML namespace name URI be retrievable?
I have the following tags on my WSDL:

IUnknown
- 9,301
- 15
- 50
- 76
19
votes
4 answers
WSP0075: Policy assertion "TransportBinding" was evaluated as "UNKNOWN". Why?
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-codegen-plugin for Maven, which uses wsdl2java under…

Francis Avila
- 31,233
- 6
- 58
- 96
18
votes
3 answers
cxf-codegen-plugin doesn't generate sources
I'm trying to get the cxf-codegen-plugin to generate sources from my wsdl file. When calling wsdl2java manual the desired classes are generated but when using mvn generate-sources nothing happens and I get the message "No goals needed for project".…

Vespasian
- 605
- 1
- 5
- 14
14
votes
4 answers
Scala equivalent to wsdl2java?
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.

The Archetypal Paul
- 41,321
- 20
- 104
- 134
14
votes
6 answers
java.lang.ClassNotFoundException: com.sun.org.apache.xml.internal.resolver.CatalogManager Java 11
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 exception:
Exception in thread "main"…

Astonio
- 635
- 2
- 8
- 21
12
votes
2 answers
Cxf Wsdl2java null entry in list disappear
I've created a webservice client with cxf with the xew plugin for list unwrapping
The problem is that the null in the list disappear.
E.g.:
I have an Request with a List with Strings and a null-entry
When the request now arrives at the…

jmattheis
- 10,494
- 11
- 46
- 58
12
votes
0 answers
About wsimport vs wsld2java for SOAP request client
I've just generated the java source files to build a Web Service client, using the wsimport of jdk1.7.
wsimport -keep /path/to/wsdl
For make the SOAP request I used the clasess under generated folder. Everything went ok, with a response 200 :)
But…

mmpedraza
- 358
- 3
- 12