clone - Deep cloning of an object to a similar one in a different namespace in java -


There are 2 web services declared in 2 different packages in my Java

  Package Com . HelloWorld @WebService (targetNamespace = "http://www.example.com/Hello") @SOAPBinding (parameter style = parameter style.WRAPPED, style = style.DOCUMENT, use = .litiral) {public class hello {@WebMethod @WebResult (Name = "SayHelloResult", targetNamespace = "http://www.example.com/Hello") Public HelloData SayHello () {HelloData data = New heliodata (); // Some job return data; }}} Package com.HelloWorld2 @WebService (targetNamespace = "http://www.example.com/Hello2") @SOAPBinding (parameter style = parameter style.wRAPPED, style = style.DOCUMENT, use = useLitiral) {Public class Hello2 {@WebMethod @WebResult (name = "SayHelloResult", targetNamespace = "http://www.example.com/Hello2") Public Hallaudata SayHello2 () {com.Hello helloObject = new com.Hello.HelloWorld ( ); Com.Hello.HelloObject isloadetta = HaloObject.sea (); // need to clone hi com.HellowWorld2 type object // a com.HelloWorld2.HelloData object}}}  as shown in the above example, Redirected a call call to SayHello2 For any other webmast, though the two halodata in the same package are identical, they are defined in different namespaces. How can I make a deep copy from an object? 

You can not copy deeper to an object type Superclass is a solid square, so technically you can do it, but it is advised that you do not do it


Comments