|
||||||||||
| 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(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 with a fault |
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 |
createSourceContent(org.apache.axiom.soap.SOAPEnvelope soapEnvelope,
boolean axis1Compatibility)
Create a the JBI payload from the SOAP body. |
static javax.xml.transform.Source |
createSourceContentAndAttachment(org.apache.axis2.context.MessageContext inContext)
Create the JBI payload from the soap body. |
static void |
fillSOAPBodyWithAttachments(javax.jbi.messaging.NormalizedMessage nm,
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 void copyAttachments(org.apache.axiom.om.OMElement from,
javax.jbi.messaging.NormalizedMessage to)
throws javax.jbi.messaging.MessagingException
from - outBodyElement - to -
javax.jbi.messaging.MessagingException
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 javax.jbi.messaging.MessagingException
factory - a SOAP factoryenvelope - a SOAP envelopesource - a source
javax.jbi.messaging.MessagingException
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 javax.jbi.messaging.MessagingException
factory - a SOAP factoryenvelope - a SOAP envelopesource - a source
javax.jbi.messaging.MessagingException
public static org.apache.axiom.soap.SOAPEnvelope createSOAPEnvelope(org.apache.axiom.soap.SOAPFactory factory,
javax.jbi.messaging.NormalizedMessage nm,
boolean isJBIFault)
throws javax.jbi.messaging.MessagingException
factory - soap factorynm - NormalizedMessage containing the response
javax.jbi.messaging.MessagingException
public static javax.xml.transform.Source createSourceContent(org.apache.axiom.soap.SOAPEnvelope soapEnvelope,
boolean axis1Compatibility)
throws javax.jbi.messaging.MessagingException
envelope - the SOAP envelopeaxis1Compatibility - a flag for Axis compatibility
javax.jbi.messaging.MessagingException - if there is an error when creating the source content
public static javax.xml.transform.Source createSourceContentAndAttachment(org.apache.axis2.context.MessageContext inContext)
throws javax.jbi.messaging.MessagingException
inContext - the message context
javax.jbi.messaging.MessagingException - if there is an error when creating the source content and
attachements
public static final void fillSOAPBodyWithAttachments(javax.jbi.messaging.NormalizedMessage nm,
org.apache.axiom.soap.SOAPFactory soapFactory,
org.apache.axis2.context.MessageContext messageContext)
throws org.apache.axis2.AxisFault
Handles attachments. Two cases can occurs:
In the first case, it is needed to replace the XML node that declares the attachment 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>
nm - soapFactory - messageContext -
org.apache.axis2.AxisFault
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 javax.jbi.messaging.MessagingException
from - to - Normalized message
javax.jbi.messaging.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||