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

Not able to generate the stubs/java skeletons from the WSDL

I have written a WSDL to generate the Stubs and skeleton but my skeletons are not getting generated in the eclipse. I am using Helios version of Eclipse. Can any one tell what is the issue with WSDL? I want to use Axis 2. I tried to generate the…
java_enthu
  • 2,279
  • 7
  • 44
  • 74
3
votes
0 answers

Does Apache CXF support "output only" services? If so, how do you get wsdl2java to handle it?

While using Apache CXF, I'd like to define a port type like this:
Jared
  • 25,520
  • 24
  • 79
  • 114
3
votes
0 answers

CXF generated client doesn't include SOAP header

Using the sample wsdl deployed in the Apache CXF distribution https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/antbuild/wsdl/hello_world.wsdl I have configured a small Maven project with this (cxf-codegen-plugin) code…
aritstack
  • 83
  • 8
3
votes
2 answers

Using wsdl2java to generate stub with PROPER async support

Lets say I have a service with ONLY one method: int generateRandomNumbers(). Is is possible to use wsdl2java to generate a stub with proper async support? For example, the generated class should has the following methods/messages: int…
David
  • 185
  • 4
  • 13
3
votes
3 answers

Store Axis raw XML request/response in session (to be used in JSP)

How, if possible, do I get the raw XML request/response that is invoked/retrieved by Axis in my application? I'm using WSDL2Java that is included with Axis to generate the Java stubs. EDIT: What I currently have is an app that uses Axis to handle…
ryanprayogo
  • 11,587
  • 11
  • 51
  • 66
3
votes
0 answers

Is there a way to add custom annotation on generated wsdl classes without modify the wsdl source with gradle?

I have some classes generated from wsdl that I need to use in a software. All things are fine until I try to write a test case that aims to verify the consistence of the response body. The problem here is that the test fails because of different…
Shadi
  • 41
  • 2
3
votes
1 answer

Axis generates all classes but not Axis2?

I've generated stubs using following commands Axis: java org.apache.axis.wsdl.WSDL2Java CrmDiscoveryServiceWsdl.xml : Generates all classes Axis2 : wsdl2java.bat -u -uri CrmDiscoveryServiceWsdl.xml : Generates only a few classes. Pattern I…
Firefox
  • 941
  • 2
  • 14
  • 22
3
votes
1 answer

javax.xml.ws.WebServiceException: No Response Returned How to Fix

I have done a SOAP Client and I recive the next answer: javax.xml.ws.WebServiceException: no response returned. at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98) at…
Observer
  • 51
  • 1
  • 10
3
votes
2 answers

Gradle Kotlin DSL with wsdl2java

Migrating from Groovy to Kotlin and stumbled on a simple problem on wsdl2java generation. Question is simple, does anyone have good example with it. Google wasn't very helpful and not good in Kotlin DSL yet also syntax wise. Also using…
mkasepuu
  • 243
  • 5
  • 13
3
votes
1 answer

Classcast exception using javax.xml.namespace.Qname and javax.xml.ws.handler.PortInfo

I am connecting to an external WSDL using IntelliJ. After connecting to the WSDL and generating my Java classes I am attempting to get a response from the service. The service is not complicated at all just simple 'Yes', 'No' and 'Incorrect'…
Ibbylun
  • 73
  • 1
  • 10
3
votes
2 answers

@Endpoint with primitive data types - No adapter for endpoint

I am trying to generate CXF-Java-Classes from a WSDL with gradle (WSDL2Java), so that i can use it in my SpringBoot-Application. The Application provides a SOAP-Endpoint. My Response which I want consists of just a simple boolean:…
Marc
  • 31
  • 4
3
votes
1 answer

How to configure CXF to not worry about unknown elements?

My service is consuming a soap service. The target service could add new fields which shouldnt break our service as long as we receive all the fields we need. I am using CXF to generate java code from WSDL and it breaks whenever it finds a new…
Dhana Krishnasamy
  • 2,126
  • 17
  • 36
3
votes
1 answer

Axis WSDL2Java generated code: Server Error when performing requests in quick succession

I have been provided with a 3rd party wsdl and a deployment descriptor etc for custom encryption for an Axis web service. I used WSDL2Java to generate the java classes and it all works pretty well... up to a point. When I invoke the methods several…
rainyday
  • 75
  • 1
  • 2
  • 10
3
votes
2 answers

NoSuchMethodError when generating code for soap client via Apache CXF 2.x

When I generate the required classes for a SOAP client, via Apache CXF 2.x WSDL2Java I get this exception. Any help is much appreciated. Thanks! Exception in thread "main" java.lang.NoSuchMethodError:…
HaloMediaz
  • 1,251
  • 2
  • 13
  • 31
3
votes
1 answer

No extension base type element generated when using wsdl2java

I was trying to use the Axis2 wsdl2java command wsdl2java -uri somefile.wsdl -o src -ss to generate classes from wsdl/xsd files and running into this problem. say, there's a complex type defined as follows:
Gnavvy
  • 277
  • 3
  • 17