|
||||||||||
| 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 |
close()
Frees all resources used by this utility class. |
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,
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,
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 Source |
createSourceContent(org.apache.axiom.soap.SOAPEnvelope soapEnvelope,
boolean axis1Compatibility)
Create a the JBI payload from the SOAP body. |
static 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 final void close()
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,
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,
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 Source createSourceContent(org.apache.axiom.soap.SOAPEnvelope soapEnvelope,
boolean axis1Compatibility)
throws Exception
envelope - axis1Compatibility -
Exception
public static Source createSourceContentAndAttachment(org.apache.axis2.context.MessageContext inContext)
throws Exception
inContext - removeRootBodyElement -
Exception
public static final void fillSOAPBodyWithAttachments(javax.jbi.messaging.NormalizedMessage nm,
org.apache.axiom.soap.SOAPFactory soapFactory,
org.apache.axis2.context.MessageContext messageContext)
throws UnsupportedEncodingException
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 -
UnsupportedEncodingException
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 Exception
from - to - Normalized message
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||