Hello,
as part of my project, i need to be able to parse a SOAP response from a remote service end-point, and convert it into a custom XML format. my project should be agnostic of the schema used by the SOAP response. however, my first step involves parsing the SOAP message and extracting the relevant sections - Headers, Body, Attachments, Faults. Currently, to do this i'm using the StaX parser.
I was wondering if there's any toolkit available to perform this task so that i wouldn't have to re-invent the wheel again. especially more so when it comes to handling complexities related to retrieving binary data attachments w/ their correct Mime types, etc.
Some pseudo-code examples -
SOAPLib s = new SOAPLib(soapResp);
SOAPHeader h s.getHeader();
h.getHeaders();
String body = s.getBody()
SOAPAttachment sa = s.getAttachment(id);
...
...
any help is much appreciated.