users@jax-ws.java.net

[jax-ws] wsimport wsgen

From: Baker, Brad \(Contr\) <"Baker,>
Date: Wed, 31 Jan 2007 15:17:30 -0500

Hi all I am have issues with wsimport and wsgen working together.

 

I have a WSDL and I use wsimport to create the client code.

I then use this code (the request and respomce objects) to make the sei.

When I run wsgen on my sei I get this:

 

wsgen:

    [wsgen] error: Two classes have the same XML type name
"{com.ngms.hdws}sendReportResponse".

Use @XmlType.name and @XmlType.namespace to assign different names to
them.

    [wsgen] this problem is related to the following location:

    [wsgen] at com.ngms.chims.dcgs.ws.SendReportResponse
(Unknown Source)

    [wsgen] error: compilation failed, errors should have been reported

    [wsgen] at
com.ngms.chims.dcgs.ws.jaxws.SendReportResponse._return(SendReportRespon
se.java:16)

    [wsgen] at
com.ngms.chims.dcgs.ws.jaxws.SendReportResponse(SendReportResponse.java:
13)

    [wsgen] this problem is related to the following location:

    [wsgen] at
com.ngms.chims.dcgs.ws.jaxws.SendReportResponse(SendReportResponse.java:
13)

    [wsgen] 1 error

 

IF I don't run wsgen and just try to deploy under Sun 9 I get a very
similar error in the sun log.

 

What is the proper way to make a Web Service when you are starting from
a WSDL?

 

Cheers,

Brad

 

PS. I have used wsgen successfully when I needed a WSDL from a sei.