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.

646 questions
828
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
  • 22,528
  • 15
  • 64
  • 84
173
votes
9 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
  • 12,608
  • 11
  • 54
  • 67
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,261
  • 13
  • 46
  • 55
34
votes
4 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
  • 21,481
  • 21
  • 97
  • 139
29
votes
2 answers

Importing xsd into wsdl

This is my current configuration: XSD
IUnknown
  • 7,639
  • 12
  • 43
  • 65
24
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
  • 22,918
  • 75
  • 190
  • 297
21
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,197
  • 5
  • 31
  • 45
18
votes
1 answer

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,115
  • 3
  • 13
  • 37
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
  • 585
  • 1
  • 4
  • 14
17
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
  • 29,546
  • 6
  • 54
  • 93
13
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
  • 39,479
  • 18
  • 96
  • 128
13
votes
1 answer

Must an XML namespace name URI be retrievable?

I have the following tags on my WSDL:
IUnknown
  • 7,639
  • 12
  • 43
  • 65
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
  • 8,442
  • 8
  • 43
  • 52
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
  • 19,123
  • 13
  • 83
  • 125
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,402
  • 21
  • 65
  • 119
1
2 3
43 44