Invalid WS Security Header – IRS ACA SOAP Request

It sounds like we’re on the same path; maybe we can help each other out. I ended up doing security by configuration: <security enableUnsecuredResponse=”true” authenticationMode=”MutualCertificate” messageSecurityVersion=”WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10″ /> You’ll also need to override the identity DNS value for your endpoint with whoever your certificate was issued to. Put this inside your <endpoint> tags <identity> <dns value=”[Issued … Read more

A Good C++ Library for SOAP

Check out Apache Axis. That is my all times favorite SOAP implementation. It’s SOAP done right! Exists for C++ and Java. http://ws.apache.org/axis/ And in best traditions of Apache Foundation, it is FREE and OPENSOURCE. So, enjoy!

Convert StreamResult to string or xml

Try this one: try { StreamSource source = new StreamSource(new StringReader(“<xml>blabla</xml>”)); StringWriter writer = new StringWriter(); StreamResult result = new StreamResult(writer); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); transformer.transform(source,result); String strResult = writer.toString(); } catch (Exception e) { e.printStackTrace(); }