cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r436785 [11/18] - in /incubator/cxf/trunk: ./ api/ api/src/main/java/org/apache/cxf/buslifecycle/ api/src/main/java/org/apache/cxf/databinding/ api/src/main/java/org/apache/cxf/endpoint/ api/src/main/java/org/apache/cxf/interceptor/ api/src...
Date Fri, 25 Aug 2006 13:17:37 GMT
Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapDestinationFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapDestinationFactory.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapDestinationFactory.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapDestinationFactory.java Fri Aug 25 06:16:36 2006
@@ -1,58 +1,58 @@
-package org.apache.cxf.binding.soap;
-
-import java.io.IOException;
-
-import javax.wsdl.WSDLException;
-import javax.wsdl.extensions.soap.SOAPAddress;
-
-import org.apache.cxf.BusException;
-import org.apache.cxf.binding.soap.model.SoapBindingInfo;
-import org.apache.cxf.service.model.EndpointInfo;
-import org.apache.cxf.transport.Destination;
-import org.apache.cxf.transport.DestinationFactory;
-import org.apache.cxf.transport.DestinationFactoryManager;
-import org.apache.cxf.ws.addressing.AttributedURIType;
-import org.apache.cxf.ws.addressing.EndpointReferenceType;
-
-public class SoapDestinationFactory implements DestinationFactory {
-    private DestinationFactoryManager destinationFactoryManager;
-    
-    public SoapDestinationFactory(DestinationFactoryManager destinationFactoyrManager) {
-        super();
-        this.destinationFactoryManager = destinationFactoyrManager;
-    }
-
-    public Destination getDestination(EndpointInfo ei) throws IOException {
-        EndpointReferenceType epr = new EndpointReferenceType();
-        AttributedURIType uri = new AttributedURIType();
-        
-        // TODO: make non wsdl4j specific
-        SOAPAddress add = ei.getExtensor(SOAPAddress.class);
-        uri.setValue(add.getLocationURI());
-        epr.setAddress(uri);
-        
-        SoapBindingInfo binding = (SoapBindingInfo) ei.getBinding();
-        DestinationFactory destinationFactory;
-        try {
-            destinationFactory = destinationFactoryManager.getDestinationFactory(binding.getTransportURI());
-            
-            return destinationFactory.getDestination(ei);
-        } catch (BusException e) {
-            throw new RuntimeException("Could not find destination factory for transport "
-                                       + binding.getTransportURI());
-        }
-    }
-
-    public Destination getDestination(EndpointReferenceType reference) throws WSDLException, IOException {
-        // TODO How do we get actual destination factory??
-        throw new UnsupportedOperationException();
-    }
-
-    public DestinationFactoryManager getDestinationFactoryManager() {
-        return destinationFactoryManager;
-    }
-
-    public void setDestinationFactoryManager(DestinationFactoryManager destinationFactoryManager) {
-        this.destinationFactoryManager = destinationFactoryManager;
-    }
-}
+package org.apache.cxf.binding.soap;
+
+import java.io.IOException;
+
+import javax.wsdl.WSDLException;
+import javax.wsdl.extensions.soap.SOAPAddress;
+
+import org.apache.cxf.BusException;
+import org.apache.cxf.binding.soap.model.SoapBindingInfo;
+import org.apache.cxf.service.model.EndpointInfo;
+import org.apache.cxf.transport.Destination;
+import org.apache.cxf.transport.DestinationFactory;
+import org.apache.cxf.transport.DestinationFactoryManager;
+import org.apache.cxf.ws.addressing.AttributedURIType;
+import org.apache.cxf.ws.addressing.EndpointReferenceType;
+
+public class SoapDestinationFactory implements DestinationFactory {
+    private DestinationFactoryManager destinationFactoryManager;
+    
+    public SoapDestinationFactory(DestinationFactoryManager destinationFactoyrManager) {
+        super();
+        this.destinationFactoryManager = destinationFactoyrManager;
+    }
+
+    public Destination getDestination(EndpointInfo ei) throws IOException {
+        EndpointReferenceType epr = new EndpointReferenceType();
+        AttributedURIType uri = new AttributedURIType();
+        
+        // TODO: make non wsdl4j specific
+        SOAPAddress add = ei.getExtensor(SOAPAddress.class);
+        uri.setValue(add.getLocationURI());
+        epr.setAddress(uri);
+        
+        SoapBindingInfo binding = (SoapBindingInfo) ei.getBinding();
+        DestinationFactory destinationFactory;
+        try {
+            destinationFactory = destinationFactoryManager.getDestinationFactory(binding.getTransportURI());
+            
+            return destinationFactory.getDestination(ei);
+        } catch (BusException e) {
+            throw new RuntimeException("Could not find destination factory for transport "
+                                       + binding.getTransportURI());
+        }
+    }
+
+    public Destination getDestination(EndpointReferenceType reference) throws WSDLException, IOException {
+        // TODO How do we get actual destination factory??
+        throw new UnsupportedOperationException();
+    }
+
+    public DestinationFactoryManager getDestinationFactoryManager() {
+        return destinationFactoryManager;
+    }
+
+    public void setDestinationFactoryManager(DestinationFactoryManager destinationFactoryManager) {
+        this.destinationFactoryManager = destinationFactoryManager;
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapDestinationFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapDestinationFactory.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapFault.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapFault.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapFault.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapFault.java Fri Aug 25 06:16:36 2006
@@ -1,138 +1,138 @@
-package org.apache.cxf.binding.soap;
-
-import javax.xml.namespace.QName;
-
-import org.w3c.dom.Element;
-
-import org.apache.cxf.common.i18n.Message;
-import org.apache.cxf.interceptor.Fault;
-
-public class SoapFault extends Fault {
-
-    public static final QName VERSION_MISMATCH = new QName(Soap12.SOAP_NAMESPACE, "VersionMismatch");
-    public static final QName MUST_UNDERSTAND = new QName(Soap12.SOAP_NAMESPACE, "MustUnderstand");
-    public static final QName DATA_ENCODING_UNKNOWN = new QName(Soap12.SOAP_NAMESPACE, "DataEncodingUnknown");
-    public static final QName ATTACHMENT_IO = new QName(Soap12.SOAP_NAMESPACE, "AttachmentIOError");
-
-    /**
-     * "The message was incorrectly formed or did not contain the appropriate
-     * information in order to succeed." -- SOAP 1.2 Spec
-     */
-    public static final QName SENDER = new QName(Soap12.SOAP_NAMESPACE, "Sender");
-
-    /**
-     * A SOAP 1.2 only fault code. <p/> "The message could not be processed for
-     * reasons attributable to the processing of the message rather than to the
-     * contents of the message itself." -- SOAP 1.2 Spec <p/> If this message is
-     * used in a SOAP 1.1 Fault it will most likely (depending on the
-     * FaultHandler) be mapped to "Sender" instead.
-     */
-    public static final QName RECEIVER = new QName(Soap12.SOAP_NAMESPACE, "Receiver");
-
-    public static final QName SOAP11_SERVER = new QName(Soap11.SOAP_NAMESPACE, "Server");
-    public static final QName SOAP11_CLIENT = new QName(Soap11.SOAP_NAMESPACE, "Client");
-    public static final QName SOAP11_MUST_UNDERSTAND = new QName(Soap11.SOAP_NAMESPACE, "MustUnderstand");
-    public static final QName SOAP11_VERSION_MISMATCH = new QName(Soap11.SOAP_NAMESPACE, "VersionMismatch");
-
-    private QName faultCode;
-    private QName subCode;
-    private String role;
-    private Element detail;
-
-    public SoapFault(Message message, Throwable throwable, QName type) {
-        super(message, throwable);
-        this.faultCode = type;
-    }
-
-    public SoapFault(Message message, QName faultCode) {
-        super(message);
-        this.faultCode = faultCode;
-    }
-
-    /**
-     * Returns the detail node. If no detail node has been set, an empty
-     * <code>&lt;detail&gt;</code> is created.
-     * 
-     * @return the detail node.
-     */
-    public Element getDetail() {
-        return detail;
-    }
-
-    /**
-     * Sets a details <code>Node</code> on this fault.
-     * 
-     * @param details the detail node.
-     */
-    public void setDetail(Element details) {
-        detail = details;
-    }
-
-    /**
-     * Returns the fault code of this fault.
-     * 
-     * @return the fault code.
-     */
-    public QName getFaultCode() {
-        return faultCode;
-    }
-
-    /**
-     * Sets the fault code of this fault.
-     * 
-     * @param faultCode the fault code.
-     */
-    public void setFaultCode(QName faultCode) {
-        this.faultCode = faultCode;
-    }
-
-    public String getReason() {
-        return getMessage();
-    }
-
-    /**
-     * Returns the fault actor.
-     * 
-     * @return the fault actor.
-     */
-    public String getRole() {
-        return role;
-    }
-
-    /**
-     * Sets the fault actor.
-     * 
-     * @param actor the actor.
-     */
-    public void setRole(String actor) {
-        this.role = actor;
-    }
-
-    /**
-     * Returns the SubCode for the Fault Code.
-     * 
-     * @return The SubCode element as detailed by the SOAP 1.2 spec.
-     */
-    public QName getSubCode() {
-        return subCode;
-    }
-
-    /**
-     * Sets the SubCode for the Fault Code.
-     * 
-     * @param subCode The SubCode element as detailed by the SOAP 1.2 spec.
-     */
-    public void setSubCode(QName subCode) {
-        this.subCode = subCode;
-    }
-
-    /**
-     * Indicates whether this fault has a detail message.
-     * 
-     * @return <code>true</code> if this fault has a detail message;
-     *         <code>false</code> otherwise.
-     */
-    public boolean hasDetails() {
-        return detail == null ? false : true;
-    }
-}
+package org.apache.cxf.binding.soap;
+
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+import org.apache.cxf.common.i18n.Message;
+import org.apache.cxf.interceptor.Fault;
+
+public class SoapFault extends Fault {
+
+    public static final QName VERSION_MISMATCH = new QName(Soap12.SOAP_NAMESPACE, "VersionMismatch");
+    public static final QName MUST_UNDERSTAND = new QName(Soap12.SOAP_NAMESPACE, "MustUnderstand");
+    public static final QName DATA_ENCODING_UNKNOWN = new QName(Soap12.SOAP_NAMESPACE, "DataEncodingUnknown");
+    public static final QName ATTACHMENT_IO = new QName(Soap12.SOAP_NAMESPACE, "AttachmentIOError");
+
+    /**
+     * "The message was incorrectly formed or did not contain the appropriate
+     * information in order to succeed." -- SOAP 1.2 Spec
+     */
+    public static final QName SENDER = new QName(Soap12.SOAP_NAMESPACE, "Sender");
+
+    /**
+     * A SOAP 1.2 only fault code. <p/> "The message could not be processed for
+     * reasons attributable to the processing of the message rather than to the
+     * contents of the message itself." -- SOAP 1.2 Spec <p/> If this message is
+     * used in a SOAP 1.1 Fault it will most likely (depending on the
+     * FaultHandler) be mapped to "Sender" instead.
+     */
+    public static final QName RECEIVER = new QName(Soap12.SOAP_NAMESPACE, "Receiver");
+
+    public static final QName SOAP11_SERVER = new QName(Soap11.SOAP_NAMESPACE, "Server");
+    public static final QName SOAP11_CLIENT = new QName(Soap11.SOAP_NAMESPACE, "Client");
+    public static final QName SOAP11_MUST_UNDERSTAND = new QName(Soap11.SOAP_NAMESPACE, "MustUnderstand");
+    public static final QName SOAP11_VERSION_MISMATCH = new QName(Soap11.SOAP_NAMESPACE, "VersionMismatch");
+
+    private QName faultCode;
+    private QName subCode;
+    private String role;
+    private Element detail;
+
+    public SoapFault(Message message, Throwable throwable, QName type) {
+        super(message, throwable);
+        this.faultCode = type;
+    }
+
+    public SoapFault(Message message, QName faultCode) {
+        super(message);
+        this.faultCode = faultCode;
+    }
+
+    /**
+     * Returns the detail node. If no detail node has been set, an empty
+     * <code>&lt;detail&gt;</code> is created.
+     * 
+     * @return the detail node.
+     */
+    public Element getDetail() {
+        return detail;
+    }
+
+    /**
+     * Sets a details <code>Node</code> on this fault.
+     * 
+     * @param details the detail node.
+     */
+    public void setDetail(Element details) {
+        detail = details;
+    }
+
+    /**
+     * Returns the fault code of this fault.
+     * 
+     * @return the fault code.
+     */
+    public QName getFaultCode() {
+        return faultCode;
+    }
+
+    /**
+     * Sets the fault code of this fault.
+     * 
+     * @param faultCode the fault code.
+     */
+    public void setFaultCode(QName faultCode) {
+        this.faultCode = faultCode;
+    }
+
+    public String getReason() {
+        return getMessage();
+    }
+
+    /**
+     * Returns the fault actor.
+     * 
+     * @return the fault actor.
+     */
+    public String getRole() {
+        return role;
+    }
+
+    /**
+     * Sets the fault actor.
+     * 
+     * @param actor the actor.
+     */
+    public void setRole(String actor) {
+        this.role = actor;
+    }
+
+    /**
+     * Returns the SubCode for the Fault Code.
+     * 
+     * @return The SubCode element as detailed by the SOAP 1.2 spec.
+     */
+    public QName getSubCode() {
+        return subCode;
+    }
+
+    /**
+     * Sets the SubCode for the Fault Code.
+     * 
+     * @param subCode The SubCode element as detailed by the SOAP 1.2 spec.
+     */
+    public void setSubCode(QName subCode) {
+        this.subCode = subCode;
+    }
+
+    /**
+     * Indicates whether this fault has a detail message.
+     * 
+     * @return <code>true</code> if this fault has a detail message;
+     *         <code>false</code> otherwise.
+     */
+    public boolean hasDetails() {
+        return detail == null ? false : true;
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapFault.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapFault.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBindingInfo.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBindingInfo.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBindingInfo.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBindingInfo.java Fri Aug 25 06:16:36 2006
@@ -1,77 +1,77 @@
-package org.apache.cxf.binding.soap.model;
-
-import org.apache.cxf.binding.soap.SoapVersion;
-import org.apache.cxf.service.model.BindingInfo;
-import org.apache.cxf.service.model.BindingOperationInfo;
-import org.apache.cxf.service.model.OperationInfo;
-import org.apache.cxf.service.model.ServiceInfo;
-
-public class SoapBindingInfo extends BindingInfo {
-    private SoapVersion soapVersion;
-    private String style;
-    private String transportURI;
-
-    public SoapBindingInfo(ServiceInfo serv, String n, SoapVersion soapVersion) {
-        super(serv, n);
-
-        this.soapVersion = soapVersion;
-    }
-
-    public SoapVersion getSoapVersion() {
-        return soapVersion;
-    }
-
-    public void setSoapVersion(SoapVersion soapVersion) {
-        this.soapVersion = soapVersion;
-    }
-
-    public String getStyle() {
-        return style;
-    }
-
-    public String getStyle(OperationInfo operation) {
-        return style;
-    }
-
-    public OperationInfo getOperationByAction(String action) {
-        for (BindingOperationInfo b : getOperations()) {
-            SoapOperationInfo opInfo = b.getExtensor(SoapOperationInfo.class);
-
-            if (opInfo.getAction().equals(action)) {
-                return b.getOperationInfo();
-            }
-        }
-
-        return null;
-    }
-
-    /**
-     * Get the soap action for an operation. Will never return null.
-     * 
-     * @param operation
-     * @return
-     */
-    public String getSoapAction(OperationInfo operation) {
-        BindingOperationInfo b = (BindingOperationInfo)getOperation(operation.getName());
-        SoapOperationInfo opInfo = b.getExtensor(SoapOperationInfo.class);
-
-        if (opInfo != null && opInfo.getAction() != null) {
-            return opInfo.getAction();
-        }
-        
-        return "";
-    }
-
-    public void setStyle(String style) {
-        this.style = style;
-    }
-
-    public String getTransportURI() {
-        return transportURI;
-    }
-
-    public void setTransportURI(String transportURI) {
-        this.transportURI = transportURI;
-    }
-
-}
+package org.apache.cxf.binding.soap.model;
+
+import org.apache.cxf.binding.soap.SoapVersion;
+import org.apache.cxf.service.model.BindingInfo;
+import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.service.model.OperationInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+
+public class SoapBindingInfo extends BindingInfo {
+    private SoapVersion soapVersion;
+    private String style;
+    private String transportURI;
+
+    public SoapBindingInfo(ServiceInfo serv, String n, SoapVersion soapVersion) {
+        super(serv, n);
+
+        this.soapVersion = soapVersion;
+    }
+
+    public SoapVersion getSoapVersion() {
+        return soapVersion;
+    }
+
+    public void setSoapVersion(SoapVersion soapVersion) {
+        this.soapVersion = soapVersion;
+    }
+
+    public String getStyle() {
+        return style;
+    }
+
+    public String getStyle(OperationInfo operation) {
+        return style;
+    }
+
+    public OperationInfo getOperationByAction(String action) {
+        for (BindingOperationInfo b : getOperations()) {
+            SoapOperationInfo opInfo = b.getExtensor(SoapOperationInfo.class);
+
+            if (opInfo.getAction().equals(action)) {
+                return b.getOperationInfo();
+            }
+        }
+
+        return null;
+    }
+
+    /**
+     * Get the soap action for an operation. Will never return null.
+     * 
+     * @param operation
+     * @return
+     */
+    public String getSoapAction(OperationInfo operation) {
+        BindingOperationInfo b = (BindingOperationInfo)getOperation(operation.getName());
+        SoapOperationInfo opInfo = b.getExtensor(SoapOperationInfo.class);
+
+        if (opInfo != null && opInfo.getAction() != null) {
+            return opInfo.getAction();
+        }
+        
+        return "";
+    }
+
+    public void setStyle(String style) {
+        this.style = style;
+    }
+
+    public String getTransportURI() {
+        return transportURI;
+    }
+
+    public void setTransportURI(String transportURI) {
+        this.transportURI = transportURI;
+    }
+
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBindingInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBindingInfo.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBodyInfo.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBodyInfo.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBodyInfo.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBodyInfo.java Fri Aug 25 06:16:36 2006
@@ -1,27 +1,27 @@
-package org.apache.cxf.binding.soap.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.cxf.service.model.MessagePartInfo;
-
-public class SoapBodyInfo {
-    private List <MessagePartInfo> parts = new ArrayList<MessagePartInfo>();
-    private String use;
-    
-    public List<MessagePartInfo> getParts() {
-        return parts;
-    }
-
-    public void setParts(List<MessagePartInfo> parts) {
-        this.parts = parts;
-    }
-
-    public String getUse() {
-        return use;
-    }
-
-    public void setUse(String use) {
-        this.use = use;
-    }
-}
+package org.apache.cxf.binding.soap.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.cxf.service.model.MessagePartInfo;
+
+public class SoapBodyInfo {
+    private List <MessagePartInfo> parts = new ArrayList<MessagePartInfo>();
+    private String use;
+    
+    public List<MessagePartInfo> getParts() {
+        return parts;
+    }
+
+    public void setParts(List<MessagePartInfo> parts) {
+        this.parts = parts;
+    }
+
+    public String getUse() {
+        return use;
+    }
+
+    public void setUse(String use) {
+        this.use = use;
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBodyInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapBodyInfo.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapHeaderInfo.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapHeaderInfo.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapHeaderInfo.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapHeaderInfo.java Fri Aug 25 06:16:36 2006
@@ -1,24 +1,24 @@
-package org.apache.cxf.binding.soap.model;
-
-import org.apache.cxf.service.model.MessagePartInfo;
-
-public class SoapHeaderInfo {
-    private MessagePartInfo part;
-    private String use;
-
-    public MessagePartInfo getPart() {
-        return part;
-    }
-
-    public void setPart(MessagePartInfo part) {
-        this.part = part;
-    }
-
-    public String getUse() {
-        return use;
-    }
-
-    public void setUse(String use) {
-        this.use = use;
-    }
-}
+package org.apache.cxf.binding.soap.model;
+
+import org.apache.cxf.service.model.MessagePartInfo;
+
+public class SoapHeaderInfo {
+    private MessagePartInfo part;
+    private String use;
+
+    public MessagePartInfo getPart() {
+        return part;
+    }
+
+    public void setPart(MessagePartInfo part) {
+        this.part = part;
+    }
+
+    public String getUse() {
+        return use;
+    }
+
+    public void setUse(String use) {
+        this.use = use;
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapHeaderInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapHeaderInfo.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapOperationInfo.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapOperationInfo.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapOperationInfo.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapOperationInfo.java Fri Aug 25 06:16:36 2006
@@ -1,23 +1,23 @@
-package org.apache.cxf.binding.soap.model;
-
-
-public class SoapOperationInfo {
-    private String action;
-    private String style;
-
-    public String getAction() {
-        return action;
-    }
-    
-    public void setAction(String action) {
-        this.action = action;
-    }
-    
-    public String getStyle() {
-        return style;
-    }
-    
-    public void setStyle(String style) {
-        this.style = style;
-    }
-}
+package org.apache.cxf.binding.soap.model;
+
+
+public class SoapOperationInfo {
+    private String action;
+    private String style;
+
+    public String getAction() {
+        return action;
+    }
+    
+    public void setAction(String action) {
+        this.action = action;
+    }
+    
+    public String getStyle() {
+        return style;
+    }
+    
+    public void setStyle(String style) {
+        this.style = style;
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapOperationInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/model/SoapOperationInfo.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-INF/bus-extensions.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-INF/bus-extensions.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-INF/bus-extensions.xml (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-INF/bus-extensions.xml Fri Aug 25 06:16:36 2006
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<extensions xmlns="http://cxf.apache.org/bus/extension">
-
-    <extension class="org.apache.cxf.binding.soap.SoapBindingFactory" deferred="true">
-        <namespace>http://schemas.xmlsoap.org/wsdl/soap/</namespace>
-        <namespace>http://schemas.xmlsoap.org/wsdl/soap/http</namespace>
-        <namespace>http://cxf.apache.org/transports/jms</namespace>
-    </extension>
-    
-</extensions>
+<?xml version="1.0" encoding="UTF-8"?>
+<extensions xmlns="http://cxf.apache.org/bus/extension">
+
+    <extension class="org.apache.cxf.binding.soap.SoapBindingFactory" deferred="true">
+        <namespace>http://schemas.xmlsoap.org/wsdl/soap/</namespace>
+        <namespace>http://schemas.xmlsoap.org/wsdl/soap/http</namespace>
+        <namespace>http://cxf.apache.org/transports/jms</namespace>
+    </extension>
+    
+</extensions>

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-INF/bus-extensions.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-INF/bus-extensions.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-INF/bus-extensions.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/MustUnderstandInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCInInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCInInterceptorTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCInInterceptorTest.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCInInterceptorTest.java Fri Aug 25 06:16:36 2006
@@ -1,74 +1,74 @@
-package org.apache.cxf.binding.soap;
-
-
-public class RPCInInterceptorTest extends TestBase {
-//    
-//    public void setUp() throws Exception {
-//        super.setUp();
-//
-//        soapMessage.getExchange().put(SoapMessage.DATAREADER_FACTORY_KEY, "test.reader.factory");
-//        soapMessage.put(SoapMessage.BINDING_INFO,
-//                        getTestService("resources/wsdl/hello_world_rpc_lit.wsdl", "SoapPortRPCLit"));
-//        soapMessage.put("IMPLEMENTOR_METHOD", getTestMethod(GreeterRPCLit.class, "sendReceiveData"));
-//    }
-//
-    public void testInterceptorRPCLitInbound() throws Exception {
-//        RPCInInterceptor interceptor = new RPCInInterceptor();
-//
-//        soapMessage.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
-//            .createXMLStreamReader(getTestStream(getClass(), "resources/greetMeRpcLitReq.xml")));
-//        soapMessage.put(Message.INBOUND_MESSAGE, Message.INBOUND_MESSAGE);
-//
-//        interceptor.handleMessage(soapMessage);
-//
-//        List<?> parameters = (List<?>) soapMessage.get(Message.INVOCATION_OBJECTS);
-//        assertEquals(1, parameters.size());
-//
-//        assertEquals("sendReceiveData", (String) soapMessage.get(Message.INVOCATION_OPERATION));
-//        
-//        Object obj = parameters.get(0);
-//        assertTrue(obj instanceof MyComplexStruct);
-//        MyComplexStruct s = (MyComplexStruct) obj;
-//        assertEquals("this is element 2", s.getElem2());
-    }
-//
-//    public void testInterceptorRPCLitOutbound() throws Exception {
-//        RPCInInterceptor interceptor = new RPCInInterceptor();
-//        soapMessage.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
-//            .createXMLStreamReader(getTestStream(getClass(), "resources/greetMeRpcLitResp.xml")));
-//        interceptor.handleMessage(soapMessage);
-//
-//        List<?> objs = (List<?>) soapMessage.get(Message.INVOCATION_OBJECTS);
-//        assertEquals(1, objs.size());
-//        
-//        Object retValue = objs.get(0);
-//        assertNotNull(retValue);
-//        
-//        assertTrue(retValue instanceof MyComplexStruct);
-//        MyComplexStruct s = (MyComplexStruct) retValue;
-//        assertEquals("return is element 2", s.getElem2());
-//    }
-//
-//    protected BindingInfo getTestService(String wsdlUrl, String port) throws Exception {
-//        BindingInfo binding = super.getTestService(wsdlUrl, port);
-//
-//        assertEquals(3, binding.getOperations().size());
-//
-//        BindingOperationInfo op = binding.getOperation(new QName("http://apache.org/hello_world_rpclit",
-//                                                                 "sendReceiveData"));
-//        assertNotNull(op);
-//        assertEquals(1, op.getInput().getMessageInfo().size());
-//        assertEquals(1, op.getOutput().getMessageInfo().size());
-//        MessageInfo msg = op.getInput().getMessageInfo();
-//        assertEquals(1, msg.getMessageParts().size());
-//        MessagePartInfo part = msg.getMessageParts().get(0);
-//        assertEquals(new QName("http://apache.org/hello_world_rpclit", "in"), part.getName());
-//
-//        OperationInfo oi = op.getOperationInfo();
-//        oi.setProperty("test.reader.factory", getTestReaderFactory(GreeterRPCLit.class));
-//
-//        return binding;
-//    }
-
-}
-
+package org.apache.cxf.binding.soap;
+
+
+public class RPCInInterceptorTest extends TestBase {
+//    
+//    public void setUp() throws Exception {
+//        super.setUp();
+//
+//        soapMessage.getExchange().put(SoapMessage.DATAREADER_FACTORY_KEY, "test.reader.factory");
+//        soapMessage.put(SoapMessage.BINDING_INFO,
+//                        getTestService("resources/wsdl/hello_world_rpc_lit.wsdl", "SoapPortRPCLit"));
+//        soapMessage.put("IMPLEMENTOR_METHOD", getTestMethod(GreeterRPCLit.class, "sendReceiveData"));
+//    }
+//
+    public void testInterceptorRPCLitInbound() throws Exception {
+//        RPCInInterceptor interceptor = new RPCInInterceptor();
+//
+//        soapMessage.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
+//            .createXMLStreamReader(getTestStream(getClass(), "resources/greetMeRpcLitReq.xml")));
+//        soapMessage.put(Message.INBOUND_MESSAGE, Message.INBOUND_MESSAGE);
+//
+//        interceptor.handleMessage(soapMessage);
+//
+//        List<?> parameters = (List<?>) soapMessage.get(Message.INVOCATION_OBJECTS);
+//        assertEquals(1, parameters.size());
+//
+//        assertEquals("sendReceiveData", (String) soapMessage.get(Message.INVOCATION_OPERATION));
+//        
+//        Object obj = parameters.get(0);
+//        assertTrue(obj instanceof MyComplexStruct);
+//        MyComplexStruct s = (MyComplexStruct) obj;
+//        assertEquals("this is element 2", s.getElem2());
+    }
+//
+//    public void testInterceptorRPCLitOutbound() throws Exception {
+//        RPCInInterceptor interceptor = new RPCInInterceptor();
+//        soapMessage.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
+//            .createXMLStreamReader(getTestStream(getClass(), "resources/greetMeRpcLitResp.xml")));
+//        interceptor.handleMessage(soapMessage);
+//
+//        List<?> objs = (List<?>) soapMessage.get(Message.INVOCATION_OBJECTS);
+//        assertEquals(1, objs.size());
+//        
+//        Object retValue = objs.get(0);
+//        assertNotNull(retValue);
+//        
+//        assertTrue(retValue instanceof MyComplexStruct);
+//        MyComplexStruct s = (MyComplexStruct) retValue;
+//        assertEquals("return is element 2", s.getElem2());
+//    }
+//
+//    protected BindingInfo getTestService(String wsdlUrl, String port) throws Exception {
+//        BindingInfo binding = super.getTestService(wsdlUrl, port);
+//
+//        assertEquals(3, binding.getOperations().size());
+//
+//        BindingOperationInfo op = binding.getOperation(new QName("http://apache.org/hello_world_rpclit",
+//                                                                 "sendReceiveData"));
+//        assertNotNull(op);
+//        assertEquals(1, op.getInput().getMessageInfo().size());
+//        assertEquals(1, op.getOutput().getMessageInfo().size());
+//        MessageInfo msg = op.getInput().getMessageInfo();
+//        assertEquals(1, msg.getMessageParts().size());
+//        MessagePartInfo part = msg.getMessageParts().get(0);
+//        assertEquals(new QName("http://apache.org/hello_world_rpclit", "in"), part.getName());
+//
+//        OperationInfo oi = op.getOperationInfo();
+//        oi.setProperty("test.reader.factory", getTestReaderFactory(GreeterRPCLit.class));
+//
+//        return binding;
+//    }
+
+}
+

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCInInterceptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCInInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCOutInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCOutInterceptorTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCOutInterceptorTest.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCOutInterceptorTest.java Fri Aug 25 06:16:36 2006
@@ -1,95 +1,95 @@
-package org.apache.cxf.binding.soap;
-
-
-public class RPCOutInterceptorTest extends TestBase {
-//
-//    private ByteArrayOutputStream baos;
-//    
-//    public void setUp() throws Exception {
-//        super.setUp();
-//        
-//        baos =  new ByteArrayOutputStream();
-//
-//        soapMessage.getExchange().put(SoapMessage.DATAWRITER_FACTORY_KEY, "test.writer.factory");
-//        soapMessage.put(SoapMessage.BINDING_INFO,
-//                        getTestService("resources/wsdl/hello_world_rpc_lit.wsdl", "SoapPortRPCLit"));
-//
-//        soapMessage.setContent(XMLStreamWriter.class, getXMLStreamWriter(baos));
-//        soapMessage.put(Message.INVOCATION_OPERATION, "sendReceiveData");
-//    }
-//
-//    public void tearDown() throws Exception {
-//        baos.close();
-//    }
-//
-    public void testWriteOutbound() throws Exception {
-//        RPCOutInterceptor interceptor = new RPCOutInterceptor();
-//        soapMessage.put(Message.INVOCATION_OBJECTS, Arrays.asList(getTestObject()));
-//
-//        interceptor.handleMessage(soapMessage);
-//
-//        assertNull(soapMessage.getContent(Exception.class));
-//        
-//        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
-//        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
-//        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
-//        StaxUtils.toNextElement(reader);
-//        assertEquals(new QName("http://apache.org/hello_world_rpclit", "sendReceiveData"),
-//                     reader.getName());
-//        
-//        StaxUtils.nextEvent(reader);
-//        StaxUtils.toNextElement(reader);
-//        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "in"),
-//                     reader.getName());
-//
-//        StaxUtils.toNextText(reader);
-//        assertEquals("this is elem1", reader.getText());
-    }
-//
-//    public void testWriteInbound() throws Exception {
-//        RPCOutInterceptor interceptor = new RPCOutInterceptor();
-//        soapMessage.put(Message.INVOCATION_OBJECTS, Arrays.asList(getTestObject()));
-//        soapMessage.put(Message.INBOUND_MESSAGE, Message.INBOUND_MESSAGE);
-//        
-//        interceptor.handleMessage(soapMessage);
-//        assertNull(soapMessage.getContent(Exception.class));
-//
-//        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
-//        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
-//        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
-//        StaxUtils.toNextElement(reader);
-//        assertEquals(new QName("http://apache.org/hello_world_rpclit", "sendReceiveDataResponse"),
-//                     reader.getName());
-//        
-//        StaxUtils.nextEvent(reader);
-//        StaxUtils.toNextElement(reader);
-//        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "out"), reader.getName());
-//
-//        StaxUtils.nextEvent(reader);
-//        StaxUtils.toNextElement(reader);
-//
-//        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"), reader.getName());
-//
-//        StaxUtils.nextEvent(reader);
-//        StaxUtils.toNextText(reader);
-//        assertEquals("this is elem1", reader.getText());
-//    }
-//
-//
-//    public BindingInfo getTestService(String wsdlUrl, String port) throws Exception {
-//        BindingInfo binding = super.getTestService(wsdlUrl, port);
-//        BindingOperationInfo op = binding.getOperation(new QName("http://apache.org/hello_world_rpclit",
-//                                                                 "sendReceiveData"));
-//        OperationInfo oi = op.getOperationInfo();
-//        oi.setProperty("test.writer.factory", getTestWriterFactory(GreeterRPCLit.class));
-//        return binding;
-//    }
-//
-//    public MyComplexStruct getTestObject() {
-//        MyComplexStruct obj = new MyComplexStruct();
-//        obj.setElem1("this is elem1");
-//        obj.setElem2("this is elem2");
-//        obj.setElem3(1982);
-//        return obj;
-//    }
-}
+package org.apache.cxf.binding.soap;
+
+
+public class RPCOutInterceptorTest extends TestBase {
+//
+//    private ByteArrayOutputStream baos;
+//    
+//    public void setUp() throws Exception {
+//        super.setUp();
+//        
+//        baos =  new ByteArrayOutputStream();
+//
+//        soapMessage.getExchange().put(SoapMessage.DATAWRITER_FACTORY_KEY, "test.writer.factory");
+//        soapMessage.put(SoapMessage.BINDING_INFO,
+//                        getTestService("resources/wsdl/hello_world_rpc_lit.wsdl", "SoapPortRPCLit"));
+//
+//        soapMessage.setContent(XMLStreamWriter.class, getXMLStreamWriter(baos));
+//        soapMessage.put(Message.INVOCATION_OPERATION, "sendReceiveData");
+//    }
+//
+//    public void tearDown() throws Exception {
+//        baos.close();
+//    }
+//
+    public void testWriteOutbound() throws Exception {
+//        RPCOutInterceptor interceptor = new RPCOutInterceptor();
+//        soapMessage.put(Message.INVOCATION_OBJECTS, Arrays.asList(getTestObject()));
+//
+//        interceptor.handleMessage(soapMessage);
+//
+//        assertNull(soapMessage.getContent(Exception.class));
+//        
+//        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+//        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
+//        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+//        StaxUtils.toNextElement(reader);
+//        assertEquals(new QName("http://apache.org/hello_world_rpclit", "sendReceiveData"),
+//                     reader.getName());
+//        
+//        StaxUtils.nextEvent(reader);
+//        StaxUtils.toNextElement(reader);
+//        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "in"),
+//                     reader.getName());
+//
+//        StaxUtils.toNextText(reader);
+//        assertEquals("this is elem1", reader.getText());
+    }
+//
+//    public void testWriteInbound() throws Exception {
+//        RPCOutInterceptor interceptor = new RPCOutInterceptor();
+//        soapMessage.put(Message.INVOCATION_OBJECTS, Arrays.asList(getTestObject()));
+//        soapMessage.put(Message.INBOUND_MESSAGE, Message.INBOUND_MESSAGE);
+//        
+//        interceptor.handleMessage(soapMessage);
+//        assertNull(soapMessage.getContent(Exception.class));
+//
+//        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+//        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
+//        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+//        StaxUtils.toNextElement(reader);
+//        assertEquals(new QName("http://apache.org/hello_world_rpclit", "sendReceiveDataResponse"),
+//                     reader.getName());
+//        
+//        StaxUtils.nextEvent(reader);
+//        StaxUtils.toNextElement(reader);
+//        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "out"), reader.getName());
+//
+//        StaxUtils.nextEvent(reader);
+//        StaxUtils.toNextElement(reader);
+//
+//        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"), reader.getName());
+//
+//        StaxUtils.nextEvent(reader);
+//        StaxUtils.toNextText(reader);
+//        assertEquals("this is elem1", reader.getText());
+//    }
+//
+//
+//    public BindingInfo getTestService(String wsdlUrl, String port) throws Exception {
+//        BindingInfo binding = super.getTestService(wsdlUrl, port);
+//        BindingOperationInfo op = binding.getOperation(new QName("http://apache.org/hello_world_rpclit",
+//                                                                 "sendReceiveData"));
+//        OperationInfo oi = op.getOperationInfo();
+//        oi.setProperty("test.writer.factory", getTestWriterFactory(GreeterRPCLit.class));
+//        return binding;
+//    }
+//
+//    public MyComplexStruct getTestObject() {
+//        MyComplexStruct obj = new MyComplexStruct();
+//        obj.setElem1("this is elem1");
+//        obj.setElem2("this is elem2");
+//        obj.setElem3(1982);
+//        return obj;
+//    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCOutInterceptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCOutInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/ReadHeaderInterceptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/ReadHeaderInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapBindingFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapBindingFactoryTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapBindingFactoryTest.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapBindingFactoryTest.java Fri Aug 25 06:16:36 2006
@@ -1,79 +1,79 @@
-package org.apache.cxf.binding.soap;
-
-import java.net.URL;
-import java.util.List;
-
-import javax.wsdl.Definition;
-import javax.wsdl.factory.WSDLFactory;
-import javax.xml.namespace.QName;
-
-import org.xml.sax.InputSource;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.Bus;
-import org.apache.cxf.binding.BindingFactoryManager;
-import org.apache.cxf.binding.BindingFactoryManagerImpl;
-import org.apache.cxf.binding.soap.model.SoapBindingInfo;
-import org.apache.cxf.binding.soap.model.SoapBodyInfo;
-import org.apache.cxf.binding.soap.model.SoapOperationInfo;
-import org.apache.cxf.service.model.BindingInfo;
-import org.apache.cxf.service.model.BindingMessageInfo;
-import org.apache.cxf.service.model.BindingOperationInfo;
-import org.apache.cxf.service.model.MessagePartInfo;
-import org.apache.cxf.service.model.ServiceInfo;
-import org.apache.cxf.wsdl11.WSDLServiceBuilder;
-import org.easymock.IMocksControl;
-
-import static org.easymock.EasyMock.expect;
-import static org.easymock.classextension.EasyMock.createNiceControl;
-
-public class SoapBindingFactoryTest extends TestCase {
-
-    public void testFactory() throws Exception {
-        Definition d = createDefinition();
-
-        IMocksControl control = createNiceControl();
-        Bus bus = control.createMock(Bus.class);
-
-        SoapBindingFactory bindingFactory = new SoapBindingFactory();
-        BindingFactoryManager bfm = new BindingFactoryManagerImpl();
-        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bindingFactory);
-
-        expect(bus.getExtension(BindingFactoryManager.class)).andReturn(bfm);
-        control.replay();
-
-        WSDLServiceBuilder builder = new WSDLServiceBuilder(bus);
-        ServiceInfo serviceInfo = builder
-            .buildService(d, new QName("http://apache.org/hello_world_soap_http", "SOAPService"));
-
-        BindingInfo bi = serviceInfo.getBindings().iterator().next();
-
-        assertTrue(bi instanceof SoapBindingInfo);
-
-        SoapBindingInfo sbi = (SoapBindingInfo)bi;
-        assertEquals("document", sbi.getStyle());
-        assertEquals("http://schemas.xmlsoap.org/soap/http", sbi.getTransportURI());
-
-        BindingOperationInfo boi = sbi.getOperation(new QName("http://apache.org/hello_world_soap_http",
-                                                              "sayHi"));
-        SoapOperationInfo sboi = boi.getExtensor(SoapOperationInfo.class);
-        assertNotNull(sboi);
-        assertEquals("document", sboi.getStyle());
-        assertEquals("", sboi.getAction());
-
-        BindingMessageInfo input = boi.getInput();
-        SoapBodyInfo bodyInfo = input.getExtensor(SoapBodyInfo.class);
-        assertEquals("literal", bodyInfo.getUse());
-
-        List<MessagePartInfo> parts = bodyInfo.getParts();
-        assertNotNull(parts);
-        assertEquals(1, parts.size());
-    }
-
-    public Definition createDefinition() throws Exception {
-        URL resource = getClass().getResource("/wsdl/hello_world.wsdl");
-        return WSDLFactory.newInstance().newWSDLReader().readWSDL("hello_world.wsdl",
-                                                                  new InputSource(resource.openStream()));
-    }
-}
+package org.apache.cxf.binding.soap;
+
+import java.net.URL;
+import java.util.List;
+
+import javax.wsdl.Definition;
+import javax.wsdl.factory.WSDLFactory;
+import javax.xml.namespace.QName;
+
+import org.xml.sax.InputSource;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.binding.BindingFactoryManager;
+import org.apache.cxf.binding.BindingFactoryManagerImpl;
+import org.apache.cxf.binding.soap.model.SoapBindingInfo;
+import org.apache.cxf.binding.soap.model.SoapBodyInfo;
+import org.apache.cxf.binding.soap.model.SoapOperationInfo;
+import org.apache.cxf.service.model.BindingInfo;
+import org.apache.cxf.service.model.BindingMessageInfo;
+import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.service.model.MessagePartInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.cxf.wsdl11.WSDLServiceBuilder;
+import org.easymock.IMocksControl;
+
+import static org.easymock.EasyMock.expect;
+import static org.easymock.classextension.EasyMock.createNiceControl;
+
+public class SoapBindingFactoryTest extends TestCase {
+
+    public void testFactory() throws Exception {
+        Definition d = createDefinition();
+
+        IMocksControl control = createNiceControl();
+        Bus bus = control.createMock(Bus.class);
+
+        SoapBindingFactory bindingFactory = new SoapBindingFactory();
+        BindingFactoryManager bfm = new BindingFactoryManagerImpl();
+        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bindingFactory);
+
+        expect(bus.getExtension(BindingFactoryManager.class)).andReturn(bfm);
+        control.replay();
+
+        WSDLServiceBuilder builder = new WSDLServiceBuilder(bus);
+        ServiceInfo serviceInfo = builder
+            .buildService(d, new QName("http://apache.org/hello_world_soap_http", "SOAPService"));
+
+        BindingInfo bi = serviceInfo.getBindings().iterator().next();
+
+        assertTrue(bi instanceof SoapBindingInfo);
+
+        SoapBindingInfo sbi = (SoapBindingInfo)bi;
+        assertEquals("document", sbi.getStyle());
+        assertEquals("http://schemas.xmlsoap.org/soap/http", sbi.getTransportURI());
+
+        BindingOperationInfo boi = sbi.getOperation(new QName("http://apache.org/hello_world_soap_http",
+                                                              "sayHi"));
+        SoapOperationInfo sboi = boi.getExtensor(SoapOperationInfo.class);
+        assertNotNull(sboi);
+        assertEquals("document", sboi.getStyle());
+        assertEquals("", sboi.getAction());
+
+        BindingMessageInfo input = boi.getInput();
+        SoapBodyInfo bodyInfo = input.getExtensor(SoapBodyInfo.class);
+        assertEquals("literal", bodyInfo.getUse());
+
+        List<MessagePartInfo> parts = bodyInfo.getParts();
+        assertNotNull(parts);
+        assertEquals(1, parts.size());
+    }
+
+    public Definition createDefinition() throws Exception {
+        URL resource = getClass().getResource("/wsdl/hello_world.wsdl");
+        return WSDLFactory.newInstance().newWSDLReader().readWSDL("hello_world.wsdl",
+                                                                  new InputSource(resource.openStream()));
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapBindingFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapBindingFactoryTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapDestinationFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapDestinationFactoryTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapDestinationFactoryTest.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapDestinationFactoryTest.java Fri Aug 25 06:16:36 2006
@@ -1,52 +1,52 @@
-package org.apache.cxf.binding.soap;
-
-import javax.wsdl.extensions.soap.SOAPAddress;
-
-import com.ibm.wsdl.extensions.soap.SOAPAddressImpl;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.binding.soap.model.SoapBindingInfo;
-import org.apache.cxf.service.model.EndpointInfo;
-import org.apache.cxf.service.model.ServiceInfo;
-import org.apache.cxf.transport.Destination;
-import org.apache.cxf.transport.DestinationFactory;
-import org.apache.cxf.transport.DestinationFactoryManager;
-
-import org.easymock.classextension.EasyMock;
-import org.easymock.classextension.IMocksControl;
-
-public class SoapDestinationFactoryTest extends TestCase {
-    public void testDestination() throws Exception {
-        String wsdlSoapNs = "http://schemas.xmlsoap.org/wsdl/soap/";
-        String transportURI = "http://foo/transport";
-        String location = "http://localhost/service";
-
-        ServiceInfo si = new ServiceInfo();
-        EndpointInfo ei = new EndpointInfo(si, wsdlSoapNs);
-        SOAPAddress add = new SOAPAddressImpl();
-        add.setLocationURI(location);
-        ei.addExtensor(add);
-
-        SoapBindingInfo bi = new SoapBindingInfo(si, "", Soap11.getInstance());
-        bi.setTransportURI(transportURI);
-        ei.setBinding(bi);
-
-        IMocksControl control = EasyMock.createNiceControl();
-        DestinationFactoryManager dfm = control.createMock(DestinationFactoryManager.class);
-        DestinationFactory fooDF = control.createMock(DestinationFactory.class);
-        Destination dest = control.createMock(Destination.class);
-
-        EasyMock.expect(dfm.getDestinationFactory(transportURI)).andReturn(fooDF);
-        EasyMock.expect(fooDF.getDestination(ei)).andStubReturn(dest);
-
-        control.replay();
-
-        // SoapDestinationFactory sdf = new SoapDestinationFactory(dfm);
-        // Destination dest2 = sdf.getDestination(ei);
-        // assertNotNull(dest2);
-
-        // TODO: doesn't pass because I don't know how to use easymock :-(
-        // assertEquals(dest, dest2);
-    }
-}
+package org.apache.cxf.binding.soap;
+
+import javax.wsdl.extensions.soap.SOAPAddress;
+
+import com.ibm.wsdl.extensions.soap.SOAPAddressImpl;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.binding.soap.model.SoapBindingInfo;
+import org.apache.cxf.service.model.EndpointInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.cxf.transport.Destination;
+import org.apache.cxf.transport.DestinationFactory;
+import org.apache.cxf.transport.DestinationFactoryManager;
+
+import org.easymock.classextension.EasyMock;
+import org.easymock.classextension.IMocksControl;
+
+public class SoapDestinationFactoryTest extends TestCase {
+    public void testDestination() throws Exception {
+        String wsdlSoapNs = "http://schemas.xmlsoap.org/wsdl/soap/";
+        String transportURI = "http://foo/transport";
+        String location = "http://localhost/service";
+
+        ServiceInfo si = new ServiceInfo();
+        EndpointInfo ei = new EndpointInfo(si, wsdlSoapNs);
+        SOAPAddress add = new SOAPAddressImpl();
+        add.setLocationURI(location);
+        ei.addExtensor(add);
+
+        SoapBindingInfo bi = new SoapBindingInfo(si, "", Soap11.getInstance());
+        bi.setTransportURI(transportURI);
+        ei.setBinding(bi);
+
+        IMocksControl control = EasyMock.createNiceControl();
+        DestinationFactoryManager dfm = control.createMock(DestinationFactoryManager.class);
+        DestinationFactory fooDF = control.createMock(DestinationFactory.class);
+        Destination dest = control.createMock(Destination.class);
+
+        EasyMock.expect(dfm.getDestinationFactory(transportURI)).andReturn(fooDF);
+        EasyMock.expect(fooDF.getDestination(ei)).andStubReturn(dest);
+
+        control.replay();
+
+        // SoapDestinationFactory sdf = new SoapDestinationFactory(dfm);
+        // Destination dest2 = sdf.getDestination(ei);
+        // assertNotNull(dest2);
+
+        // TODO: doesn't pass because I don't know how to use easymock :-(
+        // assertEquals(dest, dest2);
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapDestinationFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapDestinationFactoryTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapOutInterceptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/SoapOutInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestBase.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestBase.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestBase.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestBase.java Fri Aug 25 06:16:36 2006
@@ -1,133 +1,133 @@
-package org.apache.cxf.binding.soap;
-
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.wsdl.Definition;
-import javax.wsdl.Service;
-import javax.wsdl.factory.WSDLFactory;
-import javax.wsdl.xml.WSDLReader;
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLStreamWriter;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.Bus;
-import org.apache.cxf.binding.BindingFactoryManager;
-import org.apache.cxf.jaxb.JAXBDataReaderFactory;
-import org.apache.cxf.jaxb.JAXBDataWriterFactory;
-import org.apache.cxf.jaxb.JAXBEncoderDecoder;
-import org.apache.cxf.phase.Phase;
-import org.apache.cxf.phase.PhaseInterceptorChain;
-import org.apache.cxf.service.model.BindingInfo;
-import org.apache.cxf.service.model.ServiceInfo;
-import org.apache.cxf.staxutils.StaxUtils;
-import org.apache.cxf.wsdl11.WSDLServiceBuilder;
-import org.easymock.classextension.EasyMock;
-import org.easymock.classextension.IMocksControl;
-
-public class TestBase extends TestCase {
-
-    protected PhaseInterceptorChain chain;
-    protected SoapMessage soapMessage;
-
-    public void setUp() throws Exception {
-        List<Phase> phases = new ArrayList<Phase>();
-        Phase phase1 = new Phase("phase1", 1);
-        Phase phase2 = new Phase("phase2", 2);
-        Phase phase3 = new Phase("phase3", 3);
-        phases.add(phase1);
-        phases.add(phase2);
-        phases.add(phase3);
-        chain = new PhaseInterceptorChain(phases);
-
-        soapMessage = TestUtil.createEmptySoapMessage(new Soap11(), chain);
-    }
-
-    public void tearDown() throws Exception {
-    }
-
-    public InputStream getTestStream(Class<?> clz, String file) {
-        return clz.getResourceAsStream(file);
-    }
-
-    public XMLStreamReader getXMLStreamReader(InputStream is) {
-        return StaxUtils.createXMLStreamReader(is);
-    }
-
-    public XMLStreamWriter getXMLStreamWriter(OutputStream os) {
-        return StaxUtils.createXMLStreamWriter(os);
-    }
-
-    public Method getTestMethod(Class<?> sei, String methodName) {
-        Method[] iMethods = sei.getMethods();
-        for (Method m : iMethods) {
-            if (methodName.equals(m.getName())) {
-                return m;
-            }
-        }
-        return null;
-    }
-
-    public ServiceInfo getTestService(Class<?> clz) {
-        // FIXME?!?!?!?? There should NOT be JAX-WS stuff here
-        return null;
-    }
-
-    protected BindingInfo getTestService(String wsdlUrl, String port) throws Exception {
-        ServiceInfo service = getMockedServiceModel(getClass().getResource(wsdlUrl).toString());
-        assertNotNull(service);
-        BindingInfo binding = service.getEndpoint(new QName(service.getName().getNamespaceURI(), port))
-            .getBinding();
-        assertNotNull(binding);
-        return binding;
-    }
-
-    protected ServiceInfo getMockedServiceModel(String wsdlUrl) throws Exception {
-        WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
-        wsdlReader.setFeature("javax.wsdl.verbose", false);
-        Definition def = wsdlReader.readWSDL(wsdlUrl);
-
-        IMocksControl control = EasyMock.createNiceControl();
-        Bus bus = control.createMock(Bus.class);
-        BindingFactoryManager bindingFactoryManager = control.createMock(BindingFactoryManager.class);
-        WSDLServiceBuilder wsdlServiceBuilder = new WSDLServiceBuilder(bus);
-
-        Service service = null;
-        for (Iterator<?> it = def.getServices().values().iterator(); it.hasNext();) {
-            Object obj = it.next();
-            if (obj instanceof Service) {
-                service = (Service)obj;
-                break;
-            }
-        }
-
-        EasyMock.expect(bus.getExtension(BindingFactoryManager.class)).andReturn(bindingFactoryManager);
-        control.replay();
-
-        ServiceInfo serviceInfo = wsdlServiceBuilder.buildService(def, service);
-        serviceInfo.setProperty(WSDLServiceBuilder.WSDL_DEFINITION, null);
-        serviceInfo.setProperty(WSDLServiceBuilder.WSDL_SERVICE, null);
-        return serviceInfo;
-    }
-
-    protected JAXBDataReaderFactory getTestReaderFactory(Class<?> clz) throws Exception {
-        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
-        JAXBDataReaderFactory readerFacotry = new JAXBDataReaderFactory();
-        readerFacotry.setJAXBContext(ctx);
-        return readerFacotry;
-    }
-
-    protected JAXBDataWriterFactory getTestWriterFactory(Class<?> clz) throws Exception {
-        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
-        JAXBDataWriterFactory writerFacotry = new JAXBDataWriterFactory();
-        writerFacotry.setJAXBContext(ctx);
-        return writerFacotry;
-    }
-}
+package org.apache.cxf.binding.soap;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.lang.reflect.Method;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.wsdl.Definition;
+import javax.wsdl.Service;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLReader;
+import javax.xml.bind.JAXBContext;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.binding.BindingFactoryManager;
+import org.apache.cxf.jaxb.JAXBDataReaderFactory;
+import org.apache.cxf.jaxb.JAXBDataWriterFactory;
+import org.apache.cxf.jaxb.JAXBEncoderDecoder;
+import org.apache.cxf.phase.Phase;
+import org.apache.cxf.phase.PhaseInterceptorChain;
+import org.apache.cxf.service.model.BindingInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.cxf.staxutils.StaxUtils;
+import org.apache.cxf.wsdl11.WSDLServiceBuilder;
+import org.easymock.classextension.EasyMock;
+import org.easymock.classextension.IMocksControl;
+
+public class TestBase extends TestCase {
+
+    protected PhaseInterceptorChain chain;
+    protected SoapMessage soapMessage;
+
+    public void setUp() throws Exception {
+        List<Phase> phases = new ArrayList<Phase>();
+        Phase phase1 = new Phase("phase1", 1);
+        Phase phase2 = new Phase("phase2", 2);
+        Phase phase3 = new Phase("phase3", 3);
+        phases.add(phase1);
+        phases.add(phase2);
+        phases.add(phase3);
+        chain = new PhaseInterceptorChain(phases);
+
+        soapMessage = TestUtil.createEmptySoapMessage(new Soap11(), chain);
+    }
+
+    public void tearDown() throws Exception {
+    }
+
+    public InputStream getTestStream(Class<?> clz, String file) {
+        return clz.getResourceAsStream(file);
+    }
+
+    public XMLStreamReader getXMLStreamReader(InputStream is) {
+        return StaxUtils.createXMLStreamReader(is);
+    }
+
+    public XMLStreamWriter getXMLStreamWriter(OutputStream os) {
+        return StaxUtils.createXMLStreamWriter(os);
+    }
+
+    public Method getTestMethod(Class<?> sei, String methodName) {
+        Method[] iMethods = sei.getMethods();
+        for (Method m : iMethods) {
+            if (methodName.equals(m.getName())) {
+                return m;
+            }
+        }
+        return null;
+    }
+
+    public ServiceInfo getTestService(Class<?> clz) {
+        // FIXME?!?!?!?? There should NOT be JAX-WS stuff here
+        return null;
+    }
+
+    protected BindingInfo getTestService(String wsdlUrl, String port) throws Exception {
+        ServiceInfo service = getMockedServiceModel(getClass().getResource(wsdlUrl).toString());
+        assertNotNull(service);
+        BindingInfo binding = service.getEndpoint(new QName(service.getName().getNamespaceURI(), port))
+            .getBinding();
+        assertNotNull(binding);
+        return binding;
+    }
+
+    protected ServiceInfo getMockedServiceModel(String wsdlUrl) throws Exception {
+        WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
+        wsdlReader.setFeature("javax.wsdl.verbose", false);
+        Definition def = wsdlReader.readWSDL(wsdlUrl);
+
+        IMocksControl control = EasyMock.createNiceControl();
+        Bus bus = control.createMock(Bus.class);
+        BindingFactoryManager bindingFactoryManager = control.createMock(BindingFactoryManager.class);
+        WSDLServiceBuilder wsdlServiceBuilder = new WSDLServiceBuilder(bus);
+
+        Service service = null;
+        for (Iterator<?> it = def.getServices().values().iterator(); it.hasNext();) {
+            Object obj = it.next();
+            if (obj instanceof Service) {
+                service = (Service)obj;
+                break;
+            }
+        }
+
+        EasyMock.expect(bus.getExtension(BindingFactoryManager.class)).andReturn(bindingFactoryManager);
+        control.replay();
+
+        ServiceInfo serviceInfo = wsdlServiceBuilder.buildService(def, service);
+        serviceInfo.setProperty(WSDLServiceBuilder.WSDL_DEFINITION, null);
+        serviceInfo.setProperty(WSDLServiceBuilder.WSDL_SERVICE, null);
+        return serviceInfo;
+    }
+
+    protected JAXBDataReaderFactory getTestReaderFactory(Class<?> clz) throws Exception {
+        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
+        JAXBDataReaderFactory readerFacotry = new JAXBDataReaderFactory();
+        readerFacotry.setJAXBContext(ctx);
+        return readerFacotry;
+    }
+
+    protected JAXBDataWriterFactory getTestWriterFactory(Class<?> clz) throws Exception {
+        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
+        JAXBDataWriterFactory writerFacotry = new JAXBDataWriterFactory();
+        writerFacotry.setJAXBContext(ctx);
+        return writerFacotry;
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestBase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestBase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestUtil.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestUtil.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestUtil.java (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestUtil.java Fri Aug 25 06:16:36 2006
@@ -1,84 +1,84 @@
-package org.apache.cxf.binding.soap;
-
-import java.awt.Image;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.util.Collection;
-
-import javax.activation.DataHandler;
-import javax.imageio.ImageIO;
-import javax.mail.util.ByteArrayDataSource;
-
-import org.apache.cxf.binding.attachment.AttachmentImpl;
-import org.apache.cxf.binding.attachment.AttachmentUtil;
-import org.apache.cxf.bindings.soap.attachments.types.DetailType;
-import org.apache.cxf.interceptor.InterceptorChain;
-import org.apache.cxf.message.Attachment;
-import org.apache.cxf.message.Exchange;
-import org.apache.cxf.message.ExchangeImpl;
-import org.apache.cxf.message.MessageImpl;
-
-public final class TestUtil {
-
-    private TestUtil() {
-    }
-
-    public static DetailType createDetailObject(Class<?> clazz)
-        throws IOException {
-        
-        DetailType detailObj = new DetailType();
-        detailObj.setSName("hello world");        
-                
-        URL url1 = clazz.getResource("my.wav");
-        URL url2 = clazz.getResource("me.jpg");
-        Image image = ImageIO.read(new File(url2.getFile()));
-        detailObj.setPhoto(image);
-        File file = new File(url1.getFile());
-        FileInputStream fi = new FileInputStream(file);
-        byte[] buffer = new byte[(int) file.length()];
-        fi.read(buffer);
-        detailObj.setSound(buffer);
-        
-        return detailObj;        
-    }
-    
-    public static SoapMessage createSoapMessage(SoapVersion soapVersion,
-                                                InterceptorChain chain, Class<?> clazz)
-        throws IOException {        
-        
-        SoapMessage soapMessage = createEmptySoapMessage(soapVersion, chain);        
-        // setup the message result with attachment.class
-        ByteArrayDataSource bads = new ByteArrayDataSource(clazz.getResourceAsStream("primarySoapPart.xml"),
-                                                           "Application/xop+xml");
-        String cid = AttachmentUtil.createContentID("http://cxf.apache.org");
-        soapMessage.setContent(Attachment.class, new AttachmentImpl(cid, new DataHandler(bads)));
-
-        // setup the message attachments
-        Collection<Attachment> attachments = soapMessage.getAttachments();
-        String cidAtt1 = "cid:http://cxf.apache.org/me.jpg";
-        bads = new ByteArrayDataSource(clazz.getResourceAsStream("me.jpg"), "image/jpg");
-        AttachmentImpl att1 = new AttachmentImpl(cidAtt1, new DataHandler(bads));
-        att1.setXOP(true);
-        attachments.add(att1);
-        String cidAtt2 = "cid:http://cxf.apache.org/my.wav";
-        bads = new ByteArrayDataSource(clazz.getResourceAsStream("my.wav"),
-                                       "Application/octet-stream");
-        AttachmentImpl att2 = new AttachmentImpl(cidAtt2, new DataHandler(bads));
-        att2.setXOP(true);
-        attachments.add(att2);
-
-        return soapMessage;
-    }
-    
-    public static SoapMessage createEmptySoapMessage(SoapVersion soapVersion, InterceptorChain chain) {
-        Exchange exchange = new ExchangeImpl();
-        MessageImpl messageImpl = new MessageImpl();
-        messageImpl.setInterceptorChain(chain);
-        messageImpl.setExchange(exchange);
-        SoapMessage soapMessage = new SoapMessage(messageImpl);
-        soapMessage.setVersion(soapVersion);
-        return soapMessage;        
-    }
-}
+package org.apache.cxf.binding.soap;
+
+import java.awt.Image;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.net.URL;
+import java.util.Collection;
+
+import javax.activation.DataHandler;
+import javax.imageio.ImageIO;
+import javax.mail.util.ByteArrayDataSource;
+
+import org.apache.cxf.binding.attachment.AttachmentImpl;
+import org.apache.cxf.binding.attachment.AttachmentUtil;
+import org.apache.cxf.bindings.soap.attachments.types.DetailType;
+import org.apache.cxf.interceptor.InterceptorChain;
+import org.apache.cxf.message.Attachment;
+import org.apache.cxf.message.Exchange;
+import org.apache.cxf.message.ExchangeImpl;
+import org.apache.cxf.message.MessageImpl;
+
+public final class TestUtil {
+
+    private TestUtil() {
+    }
+
+    public static DetailType createDetailObject(Class<?> clazz)
+        throws IOException {
+        
+        DetailType detailObj = new DetailType();
+        detailObj.setSName("hello world");        
+                
+        URL url1 = clazz.getResource("my.wav");
+        URL url2 = clazz.getResource("me.jpg");
+        Image image = ImageIO.read(new File(url2.getFile()));
+        detailObj.setPhoto(image);
+        File file = new File(url1.getFile());
+        FileInputStream fi = new FileInputStream(file);
+        byte[] buffer = new byte[(int) file.length()];
+        fi.read(buffer);
+        detailObj.setSound(buffer);
+        
+        return detailObj;        
+    }
+    
+    public static SoapMessage createSoapMessage(SoapVersion soapVersion,
+                                                InterceptorChain chain, Class<?> clazz)
+        throws IOException {        
+        
+        SoapMessage soapMessage = createEmptySoapMessage(soapVersion, chain);        
+        // setup the message result with attachment.class
+        ByteArrayDataSource bads = new ByteArrayDataSource(clazz.getResourceAsStream("primarySoapPart.xml"),
+                                                           "Application/xop+xml");
+        String cid = AttachmentUtil.createContentID("http://cxf.apache.org");
+        soapMessage.setContent(Attachment.class, new AttachmentImpl(cid, new DataHandler(bads)));
+
+        // setup the message attachments
+        Collection<Attachment> attachments = soapMessage.getAttachments();
+        String cidAtt1 = "cid:http://cxf.apache.org/me.jpg";
+        bads = new ByteArrayDataSource(clazz.getResourceAsStream("me.jpg"), "image/jpg");
+        AttachmentImpl att1 = new AttachmentImpl(cidAtt1, new DataHandler(bads));
+        att1.setXOP(true);
+        attachments.add(att1);
+        String cidAtt2 = "cid:http://cxf.apache.org/my.wav";
+        bads = new ByteArrayDataSource(clazz.getResourceAsStream("my.wav"),
+                                       "Application/octet-stream");
+        AttachmentImpl att2 = new AttachmentImpl(cidAtt2, new DataHandler(bads));
+        att2.setXOP(true);
+        attachments.add(att2);
+
+        return soapMessage;
+    }
+    
+    public static SoapMessage createEmptySoapMessage(SoapVersion soapVersion, InterceptorChain chain) {
+        Exchange exchange = new ExchangeImpl();
+        MessageImpl messageImpl = new MessageImpl();
+        messageImpl.setInterceptorChain(chain);
+        messageImpl.setExchange(exchange);
+        SoapMessage soapMessage = new SoapMessage(messageImpl);
+        soapMessage.setVersion(soapVersion);
+        return soapMessage;        
+    }
+}

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/TestUtil.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/attachments/AttachmentTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitReq.xml (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitReq.xml Fri Aug 25 06:16:36 2006
@@ -1,13 +1,13 @@
-<?xml version="1.0" encoding="utf-8"?>
-<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
-		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
-		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-    <SOAP-ENV:Body>
-	<ns1:sendReceiveData xmlns:ns1="http://apache.org/hello_world_rpclit">
-	    <in xmlns:ns5="http://apache.org/hello_world_rpclit/types">
-		<ns5:elem1>this is element 1</ns5:elem1>
-		<ns5:elem2>this is element 2</ns5:elem2>
-	    <ns5:elem3>42</ns5:elem3></in>
-	</ns1:sendReceiveData>
-    </SOAP-ENV:Body>
+<?xml version="1.0" encoding="utf-8"?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
+		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <SOAP-ENV:Body>
+	<ns1:sendReceiveData xmlns:ns1="http://apache.org/hello_world_rpclit">
+	    <in xmlns:ns5="http://apache.org/hello_world_rpclit/types">
+		<ns5:elem1>this is element 1</ns5:elem1>
+		<ns5:elem2>this is element 2</ns5:elem2>
+	    <ns5:elem3>42</ns5:elem3></in>
+	</ns1:sendReceiveData>
+    </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitResp.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitResp.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitResp.xml (original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitResp.xml Fri Aug 25 06:16:36 2006
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
-		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
-		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-    <SOAP-ENV:Body>
-	<ns1:sendReceiveDataResponse xmlns:ns1="http://apache.org/hello_world_rpclit">
-	    <out xmlns:ns5="http://apache.org/hello_world_rpclit/types">
-		<ns5:elem1>return is element 1</ns5:elem1>
-		<ns5:elem2>return is element 2</ns5:elem2>
-		<ns5:elem3>42</ns5:elem3>
-	    </out>
-	</ns1:sendReceiveDataResponse>
-    </SOAP-ENV:Body>
-</SOAP-ENV:Envelope>
-
+<?xml version="1.0" encoding="utf-8" ?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
+		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <SOAP-ENV:Body>
+	<ns1:sendReceiveDataResponse xmlns:ns1="http://apache.org/hello_world_rpclit">
+	    <out xmlns:ns5="http://apache.org/hello_world_rpclit/types">
+		<ns5:elem1>return is element 1</ns5:elem1>
+		<ns5:elem2>return is element 2</ns5:elem2>
+		<ns5:elem3>42</ns5:elem3>
+	    </out>
+	</ns1:sendReceiveDataResponse>
+    </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>
+

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitResp.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitResp.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/resources/greetMeRpcLitResp.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message