Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-WS: specify classes included in wdsl defintion  RSS feed

 
Flavor Flav
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Java with JAX-WS as Server and use C# as Client. Visual Studio can generate all needed classes from the WDSL defintion.


@WebService
public interface MYWebService {

@WebMethod
voidinitSingleSourceX(MyType type);
}


in this case Visual Studio generates themself a "MyType"-class from the wdsl defintion for use in c#. My Problem is I want to use subclasses from "MyType" like "ExtendedMyType" and these are missing in the wdsl (and visual studio will not generate them).

Is there maybe an JAX-WS annotation which adds a addional Class to the wdsl-defintion?
 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WSDL file only generates classes from the endpoint interface and it will be very difficult to add manual classes to the wsdl file
 
Flavor Flav
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks.

i solved with a little dirty workaround by adding another dummy method to declare the type:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!