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
3
votes
0 answers

wsdl2java: how to control naming of generated Java list properties?

I was using some old CXF 2.x wsdl2java version and it used to generate Java properties like List deny for a element: class MyDto { List deny; Then I switched to a higher version org.apache.cxf:cxf-codegen-plugin:2.6.16 and it started to…
Pavel Vlasov
  • 4,206
  • 6
  • 41
  • 54
3
votes
1 answer

accessing a web service using axis and maven

Im trying to figure out how to access Web Services in Java using Axis. As far as I understand, Here's what I need to do : Use WSDL File + Axis tools to generate Java files. Compile and package generated Java files and then consume those objects by…
udit
  • 2,745
  • 3
  • 33
  • 44
3
votes
0 answers

What the difference between JAXB and CXF?

I have tried to generate java classes from a schema xsd with JAXB2.1 and run XJC and it works. I have included the schema in a wsdl file and i generate java classes with wsdl2java command using CXF. The problem is abouta java class where there are…
Julien
  • 41
  • 1
  • 5
3
votes
1 answer

CXF wsdl2java listwrapper in wsdl should be unwrapped

I'm currently updating a old axis wsclient to a cxf(jaxb databinding) client, now there are differences, how list/array are handled. Let me explain that on an example: wsdl
jmattheis
  • 10,494
  • 11
  • 46
  • 58
3
votes
2 answers

cxf-codegen-plugin not generating code

I am attempting to use Maven to generate Java from a WSDL. I'm not that familiar with Maven, so it doesn't surprise me that I'm getting something wrong. Running mvn generate-sources, I get this output $ mvn generate-sources [INFO] Scanning for…
user2561604
  • 43
  • 1
  • 6
3
votes
1 answer

wsdl java class case sensitivity

In the wsdl I have 2 types, same name, different cases: LoginResponse and LOGINRESPONSE. If I use xfire to generate the java classes, it only generates one class, LoginResponse, discarding the LOGINRESPONSE. How do I get around this?
Lydon Ch
  • 8,637
  • 20
  • 79
  • 132
3
votes
1 answer

CXF wsdl2java doesn't generate parameter value

I've a problem with wsdl2java in CXF. It generates a java.lang.Object parameter instead of the correct XACMLAuthzDecisionType. It complains about: Operation {urn:com:test:se:authz:AuthzService}Evaluate cannot be unwrapped, input message must…
Stef
  • 93
  • 1
  • 12
3
votes
2 answers

wsdl2java and axis2 webservice setup and testing

I am very new to the building of web-services, so please forgive my ignorance. I have been given some an .wsdl files with some .xsd files that it imports. I am told that a web-service can be created from the .wsdl file by using wsdl2java from the…
h.l.m
  • 13,015
  • 22
  • 82
  • 169
3
votes
4 answers

"Attribute group must have ref name set" when generate an OTA CXF Web Service Client

I am generating a web service client from published WSDL using Apache CXF runtimes This WSDL has been generated across XDS provided by Open Travel Org (OTA) I am sure that it's correct but I put here likewise. My problem is that I get this error…
josepmra
  • 617
  • 9
  • 25
3
votes
1 answer

wsdl2java - WARNING: Default key managers cannot be initialized

While generating java WSDL client I am receiving these errors. Can you please help me to understand these? C:\Users\Administrator\workspace\apache-cxf-3.0.2\bin> wsdl2java https://example.com/V1/HelpService?wsdl *Nov 03, 2014 1:11:20 PM…
user1537351
  • 41
  • 2
  • 3
3
votes
2 answers

Namespace repeated in all nodes using axis2 and java2wdsl

I am using eclipse and axis2 1.4.1 facet to generate a webservice. My problem is that in the generation process, the namespaces are being repeated in all nodes. As you can see below, ns4 is repeated instead of being declared in…
nerlijma
  • 935
  • 1
  • 9
  • 24
3
votes
3 answers

Generate java classes from WSDL through java program

I used wsimport command line tool for creating classses but I want to do it from the java code. Any idea?
Milan
  • 643
  • 4
  • 15
  • 31
3
votes
2 answers

WSDLs generated by Axis2 services can't be read by SoapUI or WSDL2Java

I'm converting some services from Apache SOAP to Axis2, so the Java service classes already exist. I created a new project in Eclipse, imported the source, made sure that the Axis2 project facets were installed, and Axis2 emitter properties are…
RJ Cantrell
  • 161
  • 3
  • 20
3
votes
1 answer

CXF wsdl2java not resolving catalog

I'm using the wsdl2java tool with the cxf-codegen-plugin for maven in an offline scenario. I have a jar Types.jar including common XML Schemata which are translated to java classes using the jaxb2-maven-plugin. I'm using an OASIS xml catalog to…
bjoern
  • 272
  • 3
  • 11
3
votes
4 answers

Code generation from WSDL using XML Catalog

Is there any tool for generating Java code from WSDL using XML Catalogs? The problem is that I have wsdl files that import XML schemas which also import other schemas and the schemas are not available at schemaLocation url. That is why code…
Peter Miklos
  • 76
  • 1
  • 4