• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to identify the type of incoming object when using wsdl extracted code? - very urgent

 
ilias basha
Ranch Hand
Posts: 55
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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.
Best wishes!
 
ilias basha
Ranch Hand
Posts: 55
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you suggest any url that provides details how to use JAXB XJC
please...
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Check this link: http://java.sun.com/webservices/docs/2.0/jaxb/xjc.html
Here is another link for XJC plugins for Eclipse and IntelliJ: https://jaxb-workshop.dev.java.net/
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic