my dog learned polymorphism*
The moose likes Web Services and the fly likes Web service Response to DOM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web service Response to DOM" Watch "Web service Response to DOM" New topic
Author

Web service Response to DOM

knpatel patel
Greenhorn

Joined: May 12, 2009
Posts: 7
Hi, All

i want to use third party web service which is in .NET, i have wsdl file for that so from that using wsdl2java command, i have created client classes. and i have coded Client to access this web service. now, i have made a call to web service operation which returns xml file.
so how should i pass this return object for parsing to DOM.

when i pass saved xml file for parsing to my parser, it parses file sucessfully. the saved file is generated from call to web service on .NET platform.

Please help me...


Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41601
    
  55
That depends on what you want to do with the response. The code generated by wsdl2java should have classes and methods to work with the response on an object level, which is much easier to deal with than processing the raw XML.


Ping & DNS - my free Android networking tools app
knpatel patel
Greenhorn

Joined: May 12, 2009
Posts: 7
The response to web service call is list of database tables and its values. so i want to parse it and then want to insert it into HSQL DB.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41601
    
  55
"knpatel patel", if you haven't read your private messages (click on the "My Private Messages" link at the top of the page), then you need to do so urgently; your account is about to be closed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web service Response to DOM