wsgen - Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation.
Questions tagged [wsgen]
79 questions
20
votes
8 answers
Unable to create JAXBContext creating my wsdl
I am trying to generate my WSDL for webservices but I get this error:
Note: ap round: 2
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to create JAXBContext
at…

Edwin Jaws
- 209
- 1
- 2
- 5
20
votes
3 answers
Any way to generate WSDL documentation from Javadoc with JAX-WS?
I'm hoping that an extension of some kind is available that does this (although I suppose that my hope is foolishly optimistic).
/**
*
* Gets the {@link ResultObject} given the identifier. The following * fields are not…

les2
- 14,093
- 16
- 59
- 76
10
votes
1 answer
Use method parameters names when generating WSDL from Java using wsgen and maven?
I'm generating a WSDL from a Java class using the @WebService annotation and running wsgen, triggered by a Maven build target.
The problem I have is the generated WSDL defines the parameters for the web service operations as arg0, ar1, arg2, etc…

Vinnie
- 12,400
- 15
- 59
- 80
9
votes
1 answer
apt vs wsgen vs wsimport .Confusion on what to use when and why not to use the other
I have been trying to write a web service (JAX-WS) and I have gone through a number of tutorials ranging from 2006 to 2013 ones. Most of them are with respect to some IDE. Those which talk about manual creation/deployment of web service are with ant…

Bhavik Shah
- 358
- 4
- 11
7
votes
7 answers
Where to use wsgen?
Don't seem to know where (what directory - source or classes) to properly use wsgen against my WebService class...
Create a sample document literal based WebService:
package hello;
import javax.jws.WebService;
@WebService
public class HelloWorld…

PacificNW_Lover
- 4,746
- 31
- 90
- 144
6
votes
2 answers
Wsgen class not found
I have little problem with wsgen, everytime when I use it, I get error "class not found".
I want use it for class StudentServiceEndpoint in directory webservices. Any ideas how should I do it?
Here is picture of my direcory…

Mariola
- 249
- 7
- 16
5
votes
3 answers
How to use javac to replace deprecated wsgen or apt in JDK 7 or 6?
When I use wsgen or apt to generate web service artifacts in JDK 7 with command.
wsgen -s src -cp CLASS_PATH -d OUTPUT_DIRECTORY com.sun.WebServiceSEI
displays following warning message
The apt tool and its associated API contained in the…

Baha
- 475
- 1
- 10
- 26
5
votes
2 answers
Override Glassfish Generated WSDL Service Endpoint Address
I have a web service generated by wsgen through maven. When I deploy the service to Glassfish it places the server URL into the WSDL. Our Glassfish server is fronted by an Apache proxy server.
What this all means is when someone accesses our…

Vinnie
- 12,400
- 15
- 59
- 80
5
votes
4 answers
"Missing SEI" when generating artifacts with WSGEN
I am a beginner in the development of web services. I want to generate artifacts using wsgen.exe.
Here is my code:
package com.calc.ws;
import javax.jws.WebService;
@WebService
public class Calculator {
public int add(int a, int b)…

Mitja Rogl
- 894
- 9
- 22
- 39
4
votes
2 answers
Jax-ws wsgen to generate a wsdl that references to a common schema
We're developing a quite big app with couple of dozens of service interfaces. For every service a wsdl is generated using wsgen (using the jaxws-maven-plugin maven plugin). For each service a different namespace is used in the wsdl's.
The service…

marczeeee
- 181
- 1
- 13
4
votes
1 answer
When to use wsgen?
I'm reading up on JAX-WS at the moment.
I've successfully built JAX-WS RI services using Eclipse and by hand. Both approaches make use of apt. Upon deploying my application to the app server via Eclipse or by creating a war (with or without a…

wulfgarpro
- 6,666
- 12
- 69
- 110
4
votes
1 answer
Using JAX-WS, how do I have multiple ports inside one wsdl?
I would like to define 5 classes with an @WebService annotation on them and use wsgen to create a single wsdl for all of them. Each class would be its own port. I've been reading the wsgen documentation and this doesn't seem possible. But, when I…

Daniel Kaplan
- 62,768
- 50
- 234
- 356
3
votes
2 answers
Stumped on wsgen + maven configuration
I've spent a whole day searching for a solution on how to get wsgen + maven to generate artifacts from my annotated class with no avail, always ending with the "Could not find class file" error.
My pom.xml looks like the following :
…

Sandy
- 547
- 3
- 9
- 20
3
votes
1 answer
What is best alternative to wsgen/apt (ant task) tool to generate wsdl using ant for jdk 1.8
My current web service implementation works fine with Jax-ws , ant and jdk-1.7. My requirement is to migrate from jdk 1.7 to jdk 1.8. But when I am using jdk 1.8 to build , I am getting error when generating wsdl using ant task wsgen as :…

Smruti R Tripathy
- 789
- 1
- 10
- 15
3
votes
1 answer
wsgen 'Class not found'
This is the setup of my java project
I'm trying to run wsgen through cmd:
wsgen -keep -cp . com.library.webservice.HelloWorldImplementation
But I'm getting the error
Class not found: "com.library.webservice.HelloWorldImplementation"
Also, the…

jsan
- 1,047
- 8
- 20
- 33