Questions tagged [wsgen]

wsgen - Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation.

79 questions
1
vote
2 answers

"java.lang.NoClassDefFoundError: IllegalName" error when generating JAX-WS artifacts using wsgen

I am relatively new to both java and webservices so it has to be something obvious. Most probably something with classpath. My class files are under the directory 'src/ibmwebservicetutorial/service/' relative to current directory. Any idea what am I…
NewbieToJava
  • 66
  • 1
  • 3
1
vote
2 answers

Command line argument is too long when using Maven's jaxws wsgen plugin because of long classpath

I'm trying to generate web service artifacts using the org.jvnet.jax-ws-commons jaxws-maven-plugin and the wsgen goal. It seems that part of the process is to execute a command that includes all the project jars on the classpath and this results in…
chrisjleu
  • 4,329
  • 7
  • 42
  • 55
1
vote
3 answers

Using wsgen and @Interceptors causes --> Unsupported major.minor version 51.0

I have a Java EE project packaged on an ear. The ear contains one Jar where i package my @stateless EJBs and other not managed classes (my model, utils etc). For some of these EJBs i use Jax-Ws to expose their functionality as a web-service. I try…
gazgas
  • 246
  • 3
  • 7
1
vote
0 answers

JAX-WS wsgen and collections of collections: wsgen broken?

I've been playing around with "bottom-up" JAX-WS and have come across something odd when running wsgen. If I have a service class that does something like: @WebService public class Foo { public ArrayList getBarList(String baz) { ... } } then…
ayang
  • 446
  • 6
  • 22
1
vote
1 answer

Unsupported major.minor version 51.0 for generated web services in maven

I've already done the research to know that this error means "I compiled with a newer version of java than I'm running the code on". The difference here is that this code that's giving me the error is generated by the jaxws-maven-plugin plugin. I…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
1
vote
1 answer

Generated WSDL file is empty

I've set up a basic Webservice (code following). Then I generated the WSDL file (right click->generate WSDL) Unfortunately the SoapAction is empty. Any advice? I've addeded the @WebService(name = "testService", targetNamespace =…
chrissik
  • 514
  • 2
  • 5
  • 20
1
vote
1 answer

Wsgen usage with javaSE

I'm studying how to build and publish Jax-WS web services using only javaSE 6 or later. The book I'm reading says that, for document-style ws, you need to call the wsgen utility before publishing the ws in order to create the java classes that act…
Nico Tanzarella
  • 179
  • 1
  • 9
1
vote
1 answer

wsgen fails to ignore JAXB annotations

I've been using Metro and have come across a problem whereby wsgen seems to ignore any JAXB annotation that I put on web method response classes. I'm trying to return a set of entity classes that I want to expose to external clients via a web…
1
vote
1 answer

Auto marshalling in JAX RS

I have worked with Jax WS and had used wsgen and wsimport for auto marshalling of custom types. Can I use wsgen with JaxRS as well? If so where should I place my wsgen generated files and how to reference them? I just wish not to deal with using…
codingsplash
  • 4,785
  • 12
  • 51
  • 90
1
vote
1 answer

wsgen generating WSDL using @WebMethod but ignoring @WebParam

I'm generating a WSDL from a Java class using the @WebService, @WebMethod and @WebParam annotations. The WSDL is generated, and includes output for @WebService and @WebMethod, but the @WebParam annotations appear to be ignored. Here's one method…
Anon Gordon
  • 2,469
  • 4
  • 28
  • 34
1
vote
1 answer

jaxws-maven-plugin wsgen IllegalAnnotationExceptions

I'm using clientgen to generate client-side classes from third party WSDLs. Then I'm using wsgen to create my web service, bundling up my classes, as well as the generated ones. The jaxws-maven-plugin wsgen throws JAXBContext…
Shahriar
  • 303
  • 4
  • 12
1
vote
2 answers

wsgen and App Engine

I'm trying to execute the wsgen command to create a Web Service. My command lines are: PATH=%path%;C:\Program Files\Java\jdk1.6.0_24\bin wsgen -cp ".\war\WEB-INF\classes" -wsdl -keep -r ".\war" -d ".\war\WEB-INF\classes" - s ".\war"…
Natiya
  • 463
  • 2
  • 9
  • 25
0
votes
1 answer

Maven JAX-WS WSGEN "Class not found error"

When i try to Compile my program. I get the following error message: Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.2:wsgen (generate-wsdl) on project SimpleWebServices: Error executing: wsgen [-keep, -s, etc.......... So,…
n00bish
  • 35
  • 1
  • 5
0
votes
1 answer

wsgen not creating wsdl file

I was following http://code.google.com/appengine/articles/soap.html to create a Web Service in Google App Engine. After reach item no 4, where i need to run wsgen to generate wsdl file for my Web Service, I found the sample syntax was given for…
chinna_82
  • 6,353
  • 17
  • 79
  • 134
0
votes
2 answers

No wsgen in JDK 17

I have JDK 17 and JDK 1.8 on my Windows PC. Why does JDK 17 not contain wsgen.exe in the bin directory while JDK 1.8 contains it? How can I build web applications without wsgen?
vico
  • 17,051
  • 45
  • 159
  • 315