Actually i wanted to know whether there is any method to know which type the incoming object is? from a wsdl generated stub code.
i am trying to send a parameter to "SendServiceRequestType.java" and i dont know how the result will come (whether in xml or stream containing text or any other format)
please help me in this regard
Joined: Oct 04, 2006
I don't quite understand why you need to do this yourself if you are using code generated from a WSDL, but anyway:
If you have an XML schema and use JAXB XJC to generate corresponding Java beans, then JAXB will automatically help you to create the appropriate bean and set its data based on the received XML representation.
If you want to do this yourself, then you should use the root element name and namespace of the XML data you received.