Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

soap web service  RSS feed

 
Thirumalesh yeligar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI, how to extract PpsrCollateralRegistrationSearchOrdinalSearchValidationFaultDetail class from the following xml file in java, thank you

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The usual approach to SOAP is to create client software that knows how to create a SOAP request and interpret the response.

Where are you getting this XML document? Did you build a SOAP client? Using any SOAP toolkit?

Bill
 
Thirumalesh yeligar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya i got it through soap response(soap client)
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surely the documentation for the SOAP client toolkit describes how to recover returned values.

If for some reason that is impossible then you will have to learn the basics of XML related standard library classes. A good idea for any would-be Java programmer given the widespread use of XML. There are two possible approaches:

1. parse the XML document into a DOM (document object model) and use the methods in org.w3c.dom to locate the desired element and extract the content.
2. use the XPATH methods in the javax.xml.xpath package to define a path to the desired element(s).

Bill


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!