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
2
votes
2 answers

Stub files using a WSDL file in j2me

Is it possible to generate stub files using a "WSDL" file? I know how to generate stub files using wscompiler in j2me. I have a wsdl file is it possible to create stub files using it? I am using these stub files in my j2me application.
Mihir Palkhiwala
  • 2,586
  • 3
  • 37
  • 47
2
votes
0 answers

How to configure WS client after generated using wsdl2java

I am using Java to implement a client for a .NET web service. I've got some questions about the right practices and also a problem that I need solution for. I am using maven and the wsdl2java plugin, it is currently set to get the wsdl xml from the…
Bishoy
  • 705
  • 9
  • 24
2
votes
0 answers

Too Many Constants error

I am trying to generate java code from wsdl using axis2-1.6.2. I have a very big WSDL file. When I generate java code I got an error in ExtensionMapper class. Error is as follow :- Too many constants, the constant pool for ExtensionMapper would…
vishal
  • 25
  • 5
2
votes
0 answers

java -jar (runnable) vs java -cp (no runnable)

I created a web client that invokes a service in OSB exposed through CXF (wsdl2java). I created a maven project and have imported sources. In addition, I added CXF libraries to the project. I use IDE is Eclipse, and running the class containing the…
2
votes
1 answer

Writing WSDL file to existing web service

I need to write a WSDL file to an existing web service which is provided to me by a colleague (it's realized with Perl and SOAP::Lite). Therefore, I have a given format for the SOAP-response and need to define the service formally to be able to…
wtfc63
  • 93
  • 1
  • 6
2
votes
1 answer

Cancel Security Context Token (SCT/Cancel)

We are using wsdl2java and the cxf codegen plugin to create a client for a ws-security protected service. Calling the service via the auto-generated client class (OrganisationsEinheitenCoreService) is pretty easy: OrganisationsEinheitenCoreService…
DominikAmon
  • 892
  • 1
  • 14
  • 26
2
votes
0 answers

Unable to convert wsdl to java using wsimport - more than one part bound to body

Command -(i tried other tools also, cxf gives- same below mentioned error and axis2 - says this wsdl is in ws rpc std. so can not convert) wsimport -B-XautoNameResolution -Xdebug -XdisableAuthenticator -keep -s /Users/mukesh/Desktop …
Mukesh Kumar
  • 333
  • 1
  • 5
  • 20
2
votes
0 answers

WSDL to Grails 2.5 domain classes

What is the easiest way to generate Grails 2.5 domain classes from WSDL? The grails-cxf-client plugin looks like it uses wsdl2java to create java classes, but I need Grails domain classes. I could always just redo the java files as domain classes,…
XDR
  • 4,070
  • 3
  • 30
  • 54
2
votes
1 answer

Using CXF's wsdl2java, is there an easier way to generate package names from xml namespaces without version numbers?

I'm using Apache CXF's wsdl2java utility to create some JAXB objects and some web service code. The schema in my WSDL has a lot of namespaces with version numbers on the end. For example: http://example.org/sample/namespace/1.0 When CXF generates…
waltwood
  • 955
  • 2
  • 9
  • 12
2
votes
0 answers

Apache CXF - How can I automate WSDL relative path resolution for Client Stubs generation?

In my maven project in order to generating client stubs using apache cxf, I've configured the pom as follows: org.apache.cxf cxf-codegen-plugin ${cxf.version}
Cisco
  • 532
  • 1
  • 8
  • 24
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
0 answers

wsdl2java: Add Annotation to WebService Method or let WebService extend an interface

We are currently working on a platform that uses SOAP with a WSDL interface. We take the top-down approach and generate java classes from the WSDL with JAX-WS. What I would like to do is to add annotations to methods of the created WebService…
nanoquack
  • 949
  • 2
  • 9
  • 26
2
votes
3 answers

What is the easiest way to generate code from wsdl (cxf)?

I need to consume a webservice with webservice-security. This webservice was created using cxf (not by me). I tried so far: wsimport with locally downloaded wsdl…
UNeverNo
  • 549
  • 3
  • 8
  • 29
2
votes
1 answer

CXF: How to generate @Logging annotation with wsdl2java?

We use CXF for SOAP cients and generate client with cxf-codegen-plugin (wsdl2java) maven plugin (which is I think just a wrapper around wsd2java). We usually used to add @Logging(pretty=true) annotation to every service every time after the…
Artem
  • 7,275
  • 15
  • 57
  • 97
2
votes
1 answer

wsdl2java exception

java org.apache.axis2.wsdl.WSDL2Java -s -p studs.exchange -uri https://api.betfair.com/exchange/v5/BFExchangeService.wsdl Retrieving document at 'https://api.betfair.com/exchange/v5/BFExchangeService.wsdl'. log4j:WARN No appenders could be found…
Daniel
  • 2,001
  • 5
  • 17
  • 11