Package org.somda.sdc.dpws.soap.factory
Class EnvelopeFactory
java.lang.Object
org.somda.sdc.dpws.soap.factory.EnvelopeFactory
Convenience factory to create SOAP envelopes in accordance with the JAXB SOAP model.
-
Method Summary
Modifier and TypeMethodDescriptionCreates an empty SOAP envelope with existing empty body and header.createEnvelope(Object firstBodyChild) Creates an envelope with given JAXB body element.createEnvelope(String wsaAction, Object firstBodyChild) Creates an envelope with given wsa:Action attribute and body.createEnvelope(String wsaAction, String wsaTo, Object firstBodyChild) Creates an envelope with given wsa:Action attribute, wsa:To attribute, and body.createEnvelopeFromBody(Body body) Creates a SOAP envelope from an existing body.
-
Method Details
-
createEnvelope
Creates an envelope with given wsa:Action attribute and body.- Parameters:
wsaAction- the action to be used for the envelope.firstBodyChild- the message body.- Returns:
- an
Envelopeinstance.
-
createEnvelope
Creates an envelope with given wsa:Action attribute, wsa:To attribute, and body.- Parameters:
wsaAction- the action to be used for the envelope.firstBodyChild- the message body.wsaTo- the wsa:To element content.- Returns:
- an
Envelopeinstance.
-
createEnvelope
Creates an envelope with given JAXB body element.Any header fields will be left empty.
- Parameters:
firstBodyChild- the message body.- Returns:
- an
Envelopeinstance.
-
createEnvelope
Creates an empty SOAP envelope with existing empty body and header.- Returns:
- an empty
Envelopeinstance.
-
createEnvelopeFromBody
Creates a SOAP envelope from an existing body.- Parameters:
body- the message body.- Returns:
- an
Envelopeinstance.
-