Building soap12 envelop
Gina Choi
gchoi at sdl.com
Thu Mar 29 20:30:20 BST 2012
I don't see an Envelop class under org.opensaml.ws.soap.soap12. So, I created
soap12 envelope using following code. Same way, I created Header and Body for
soap12, but it doesn't seem right. When I try marshal the Envelope, I am
getting null pointer exception. Is there other way to create soap12 envelope?
XMLObjectBuilderFactory builderFactory = Configuration
.getBuilderFactory();
EnvelopeBuilder envelopeBuilder = (EnvelopeBuilder)
builderFactory.getBuilder(Envelope.DEFAULT_ELEMENT_NAME);
org.opensaml.ws.soap.soap11.Envelope envelope =
envelopeBuilder.buildObject(new QName(SOAPConstants.SOAP12_NS,
Envelope.DEFAULT_ELEMENT_LOCAL_NAME, SOAPConstants.SOAP12_PREFIX));
Thanks.
Gina
More information about the dev
mailing list