Anyone know how to deserialize xml into java object?

2010-02-11 Thread Ivan Cheung
Hi, I have web service that I need to integrate with, the service is unable and slow. I am trying to mock it out (by building a simulator) so in case it is down, we can use the simulator and our dev is not affected. I have used wsdl2java to generate the client stub, I was able to serialized the

How do I deserialize xml into a java object.

2010-02-11 Thread Ivan Cheung
Hi, I have web service that I need to integrate with, the service is unable and slow. I am trying to mock it out (by building a simulator) so in case it is down, we can use the simulator and our dev is not affected. I have used wsdl2java to generate the client stub, I was able to serialized the

wsdl2java supports xsd:all but not xsd:sequence?

2009-07-14 Thread Ivan Cheung
Hi all, I have a wsdl (wrap doc / literal) with complex type defined with xsd:sequence, I use wsdl2java to generate the client stub , it did not generate the request and response java class. But if I change xsd:squence to xsd:all, it generate everything correctly, is there a switch in wsdl2java