|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.binding.soap.util.Marshaller
public final class Marshaller
A marshaller to create JBI message from SOAP ones and vice versa.
| Method Summary | |
|---|---|
static void |
copyAttachments(javax.jbi.messaging.NormalizedMessage from,
org.apache.axis2.context.MessageContext to)
Add the normalized message attachments to the Axis message context. |
static void |
copyAttachments(org.apache.axiom.om.OMElement from,
javax.jbi.messaging.NormalizedMessage to)
Create the JBI message from the OMElement object. |
static org.apache.axiom.soap.SOAPBody |
createSOAPBody(org.apache.axiom.soap.SOAPFactory factory,
org.apache.axiom.soap.SOAPEnvelope envelope,
javax.xml.transform.Source source)
Create a SOAPBody from a source |
static org.apache.axiom.soap.SOAPBody |
createSOAPBodyWithFault(org.apache.axiom.soap.SOAPFactory factory,
org.apache.axiom.soap.SOAPEnvelope envelope,
javax.xml.transform.Source source)
Create a SOAPBody from a source |
static org.apache.axiom.soap.SOAPEnvelope |
createSOAPEnvelope(org.apache.axiom.soap.SOAPFactory factory,
javax.jbi.messaging.NormalizedMessage nm,
boolean isJBIFault)
Creates a SOAP response from a NormalizedMessage |
static javax.xml.transform.Source |
createSource(org.apache.axiom.soap.SOAPEnvelope envelope,
boolean removeRootBodyElement)
Create a the JBI payload from the SOAP body. |
static void |
fillSOAPBodyWithAttachments(org.apache.axiom.soap.SOAPFactory soapFactory,
org.apache.axis2.context.MessageContext messageContext)
Handles attachments. |
static void |
setAttachments(org.apache.axiom.attachments.Attachments attachments,
javax.jbi.messaging.NormalizedMessage to)
Put the SOAP attachments in the normalized message |
static void |
setProperties(org.apache.axis2.context.MessageContext from,
javax.jbi.messaging.NormalizedMessage to)
Copy properties from a SOAP message to the normalized message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.xml.transform.Source createSource(org.apache.axiom.soap.SOAPEnvelope envelope,
boolean removeRootBodyElement)
throws java.lang.Exception
envelope - removeRootBodyElement -
java.lang.Exception
public static void setAttachments(org.apache.axiom.attachments.Attachments attachments,
javax.jbi.messaging.NormalizedMessage to)
attachments - to -
public static void setProperties(org.apache.axis2.context.MessageContext from,
javax.jbi.messaging.NormalizedMessage to)
throws java.lang.Exception
from - to - Normalized message
java.lang.Exception
public static org.apache.axiom.soap.SOAPBody createSOAPBody(org.apache.axiom.soap.SOAPFactory factory,
org.apache.axiom.soap.SOAPEnvelope envelope,
javax.xml.transform.Source source)
throws org.apache.axis2.AxisFault
factory - envelope - response -
org.apache.axis2.AxisFault
public static org.apache.axiom.soap.SOAPBody createSOAPBodyWithFault(org.apache.axiom.soap.SOAPFactory factory,
org.apache.axiom.soap.SOAPEnvelope envelope,
javax.xml.transform.Source source)
throws org.apache.axis2.AxisFault
factory - envelope - response -
org.apache.axis2.AxisFault
public static org.apache.axiom.soap.SOAPEnvelope createSOAPEnvelope(org.apache.axiom.soap.SOAPFactory factory,
javax.jbi.messaging.NormalizedMessage nm,
boolean isJBIFault)
throws org.apache.axis2.AxisFault
factory - soap factorynm - NormalizedMessage containing the response
org.apache.axis2.AxisFault
public static void copyAttachments(javax.jbi.messaging.NormalizedMessage from,
org.apache.axis2.context.MessageContext to)
from - to -
org.apache.axis2.AxisFault
public static final void fillSOAPBodyWithAttachments(org.apache.axiom.soap.SOAPFactory soapFactory,
org.apache.axis2.context.MessageContext messageContext)
Handles attachments. Two cases can occurs:
In the first case, it is needed to replace the XML node that declares the attachement by the same using OMElement (it's needed by Axis API).
In the other case, each attachment is added, using MTOM/XOP, in the
special node inside the SOAP Body:
<soapbc:attachments xmlns:soapbc="http://petals.ow2.org/ns/soapbc">/<soapbc:attachment>
soapFactory - messageContext -
public static void copyAttachments(org.apache.axiom.om.OMElement from,
javax.jbi.messaging.NormalizedMessage to)
from - to -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||