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
5
votes
1 answer

Maven wsdl2java tag

I am using wsdl2java in a maven project to generate some artifacts. I didn't start from scratch, but inherited the work of my predecessors. I have a question related to the tag in my pom file. org.apache.cxf
user520288
5
votes
1 answer

wsdl2java client stubs for only some operations supported by the wsdl?

Using Axis2 Wsdl2Java: is there a way to generate the relevant client code from a wsdl, but only for a subset of the supported operations in the wsdl that are of interest. i.e. if the wsdl has say a hundered operations is it possble to only generate…
Mark
  • 141
  • 1
  • 5
5
votes
1 answer

Old Version of Commons-HttpClient gives IOException in the Axis2 Web Service Client

I am using a wsdl2java generated web service client for the axis2 web service (axis2 version is 1.6.1). So for http connection the old version of commons-httpclient 3.1 is used. While doing some load tests to my web service client. In some cases i…
fgakk
  • 1,289
  • 1
  • 15
  • 26
5
votes
0 answers

Generating missing Webservice Proxy Class

We are using axis webservices in our projects. Up to now we generated our webservice clients within Eclipse. We choose New -> Other -> Web Services -> Web Service Client. Afterwards we selected the wsdl, changed the step to develop client and choose…
Udo Held
  • 12,314
  • 11
  • 67
  • 93
5
votes
3 answers

CXF Wsdl2Java Best Practice

I'm currently using cxf 2.4.0 and my code is a caller to a webservice. I was able to generate the client side java files using the cxf plugin in Maven. My question is what is the best practice for the generated files? Should I compile the…
Joe Intrakamhang
  • 489
  • 2
  • 7
  • 14
5
votes
2 answers

Code generation from WSDL causes exception

I'm using Axis2 1.5.1 (wsdl2java) for code generation (client stubs) from a given WSDL file. The webservice is provided by an external application.
ak75
  • 123
  • 1
  • 2
  • 4
5
votes
3 answers

Is it possible to generate webservices client code to a special package using apache cxf in maven?

I am trying to generate the webservices client once i build my project on the fly .. It currently does so but put it in package named based on the namespace of the WS.. so lets assume the name space is google.com , the generated files would be in…
Wael Awada
  • 1,506
  • 3
  • 18
  • 31
5
votes
1 answer

wsdl2java - how to ignore specific schema in cxf-codegen-plugin and add dependency

See below, I have 3 projects as mentioned. Common Age.xsd (namespace: http://xmlns.common/age) generated/common/xmlns/age/AgeType.java pom.xml (cxf-xjc-plugin xsdtojava) Person PersonService.wsdl (imports Age.xsd in wsd:types) …
Sridhar
  • 1,832
  • 3
  • 23
  • 44
5
votes
1 answer

using custom jaxb bindings to get xs:datetime to Joda time but getting XMLGregorianCalender

Java 1.7 Spring 3.1.1 with Spring-WS 2.1.1 Joda Hibernate 3.6 MySQL 5.0.57 Maven 3 Tomcat 7 Eclipse 3.7 Have got the web service deployed and the web client deployed and the web service and web client talking to each other. But just like in a…
user1201168
  • 415
  • 6
  • 19
5
votes
1 answer

JAXB Binding for XSD outside WSDL

We are generating java with wsdl2java from third party WSDL (means we cant modify him). WSDL contain: In this xsdschema are elements with nillable="true" and generator…
Pavel Hora
  • 143
  • 1
  • 11
5
votes
1 answer

Adding soap header authentication to wsdl2java generated code

I'm in the process of creating a Java web services client from a wsdl. I used Eclipses's Dynamic Web Project and new Web Services Client to generate the code with wsdl2java with Apache Axis 1.4. I need to add SOAP authentication to this code in…
5
votes
2 answers

WSDLException : An error occurred trying to resolve schema referenced at

I'm trying to generate a proxy class from a local WSDL file with eclipse Galileo and axis 2 1.4 on windows xp . My problem is that i get an error due to an imported schema inside the WSDL . The line tha troubles me is :
user260192
5
votes
1 answer

how do I create a maven project for apache cxf wsdl first

I want to create a apache cxf maven project from scratch using a wsdl. I need to use the wsdl2java. I can not find an archetype for wsdl first. When I try mvn archetype:generate -Dfilter=org.apache.cxf.archetype: I see only these. Is there not an…
Ranga Nathan
  • 81
  • 1
  • 4
5
votes
3 answers

What is the simplest way to extract an XML node for JAXB.unmarshal()?

I use the wsdl2java goal of cxf-codegen-plugin to generate Java from a WSDL. Then, in my tests, I use JAXB.unmarshal() to populate classes from a raw webservice XML result. A typical example is GetAllResponseType response =…
neu242
  • 15,796
  • 20
  • 79
  • 114
5
votes
1 answer

CXF - Wsdl2java - the XX property is already defined

I use CXF to generate client class to access web service server. The web service are based on WCF (.NET). When I call wsdl2java, I have the following error : The id property is already defined. use to resolve this conflict. The…
clement M.
  • 141
  • 2
  • 9