Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to proccess the response xml of axis2 client call???  RSS feed

 
Nestor Alduey
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dispatch<Source> sourceDispatch = null;
sourceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD);
Source result = (Source)sourceDispatch.invoke(new StreamSource(new StringReader(req)));
System.out.println("Se pudo consultar el webservice");

Netbeans generate that with the pluggin but, I passed it the xml request, but a I don't know hou to process the result???

Somebody can help me???

Thank you!!!
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
You can, for instance, use JAXB to process the result.
Check page 161 and forward in this document: http://faq.javaranch.com/content/Exam-Objectives-5.pdf
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!