Questions tagged [wsdl2java]

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.

656 questions
12
votes
8 answers

Axis2's wsdl2java fails on RPC/Encoded style web services

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.CodeGenerationException: java.lang.RuntimeException:…
Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132
11
votes
2 answers

"Can not initialize the default wsdl from..." -- Why?

My pom.xml contains the following to auto generate a client for a working web service having the WSDL specified below: org.apache.cxf cxf-codegen-plugin
Withheld
  • 4,603
  • 10
  • 45
  • 76
10
votes
2 answers

change package of generated jaxb class

I have the following data type defined in a wsdl:
rouble
  • 16,364
  • 16
  • 107
  • 102
10
votes
2 answers

Set Java Compliance Level in CXF wsdl2java

I’m brand new to CXF and am trying to create a client from WSDL. I have used Metro and Axis in the past. I downloaded apache-cxf-2.3.3 and used wsdl2java to generate the client stubs. I use Maven and set it up my pom with this:
sdoca
  • 7,832
  • 23
  • 70
  • 127
10
votes
2 answers

Two classes have the same xml type name

When I try to publish my Workspace in RAD, I get this error "Two classes have the same xml type name", probably because the same class name exists in the same package, but in two different jars. And it seems like that the @XmlType annotation needs…
asgs
  • 3,928
  • 6
  • 39
  • 54
9
votes
2 answers

Java 11: import javax.xml.ws.WebFault: "Cannot resolve symbol ws"

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 based on the wsdl. Unfortunately, some of the source…
Joey
  • 760
  • 2
  • 7
  • 23
9
votes
1 answer

Can ApacheCXF generate full constructors when using the cxf-codegen-plugin for Maven?

I generate server/client from my wsdl/xsd's using the cxf-codegen-plugin for Maven. All the types created have default no-arg-constructors, which makes them a pain to work with. Is there any way to make Apache CXF generate a full constructor aswell,…
david1563
  • 101
  • 1
  • 3
9
votes
2 answers

How to debug Wsdl2Java Jaxb error "declarations cause a collision"

I have a wsdl that was generated by .NET that I am trying to consume in a java application. To do this, I am trying to use the CXF Wsdl2Java tool. The problem is that when the tool runs, it throws a jaxb exception: Thrown by JAXB: Two declarations…
JamesP
  • 91
  • 1
  • 2
9
votes
2 answers

wsdl2java Two classes have the same XML type name "{http://***.***.***.***/***/***/***}objectFactory"

This problem occur in newer version of servicemix(tested on 5.4 - cxf 3.0.2 and 5.3 - cxf 2.7.11) in older version 4.5.2 with cxf 2.6.8 everything works, webservices are created. In our project we have a lot of different webservices generated by…
mapek
  • 270
  • 3
  • 16
9
votes
0 answers

How to generate SOAP 1.2 binding for wsdl using wsdl2java?

I brief: How can i make wsdl2java generate SOAP 1.2 binding? Detailed description: I have generated java service classes for wsdl using wsdl2java tool (apache cxf 3.0.2): MBA-Anton:bin asmirnov$ ./wsdl2java -server -catalog /tmp/wsdl/catalog -d…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
8
votes
2 answers

How do I add a namespace reference to a SOAP response with Apache Axis2 and WSDL2Java

I'm looking at the SOAP output from a web service I'm developing, and I noticed something curious:
user13224
  • 101
  • 1
  • 2
  • 4
8
votes
2 answers

Microsoft webservice and CXF client: JAXB fails to understand "s:schema"

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 element declaration 's:schema' " The part of WSDL which…
user215054
8
votes
3 answers

How make cxf-codegen-plugin generate Webservices from jakarta.xml.ws?

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.jws.*: import javax.jws.WebMethod; import…
S. Kom
  • 103
  • 1
  • 8
8
votes
3 answers

Error in publishing Web service

I have a WSDL file from which I have created Server Side Code Skeleton. Now after modification of these skeleton Java classes I have deleted the WSDL file from the project folder. Now, I am trying to prepare a web service for these classes. I m…
Stuti
  • 1,620
  • 1
  • 16
  • 33
8
votes
1 answer

getting " Not supported: http://javax.xml.XMLConstants/property/accessExternalDTD exception" while adding apche cxf-bundle as dependency in gradle

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.PayloadRootAnnotationMethodEndpointMapping]: Factory…
abin peter
  • 545
  • 1
  • 7
  • 18
1
2
3
43 44