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
2
votes
1 answer
Modify package names of generated java classes for wsdl and xsd in gradle application
I am working on an app using Gradle kotlin dsl, ie build.gradle is in Kotlin. I have a WSDL file that imports multiple XSDs. while compiling, Java classes are getting generated in the default location(which is mentioned in the XSDs). My requirement…

Rose Sweetlin T
- 31
- 6
2
votes
0 answers
Convert a soap client from a Apache axis 1.4 to cxf 3.x
I am working on a project to utilize Apache cxf 3.x to implement a soap client, which was initially developed on Axis 1.4. This project used axis wsdl2java to generate all java soap stubs from a posted wsdl. When I applied cxf wsdl2java on the same…

sailingstone
- 21
- 2
2
votes
1 answer
How to use wsdl2java to generate code from WSDL which is secured using x.509 certificate?
I try to generate Java classes using wsdl2java.
Wsdl is located in remote server which is secured using X509 certificate, in such a way, that when I try to access it in the browser without having certificate in trust store, it is returning an error…

Kamil
- 125
- 1
- 2
- 10
2
votes
1 answer
Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer how to resolve this problem in soapclient?
Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer;

Sunil Ranwan
- 71
- 7
2
votes
0 answers
org.apache.axis2.AxisFault: HTTP ( 401 ) Unauthorized address :
Approach 1 stacktrace
javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://username:password@10.XXX.15.XX/ClientExt/NewAPI/api.asmx?wsdl. It failed with:
Server returned HTTP response code: 401 for URL:…

jolly
- 75
- 10
2
votes
1 answer
How do I extend a JAXBContext used by classes generated by CXF wsdl2java to include an additional ObjectFactory
What?
I am using CXF's wsdl2java to generate Java classes from an externally supplied wsdl (TravelItineraryReadRQ.wsdl).
When I call the operation, I get a response that I can unmarshal into Java classes, with the exception of one element and its…

roj
- 1,262
- 13
- 27
2
votes
1 answer
How to generate all classes under a base package when using WSDL2Java from Axis 2?
I am trying to force WSDL2Java (org.apache.axis2.wsdl.WSDL2Java) to generate all the classes under a given base package, for example com.mycompany.thewebservice.*
According to the documentation the -p option should do the trick:
-p --package …

Óscar
- 650
- 1
- 4
- 16
2
votes
1 answer
WSDL2Java error on command prompt
I'm having an error when im using WSDL2Java tool in command prompt. im getting
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java
Error.
can anyone help me with this? I really need the solution for this.…

cyril
- 71
- 1
- 1
- 7
2
votes
0 answers
Is there any possibility of inheritance for wsdl files?
I would like to ask if is there any way to extend one WSDL by another?
I have a project, which consists of a few modules and one of them is "Common". I would like to something like an abstract WSDL:

Banzaj
- 21
- 1
2
votes
1 answer
wsdl2java generating ArrayOf instead of Type
I am using cfx wsdl2java to generate the server (java files). I'm having troubles with one java class. This java class is a complexType and looks like:
EDIT#1: As sugested by @matejko219
…

Eric
- 1,108
- 3
- 11
- 25
2
votes
0 answers
How to get rid of cos-nonambig schema error while generating java source from wsdl with cxf 2.2.12
Hi I have a problem while generating source code from this wsdl https://mollusk.atollon.com//scheduler.wsdl . My question is:
is it possible to get rid of the cos-nonambig error and generate source code?
as validating of wsdl went fine is there any…

jackoob
- 86
- 7
2
votes
2 answers
How to put SAML token directly into JAX-WS service without calling STSClient
Last year I made JAX-WS client for a web service in this link
This webservice use a STS service to get SAML token and use it to access main webservice. I use wsdl2java of apache cxf to generate JAX-WS client for this webservice. Everything was just…

Sabbir Ahmed Sourove
- 505
- 1
- 5
- 14
2
votes
1 answer
Example Java Client from WSDL generation using local wsdl file and bindings file and maven?
Does anyone know of a complete example of generating a Java Client from a local WSDL file that uses custom jaxb bindings and generated using maven (also, preferably for windows)?
Is wsimport or wsdl2java recommended for this task?

Brandon
- 6,832
- 11
- 38
- 50
2
votes
0 answers
IllegalArgumentException in WSDL first maven/cxf Soap Web Service
I have a problem with a maven project using wsdl first and Camel CXF+Spring deployed on JBoss Fuse.
Calling the service the following exception occurs:
12:21:58,961 | WARN | qtp477359063-69 | PhaseInterceptorChain | 74 -…

Pasquale Cavallo
- 21
- 2
2
votes
0 answers
maven cxf-codegen-plugin för wsdl2java, how to handle nested xsd:import
I have an main wsdl file that xsd:import a lot of xdd from online, for example

user2412555
- 1,055
- 1
- 16
- 32