2008/12/1 ysahuly <[EMAIL PROTECTED]>: > I have an implementation class and an WSDL. Is there any possibility to > configure the WSDL to the corresponding class.Not using the normal two > approaches i.e WSDL first or JAVA first. I have both the class and WSDL, > only thing is i need to configure it. If possibility is available means then > how can i specify my databinding...
Well, if you haven't written your implementation class with databound parameter objects in mind, it may be easier to generate a lightweight implementation class from the WSDL using normal WSDL-first methods, which acts as a facade or wrapper for the class you already have. This would receive the incoming data in JAXB-generated objects (or whatever databinding strategy you use) and then call the appropriate methods on the original class. Once this works, and your tests are all passing, then you could perhaps think about refactoring -- merge the logic in the original class into the wrapper, and drop the original class. Or you may decide you like the separation as it is. There may be other ways to do it (annotations?) but this is how I would go about it... Andrew.
