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

newer wsgen cannot find existing WebService annotation

We have a working web service using Java 8 that we are trying to upgrade to Java 11. jaxws-ri\bin\wsgen.bat (version "JAX-WS RI 4.0.0-M4 git-revision#ac6e723") displays the following exception: Exception in thread "main"…
7579
  • 61
  • 6
0
votes
1 answer

Error while Generating wsdl from wsgen tool

I am trying out wsdl generation with the help of the wsgen tool. I have endorsed jaxb-api.jar and jaxws-api.jar files. I have a library TestTo which has TestingTo class AS public class TestingTo implements Serializable{ public String…
Adish
  • 1
  • 1
  • 1
0
votes
1 answer

Wsgen command generates NoClassDefFoundError error in Java Web Services Up and Running Book

As the books says I am trying to run the command: wsgen -cp . ch01.team.Teams in the folder that contains the .class files but it throws the next error: Exception in thread "main" java.lang.NoClassDefFoundError: bin/team/Teams (wrong name:…
0
votes
1 answer

CMD commands: Conjuction [wsgen: wsdl and inlineScemas]

-inlineSchemas This option produces inline schemas in the generated wsdl. This must be used in conjunction with the -wsdl option. Above lines are written in Oracle docs "https://docs.oracle.com/javase/9/tools/wsgen.htm#JSWOR739", My command: wsgen…
Dazel
  • 1
  • 4
0
votes
1 answer

ANT JWSC fails in JDK 8 with com/sun/mirror/apt/annotationprocessorfactory

We are using ant jwsc to generate webservice. Everything working fine in JDK 7, While migrating to JDK 8 (jdk8 u 131) we get the below error and webservice build fails. any workaround for this ? Quick google search returning…
Anandhakrishnan
  • 548
  • 2
  • 7
  • 21
0
votes
1 answer

Gradle task for using wsgen to generate webservice

I have to generate java webservice from java classes. I am able to generate the same using wsgen using jdk utility wsgen. Now I want to generate the webservices for multiple java classes in bulk using build tool gradle. I would be generate all the…
user3301213
  • 41
  • 2
  • 7
0
votes
1 answer

Java JAX WS generated WSDL vs wsgen

I have a JAX WS Web service in java, and I change it from type Document to RPC with the following line: @SOAPBinding(style = Style.RPC) The problem is when I try to use wsgen.exe (version 2.2.9) from JDK 1.8.0_91: "C:\Program…
Jose Da Silva Gomes
  • 3,814
  • 3
  • 24
  • 34
0
votes
0 answers

Maven Plugin issue for Wsgen tag

After tried several thing as posted by me on : Unable to do wsdl generation by maven plugin I find the below issue after trying with several versions of mojo jaxws plugin which is already discussed in a site: Get "java.lang.NoClassDefFoundError"…
vibhas
  • 1,449
  • 4
  • 18
  • 32
0
votes
1 answer

Ant WSGEN WSDL generation - include WSIT policy definition

I'm using the WSGEN Ant task to generate a WSDL from a service class. The task runs fine and generates the required WSDL. The problem I'm having is trying to get it to incorporate the WSIT policy definition at the top of the WSDL. When I deploy the…
Jay Shark
  • 635
  • 1
  • 11
  • 21
0
votes
1 answer

Generate WSDL file (inline schema) in Weblogic 12

I use Weblogic 12c and I created an EJB web service using annotations: @Stateless and @WebService. The WSDL file of this web service will be generated by Weblogic at run time, by default Weblogic decides not to use inline schemas. What should I do…
Ali Abazari
  • 429
  • 4
  • 20
0
votes
2 answers

how to generate wsdl through wsgen as ant task

try to generate jax-ws wsdl file from a java application service through wsgen as ANT task. Ant's taskdef itself giving me lots of class not found exception. Every first time it gave class not fount for "com.sun.tools.ws.ant.WsGen" then added …
mohit kumar
  • 179
  • 2
  • 10
0
votes
1 answer

JAX-WS generating WSDL cause java.lang.ClassNotFoundException: org.springframework.web.context.support.SpringBeanAutowiringSupport

I'm stuck on this and I don't see why. I have a java class with annotation to make it into a webservice. I Had the plan to generate the proper WSDL with wsgen so that the other module of the project can use it to generate their client classes. But…
MaxouMask
  • 985
  • 1
  • 12
  • 33
0
votes
1 answer

How to customize the web service response using jax-ws and wsgen?

I am trying to deploy a small web service using jax-ws and wsgen and cannot get the output to match the desired format. How do I declare the web method & and the response class with jaxb annotations to get the response look like the…
ultrabeet
  • 1
  • 1
0
votes
1 answer

java webservice - wsgen

I've got a task to create a webservice for school. The problem is for some reason I won't get wsgen to work correctly. I've got a class named Warehouse, which is in the package: com.horstmann.corejava. Now I build this project named Warehouse, and…
Julian
  • 1,105
  • 2
  • 26
  • 57
0
votes
1 answer

Java - Standalone SSL Web Service - JAX-WS, JRE, no web server

I've developed a simple Web Service using wsgen and it works fine under http (non-SSL). I now need to get it working under https (SSL). I followed the code located here. So the SSL process runs right now...I'm running as a Java Application from…
lincolnadym
  • 909
  • 1
  • 12
  • 29