Questions tagged [java2wsdl]

Command line interface to the java2wsdl utility

36 questions
12
votes
1 answer

Getting rid of

I have Java WebService code in my eclipse. I have used @WebService @Webmethod, @XmlElements, @XmlType, @XmlAccessorType Now I am generating wsdl using java2ws command from cxf framework. Here is the command F:\....\code\java2wsdl>java2ws -o…
RaG
  • 317
  • 7
  • 19
3
votes
0 answers

How to customize JAXB binding when generating XSD from Java using Apache CXF cxf-java2ws-plugin

I'm trying to use the Apache CXF cxf-java2ws-plugin version 3.1.6 to generate XSD files from JAXB-annotated Java classes I need to customize the cxf-java2ws-plugin so that it generates an XSD containing xsd:date types when it encounters Java classes…
Frank Calfo
  • 107
  • 1
  • 6
3
votes
0 answers

CXF generates WSDL where Fault extends tns:exception

I have a CXF Fault class defined that way: @WebFault(name = "FaultContainer", faultBean = "myapi.transport.FaultContainer", targetNamespace = "mynmspace") public class ServiceFaultSecond extends java.lang.Exception { ... } As you…
Tomasz
  • 988
  • 1
  • 9
  • 23
2
votes
0 answers

Error with Axis2 Maven plugin

I've been trying to create a WSDL from my Java code using the plugin supplied by Axis2, see here. However when executing the goal: mvn axis2-java2wsdl:java2wsdl I get the following error: Failed to execute goal…
andrewvincent7
  • 151
  • 2
  • 7
2
votes
1 answer

Client server java application: send large file using SOAP and AXIS2

I have to send a millions of data over the network using Soap Web Services (java2wsdl) between java client/server. So I tried to serialize objects into a file and then send it to server. But the problem is that serialization generates a very large…
un_known
  • 21
  • 1
2
votes
0 answers

Cfx wsdl2java generates - 'The nested type Item cannot hide an enclosing type'

Im trying to generate a WS client using CXF, however the generated classes have errors, in particular I am getting the following error: The nested type Item cannot hide an enclosing type Are there anyone CXF settings to deal with such…
Magick
  • 4,603
  • 22
  • 66
  • 103
2
votes
1 answer

Java2WSDL java.lang.ClassNotFoundException

I try to make WSDL with Axis Java2WSDL class, and get an error that my target class not found. Here are the steps that I did: I started with a tutorial from here:…
alex440
  • 1,647
  • 3
  • 20
  • 35
2
votes
0 answers

Expose WSDL over i-jetty on Android

I want to use android as a web service that expose WSDL, that I will be able to "Add service reference" in Visual Studio. I need to build a web service on android, I checked i-jetty for that, and the solution might work, How to expose WSDL over…
izharsa
  • 153
  • 1
  • 8
2
votes
1 answer

Dreaded no-arg constructor issue using java2ws on a type that extends JodaTime's MutableInterval

To start with, I've already looked here: http://blog.bdoughan.com/2011/05/jaxb-and-joda-time-dates-and-times.html for some possible help with respect to handling JodaTime classes with JAXB. I've inherited a codebase with a class the impl (and XML…
Chris Phillipson
  • 795
  • 1
  • 15
  • 34
2
votes
1 answer

How to document a web service API?

I have a problem with documenting my web service API. It is written in Java, then I use java2wsdl go generate wsdl file, etc. How do I create a documentation for this? I need some documentation that I could give to the user. Do I document my…
Danijel
  • 8,198
  • 18
  • 69
  • 133
1
vote
0 answers

Apache CXF: changing arg0 name to specific field name in XML (Java2WSDL)

How do I change arg0 from Apache CXF generated WSDL to something specific like "name" // Fields @WebParam(name="prgPregnancyIdPk") @XmlElement(name = "prgPregnancyIdPk") private String prgPregnancyIdPk; I try to use @XmlElement, no effect. The…
ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56
1
vote
1 answer

Webservice client generation - stubs vs. Soap messages

I need help with choosing an approach and take certain actions based on that help or advise if I can get it. I am given a URL to a wsdl If I generate stubs, I am using the functionality of that webservice I generate stubbs 3 different ways - (some…
Dmitriy Ryabin
  • 363
  • 3
  • 16
1
vote
1 answer

Need help on java2wsdl using gradle

I have a java project to which I build it using gradle build and generate a war file. Currently my requirement is to generate WSDL file at the time of build from java classes. I came to know about axis2-java2wsdl-maven-plugin and found the syntax of…
Vinay Verma
  • 533
  • 1
  • 6
  • 28
1
vote
2 answers

JavaToWS Error: java.lang.AbstractMethodError generating a webservice from classes

I'm trying to generate a wsdl file from Java classes using Eclipse Oxigen (Right Click on class -> WebService -> Create Web Service), Java 8u152 runtime and Tomcat 7. With the following settings: Web Service type: Bottom up Java Bean Web Service…
Angelo Tricarico
  • 1,333
  • 1
  • 19
  • 36
1
vote
2 answers

org.apache.cxf.tools.common.ToolException: Fail to load class

Hi I am learning webservices for that I am creating a sample project that generate java from given wsdl(wsdl2Java) and generated code to wsdl(java2ws). wsdl2java is working fine but in java2wsdl I am getting exception like below in my ANT…
Saravanan
  • 67
  • 2
  • 11
1
2 3