Author: heiko.braun(a)jboss.com
Date: 2006-12-13 09:57:55 -0500 (Wed, 13 Dec 2006)
New Revision: 1639
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/client/
trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType2.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType3.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTest.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestService.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestTwo.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/ObjectFactory.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/client/package-info.java
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderAdmin.java
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineRequest.java
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineResponse.java
trunk/src/test/resources/jaxws/client/
trunk/src/test/resources/jaxws/client/META-INF/
trunk/src/test/resources/jaxws/client/META-INF/MTOMTestService.wsdl
Removed:
trunk/src/test/resources/xop/
Modified:
trunk/src/main/java/org/jboss/ws/Constants.java
trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
trunk/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
trunk/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
Log:
Fix JBCTS-429
Modified: trunk/src/main/java/org/jboss/ws/Constants.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/Constants.java 2006-12-13 13:36:59 UTC (rev 1638)
+++ trunk/src/main/java/org/jboss/ws/Constants.java 2006-12-13 14:57:55 UTC (rev 1639)
@@ -67,12 +67,28 @@
/** The namespace for the MTOM content type attribute. */
static final String NS_XML_MIME = "http://www.w3.org/2005/05/xmlmime";
/** The namespace for XOP. */
- static final String NS_XOP = "http://www.w3.org/2004/08/xop/include";
+ static final String NS_XOP = "http://www.w3.org/2004/08/xop/include";
+ /**
+ * A constant representing the identity of the SOAP 1.1 over HTTP binding.
+ */
+ public static final String SOAP11HTTP_BINDING =
"http://schemas.xmlsoap.org/wsdl/soap/http";
- /** A constant representing the identity of the SOAP 1.2 over HTTP binding. */
- static final String SOAP12HTTP_BINDING =
"http://www.w3.org/2003/05/soap/bindings/HTTP/";
- /** A constant representing the identity of the SOAP 1.1 over HTTP binding. */
- static final String SOAP11HTTP_BINDING =
"http://schemas.xmlsoap.org/wsdl/soap/http";
+ /**
+ * A constant representing the identity of the SOAP 1.2 over HTTP binding.
+ */
+ public static final String SOAP12HTTP_BINDING =
"http://www.w3.org/2003/05/soap/bindings/HTTP/";
+
+ /**
+ * A constant representing the identity of the SOAP 1.1 over HTTP binding
+ * with MTOM enabled by default.
+ */
+ public static final String SOAP11HTTP_MTOM_BINDING =
"http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";
+
+ /**
+ * A constant representing the identity of the SOAP 1.2 over HTTP binding
+ * with MTOM enabled by default.
+ */
+ public static final String SOAP12HTTP_MTOM_BINDING =
"http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";
/** SOAP-1.1 encoding URI */
static final String URI_SOAP11_ENC = SOAPConstants.URI_NS_SOAP_ENCODING;
Modified: trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -23,28 +23,6 @@
// $Id$
-import java.lang.reflect.Proxy;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.concurrent.Executor;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-
-import javax.jws.WebService;
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.EndpointReference;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.WebServiceFeature;
-import javax.xml.ws.Service.Mode;
-import javax.xml.ws.handler.HandlerResolver;
-import javax.xml.ws.spi.ServiceDelegate;
-
import org.jboss.logging.Logger;
import org.jboss.util.NotImplementedException;
import org.jboss.ws.Constants;
@@ -56,10 +34,27 @@
import org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder;
import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.ServiceMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import javax.jws.WebService;
+import javax.xml.bind.JAXBContext;
+import javax.xml.namespace.QName;
+import javax.xml.ws.*;
+import javax.xml.ws.Service.Mode;
+import javax.xml.ws.handler.HandlerResolver;
+import javax.xml.ws.spi.ServiceDelegate;
+import java.lang.reflect.Proxy;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.concurrent.Executor;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+
/**
* Service delegates are used internally by Service objects to allow pluggability of
JAX-WS implementations.
*
@@ -113,6 +108,8 @@
@Override
public <T> T getPort(QName portName, Class<T> seiClass)
{
+ assertSEIConstraints(seiClass);
+
if (serviceMetaData == null)
throw new WebServiceException("Service meta data not available");
@@ -133,8 +130,7 @@
*/
public <T> T getPort(Class<T> seiClass)
{
- if (seiClass == null)
- throw new IllegalArgumentException("service endpoint interface cannot be
null");
+ assertSEIConstraints(seiClass);
if (serviceMetaData == null)
throw new WebServiceException("Service meta data not available");
@@ -147,7 +143,28 @@
epMetaData = serviceMetaData.getEndpoints().get(0);
epMetaData.setServiceEndpointInterfaceName(seiClassName);
}
+ else
+ {
+ // resolve PortType by name
+ WebService ws = seiClass.getAnnotation(WebService.class);
+ String ns = ws.targetNamespace();
+ String name = ws.name();
+ // TODO: default name mapping when annotations not used
+ QName portTypeName = new QName(ns, name);
+
+ for(EndpointMetaData epmd : serviceMetaData.getEndpoints())
+ {
+ QName interfaceQName = epmd.getInterfaceQName(); // skip namespaces here
+ if( interfaceQName.getLocalPart().equals( portTypeName.getLocalPart() ) )
+ {
+ epmd.setServiceEndpointInterfaceName(seiClass.getName());
+ epMetaData = epmd;
+ break;
+ }
+ }
+ }
+
if (epMetaData == null)
throw new WebServiceException("Cannot get port meta data for: " +
seiClassName);
@@ -157,24 +174,26 @@
private <T> T getPortInternal(EndpointMetaData epMetaData, Class<T>
seiClass)
{
QName portName = epMetaData.getQName();
- if (seiClass.isAnnotationPresent(WebService.class))
+
+ // Adjust the endpoint meta data according to the annotations
+ if (annotatedPorts.contains(portName) == false)
{
- // Adjust the endpoint meta data according to the annotations
- if (annotatedPorts.contains(portName) == false)
- {
- JAXWSClientEndpointMetaDataBuilder metaDataBuilder = new
JAXWSClientEndpointMetaDataBuilder();
- metaDataBuilder.rebuildEndpointMetaData(epMetaData, seiClass);
- }
+ JAXWSClientEndpointMetaDataBuilder metaDataBuilder = new
JAXWSClientEndpointMetaDataBuilder();
+ metaDataBuilder.rebuildEndpointMetaData(epMetaData, seiClass);
}
- else
- {
- // TODO: should'nt this throw an exception?
- log.warn("SEI is missing @WebService annotation: " + seiClass);
- }
return (T)createProxy(seiClass, epMetaData);
}
+ private void assertSEIConstraints(Class seiClass) {
+
+ if (seiClass == null)
+ throw new IllegalArgumentException("Service endpoint interface cannot be
null");
+
+ if(!seiClass.isAnnotationPresent(WebService.class))
+ throw new WebServiceException("SEI is missing @WebService annotation:
" + seiClass);
+ }
+
@Override
/**
* Creates a new port for the service.
Modified: trunk/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -23,55 +23,42 @@
// $Id$
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.management.ObjectName;
-import javax.wsdl.Definition;
-import javax.wsdl.Import;
-import javax.wsdl.Port;
-import javax.wsdl.Service;
-import javax.wsdl.extensions.ExtensibilityElement;
-import javax.wsdl.extensions.UnknownExtensibilityElement;
-import javax.wsdl.extensions.soap.SOAPAddress;
-import javax.xml.namespace.QName;
-
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.core.CommonSOAPBinding;
import org.jboss.ws.core.jaxrpc.Use;
import org.jboss.ws.core.server.ServiceEndpointManager;
import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.core.utils.ObjectNameFactory;
-import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedEjbPortComponentMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedMessageDrivenMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedWebMetaData;
-import org.jboss.ws.metadata.j2ee.UnifiedWebSecurityMetaData;
+import org.jboss.ws.metadata.j2ee.*;
import
org.jboss.ws.metadata.j2ee.UnifiedWebSecurityMetaData.UnifiedWebResourceCollection;
import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
-import org.jboss.ws.metadata.wsdl.NCName;
-import org.jboss.ws.metadata.wsdl.WSDLBinding;
-import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
-import org.jboss.ws.metadata.wsdl.WSDLInterface;
-import org.jboss.ws.metadata.wsdl.WSDLService;
+import org.jboss.ws.metadata.wsdl.*;
import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
import org.jboss.ws.metadata.wsse.WSSecurityConfigurationFactory;
import org.w3c.dom.Element;
+import javax.management.ObjectName;
+import javax.wsdl.Definition;
+import javax.wsdl.Import;
+import javax.wsdl.Port;
+import javax.wsdl.Service;
+import javax.wsdl.extensions.ExtensibilityElement;
+import javax.wsdl.extensions.UnknownExtensibilityElement;
+import javax.wsdl.extensions.soap.SOAPAddress;
+import javax.xml.namespace.QName;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
/** An abstract meta data builder.
*
* @author Thomas.Diesler(a)jboss.org
@@ -128,9 +115,9 @@
WSDLBinding wsdlBinding =
wsdlDefinitions.getBindingByInterfaceName(wsdlInterface.getQName());
String bindingType = wsdlBinding.getType();
if (Constants.NS_SOAP11.equals(bindingType))
- epMetaData.setBindingId(CommonSOAPBinding.SOAP11HTTP_BINDING);
+ epMetaData.setBindingId(Constants.SOAP11HTTP_BINDING);
else if (Constants.NS_SOAP12.equals(bindingType))
- epMetaData.setBindingId(CommonSOAPBinding.SOAP12HTTP_BINDING);
+ epMetaData.setBindingId(Constants.SOAP12HTTP_BINDING);
}
/** Initialize the endpoint encoding style from the binding operations
Modified: trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -36,7 +36,6 @@
import org.jboss.ws.core.jaxws.JAXBDeserializerFactory;
import org.jboss.ws.core.jaxws.JAXBSerializerFactory;
import org.jboss.ws.core.utils.JavaUtils;
-import org.jboss.ws.core.CommonSOAPBinding;
import org.jboss.ws.metadata.config.WSCommonConfig;
import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
@@ -175,10 +174,10 @@
public void setBindingId(String bindingId)
{
- if (!CommonSOAPBinding.SOAP11HTTP_BINDING.equals(bindingId)
- && !CommonSOAPBinding.SOAP12HTTP_BINDING.equals(bindingId)
- && !CommonSOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(bindingId)
- && !CommonSOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bindingId))
+ if (!Constants.SOAP11HTTP_BINDING.equals(bindingId)
+ && !Constants.SOAP12HTTP_BINDING.equals(bindingId)
+ && !Constants.SOAP11HTTP_MTOM_BINDING.equals(bindingId)
+ && !Constants.SOAP12HTTP_MTOM_BINDING.equals(bindingId))
{
throw new WSException("Unsupported binding: " + bindingId);
}
Modified: trunk/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -23,21 +23,19 @@
// $Id$
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.management.ObjectName;
-import javax.xml.namespace.QName;
-
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.ServiceEndpoint;
import org.jboss.ws.metadata.config.WSCommonConfig;
import org.jboss.ws.metadata.config.WSConfigFactory;
import org.jboss.ws.metadata.config.jaxrpc.WSConfigRootJAXRPC;
import org.jboss.ws.metadata.config.jaxws.WSConfigRootJAXWS;
import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+import javax.management.ObjectName;
+import javax.xml.namespace.QName;
+import java.net.MalformedURLException;
+import java.net.URL;
+
/**
* Client side endpoint meta data.
*
@@ -71,7 +69,7 @@
// The optional transport guarantee
private String transportGuarantee;
// The bean that registers with the ServiceEndpointManager
- private String managedEndpointBean = ServiceEndpoint.class.getName();
+ private String managedEndpointBean =
"org.jboss.ws.core.server.ServiceEndpoint";
public ServerEndpointMetaData(ServiceMetaData service, QName qname, QName
interfaceQName, Type type)
{
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType.java 2006-12-13 13:36:59
UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType.java 2006-12-13 14:57:55
UTC (rev 1639)
@@ -0,0 +1,374 @@
+
+package org.jboss.test.ws.jaxws.client;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.*;
+import javax.xml.transform.Source;
+import java.awt.*;
+
+
+/**
+ * <p>Java class for DataType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="DataType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="docName1"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docName2"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docName3"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docName4"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl1"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl2"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl3"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl4"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="doc1"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="doc2"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="doc3"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="doc4"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DataType", propOrder = {
+ "docName1",
+ "docName2",
+ "docName3",
+ "docName4",
+ "docUrl1",
+ "docUrl2",
+ "docUrl3",
+ "docUrl4",
+ "doc1",
+ "doc2",
+ "doc3",
+ "doc4"
+})
+public class DataType {
+
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName1;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName2;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName3;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName4;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl1;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl2;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl3;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl4;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("text/xml")
+ protected Source doc1;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("application/xml")
+ protected Source doc2;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("text/html")
+ protected DataHandler doc3;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("image/jpeg")
+ protected Image doc4;
+
+ /**
+ * Gets the value of the docName1 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName1() {
+ return docName1;
+ }
+
+ /**
+ * Sets the value of the docName1 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName1(String value) {
+ this.docName1 = value;
+ }
+
+ /**
+ * Gets the value of the docName2 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName2() {
+ return docName2;
+ }
+
+ /**
+ * Sets the value of the docName2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName2(String value) {
+ this.docName2 = value;
+ }
+
+ /**
+ * Gets the value of the docName3 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName3() {
+ return docName3;
+ }
+
+ /**
+ * Sets the value of the docName3 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName3(String value) {
+ this.docName3 = value;
+ }
+
+ /**
+ * Gets the value of the docName4 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName4() {
+ return docName4;
+ }
+
+ /**
+ * Sets the value of the docName4 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName4(String value) {
+ this.docName4 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl1 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl1() {
+ return docUrl1;
+ }
+
+ /**
+ * Sets the value of the docUrl1 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl1(String value) {
+ this.docUrl1 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl2 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl2() {
+ return docUrl2;
+ }
+
+ /**
+ * Sets the value of the docUrl2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl2(String value) {
+ this.docUrl2 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl3 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl3() {
+ return docUrl3;
+ }
+
+ /**
+ * Sets the value of the docUrl3 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl3(String value) {
+ this.docUrl3 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl4 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl4() {
+ return docUrl4;
+ }
+
+ /**
+ * Sets the value of the docUrl4 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl4(String value) {
+ this.docUrl4 = value;
+ }
+
+ /**
+ * Gets the value of the doc1 property.
+ *
+ * @return
+ * possible object is
+ * {@link Source }
+ *
+ */
+ public Source getDoc1() {
+ return doc1;
+ }
+
+ /**
+ * Sets the value of the doc1 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Source }
+ *
+ */
+ public void setDoc1(Source value) {
+ this.doc1 = value;
+ }
+
+ /**
+ * Gets the value of the doc2 property.
+ *
+ * @return
+ * possible object is
+ * {@link Source }
+ *
+ */
+ public Source getDoc2() {
+ return doc2;
+ }
+
+ /**
+ * Sets the value of the doc2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Source }
+ *
+ */
+ public void setDoc2(Source value) {
+ this.doc2 = value;
+ }
+
+ /**
+ * Gets the value of the doc3 property.
+ *
+ * @return
+ * possible object is
+ * {@link DataHandler }
+ *
+ */
+ public DataHandler getDoc3() {
+ return doc3;
+ }
+
+ /**
+ * Sets the value of the doc3 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link DataHandler }
+ *
+ */
+ public void setDoc3(DataHandler value) {
+ this.doc3 = value;
+ }
+
+ /**
+ * Gets the value of the doc4 property.
+ *
+ * @return
+ * possible object is
+ * {@link Image }
+ *
+ */
+ public Image getDoc4() {
+ return doc4;
+ }
+
+ /**
+ * Sets the value of the doc4 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Image }
+ *
+ */
+ public void setDoc4(Image value) {
+ this.doc4 = value;
+ }
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType2.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType2.java 2006-12-13 13:36:59
UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType2.java 2006-12-13 14:57:55
UTC (rev 1639)
@@ -0,0 +1,514 @@
+
+package org.jboss.test.ws.jaxws.client;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.*;
+import javax.xml.transform.Source;
+import java.awt.*;
+
+
+/**
+ * <p>Java class for DataType2 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="DataType2">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="docName1"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docName2"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docName3"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docName4"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl1"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl2"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl3"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl4"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl11"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl12"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl13"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="docUrl14"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="doc1"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="doc2"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="doc3"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="doc4"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="result"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DataType2", propOrder = {
+ "docName1",
+ "docName2",
+ "docName3",
+ "docName4",
+ "docUrl1",
+ "docUrl2",
+ "docUrl3",
+ "docUrl4",
+ "docUrl11",
+ "docUrl12",
+ "docUrl13",
+ "docUrl14",
+ "doc1",
+ "doc2",
+ "doc3",
+ "doc4",
+ "result"
+})
+public class DataType2 {
+
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName1;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName2;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName3;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docName4;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl1;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl2;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl3;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl4;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl11;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl12;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl13;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String docUrl14;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("text/xml")
+ protected Source doc1;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("application/xml")
+ protected Source doc2;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("text/html")
+ protected DataHandler doc3;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("image/jpeg")
+ protected Image doc4;
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ protected String result;
+
+ /**
+ * Gets the value of the docName1 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName1() {
+ return docName1;
+ }
+
+ /**
+ * Sets the value of the docName1 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName1(String value) {
+ this.docName1 = value;
+ }
+
+ /**
+ * Gets the value of the docName2 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName2() {
+ return docName2;
+ }
+
+ /**
+ * Sets the value of the docName2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName2(String value) {
+ this.docName2 = value;
+ }
+
+ /**
+ * Gets the value of the docName3 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName3() {
+ return docName3;
+ }
+
+ /**
+ * Sets the value of the docName3 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName3(String value) {
+ this.docName3 = value;
+ }
+
+ /**
+ * Gets the value of the docName4 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocName4() {
+ return docName4;
+ }
+
+ /**
+ * Sets the value of the docName4 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocName4(String value) {
+ this.docName4 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl1 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl1() {
+ return docUrl1;
+ }
+
+ /**
+ * Sets the value of the docUrl1 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl1(String value) {
+ this.docUrl1 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl2 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl2() {
+ return docUrl2;
+ }
+
+ /**
+ * Sets the value of the docUrl2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl2(String value) {
+ this.docUrl2 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl3 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl3() {
+ return docUrl3;
+ }
+
+ /**
+ * Sets the value of the docUrl3 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl3(String value) {
+ this.docUrl3 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl4 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl4() {
+ return docUrl4;
+ }
+
+ /**
+ * Sets the value of the docUrl4 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl4(String value) {
+ this.docUrl4 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl11 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl11() {
+ return docUrl11;
+ }
+
+ /**
+ * Sets the value of the docUrl11 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl11(String value) {
+ this.docUrl11 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl12 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl12() {
+ return docUrl12;
+ }
+
+ /**
+ * Sets the value of the docUrl12 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl12(String value) {
+ this.docUrl12 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl13 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl13() {
+ return docUrl13;
+ }
+
+ /**
+ * Sets the value of the docUrl13 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl13(String value) {
+ this.docUrl13 = value;
+ }
+
+ /**
+ * Gets the value of the docUrl14 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocUrl14() {
+ return docUrl14;
+ }
+
+ /**
+ * Sets the value of the docUrl14 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocUrl14(String value) {
+ this.docUrl14 = value;
+ }
+
+ /**
+ * Gets the value of the doc1 property.
+ *
+ * @return
+ * possible object is
+ * {@link Source }
+ *
+ */
+ public Source getDoc1() {
+ return doc1;
+ }
+
+ /**
+ * Sets the value of the doc1 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Source }
+ *
+ */
+ public void setDoc1(Source value) {
+ this.doc1 = value;
+ }
+
+ /**
+ * Gets the value of the doc2 property.
+ *
+ * @return
+ * possible object is
+ * {@link Source }
+ *
+ */
+ public Source getDoc2() {
+ return doc2;
+ }
+
+ /**
+ * Sets the value of the doc2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Source }
+ *
+ */
+ public void setDoc2(Source value) {
+ this.doc2 = value;
+ }
+
+ /**
+ * Gets the value of the doc3 property.
+ *
+ * @return
+ * possible object is
+ * {@link DataHandler }
+ *
+ */
+ public DataHandler getDoc3() {
+ return doc3;
+ }
+
+ /**
+ * Sets the value of the doc3 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link DataHandler }
+ *
+ */
+ public void setDoc3(DataHandler value) {
+ this.doc3 = value;
+ }
+
+ /**
+ * Gets the value of the doc4 property.
+ *
+ * @return
+ * possible object is
+ * {@link Image }
+ *
+ */
+ public Image getDoc4() {
+ return doc4;
+ }
+
+ /**
+ * Sets the value of the doc4 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Image }
+ *
+ */
+ public void setDoc4(Image value) {
+ this.doc4 = value;
+ }
+
+ /**
+ * Gets the value of the result property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getResult() {
+ return result;
+ }
+
+ /**
+ * Sets the value of the result property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setResult(String value) {
+ this.result = value;
+ }
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType3.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType3.java 2006-12-13 13:36:59
UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/DataType3.java 2006-12-13 14:57:55
UTC (rev 1639)
@@ -0,0 +1,61 @@
+
+package org.jboss.test.ws.jaxws.client;
+
+import javax.xml.bind.annotation.*;
+import java.awt.*;
+
+
+/**
+ * <p>Java class for DataType3 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="DataType3">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="doc"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DataType3", propOrder = {
+ "doc"
+})
+public class DataType3 {
+
+ @XmlElement(namespace = "http://mtomtestservice.org/xsd")
+ @XmlMimeType("image/jpeg")
+ protected Image doc;
+
+ /**
+ * Gets the value of the doc property.
+ *
+ * @return
+ * possible object is
+ * {@link Image }
+ *
+ */
+ public Image getDoc() {
+ return doc;
+ }
+
+ /**
+ * Sets the value of the doc property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Image }
+ *
+ */
+ public void setDoc(Image value) {
+ this.doc = value;
+ }
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTest.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTest.java 2006-12-13 13:36:59
UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTest.java 2006-12-13 14:57:55
UTC (rev 1639)
@@ -0,0 +1,127 @@
+
+package org.jboss.test.ws.jaxws.client;
+
+import javax.activation.DataHandler;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.ParameterStyle;
+import javax.xml.transform.Source;
+import javax.xml.ws.Holder;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+import java.awt.*;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "MTOMTest", targetNamespace =
"http://mtomtestservice.org/wsdl", wsdlLocation =
"./MTOMTestService.wsdl")
+public interface MTOMTest {
+
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(operationName = "MTOMIn")
+ @WebResult(name = "MTOMInResponse", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "result")
+ @SOAPBinding(parameterStyle = ParameterStyle.BARE)
+ public String mtomIn(
+ @WebParam(name = "MTOMIn", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "data")
+ DataType data);
+
+ /**
+ *
+ * @param doc1
+ * @param docName1
+ * @param docUrl2
+ * @param docName4
+ * @param doc2
+ * @param docUrl13
+ * @param docName2
+ * @param docUrl14
+ * @param docUrl12
+ * @param docName3
+ * @param docUrl4
+ * @param doc3
+ * @param docUrl1
+ * @param result
+ * @param docUrl11
+ * @param doc4
+ * @param docUrl3
+ */
+ @WebMethod(operationName = "MTOMInOut")
+ @RequestWrapper(localName = "MTOMInOut", targetNamespace =
"http://mtomtestservice.org/xsd", className =
"org.jboss.test.ws.jaxws.client.DataType2")
+ @ResponseWrapper(localName = "MTOMInOutResponse", targetNamespace =
"http://mtomtestservice.org/xsd", className =
"org.jboss.test.ws.jaxws.client.DataType2")
+ public void mtomInOut(
+ @WebParam(name = "docName1", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docName1,
+ @WebParam(name = "docName2", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docName2,
+ @WebParam(name = "docName3", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docName3,
+ @WebParam(name = "docName4", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docName4,
+ @WebParam(name = "docUrl1", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl1,
+ @WebParam(name = "docUrl2", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl2,
+ @WebParam(name = "docUrl3", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl3,
+ @WebParam(name = "docUrl4", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl4,
+ @WebParam(name = "docUrl11", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl11,
+ @WebParam(name = "docUrl12", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl12,
+ @WebParam(name = "docUrl13", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl13,
+ @WebParam(name = "docUrl14", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> docUrl14,
+ @WebParam(name = "doc1", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<Source> doc1,
+ @WebParam(name = "doc2", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<Source> doc2,
+ @WebParam(name = "doc3", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<DataHandler> doc3,
+ @WebParam(name = "doc4", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<Image> doc4,
+ @WebParam(name = "result", targetNamespace =
"http://mtomtestservice.org/xsd", mode = Mode.INOUT)
+ Holder<String> result);
+
+ /**
+ *
+ * @param urls
+ * @return
+ * returns org.jboss.test.ws.jaxws.client.DataType
+ */
+ @WebMethod(operationName = "MTOMOut")
+ @WebResult(name = "MTOMOutResponse", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "data")
+ @SOAPBinding(parameterStyle = ParameterStyle.BARE)
+ public DataType mtomOut(
+ @WebParam(name = "MTOMOut", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "urls")
+ String urls);
+
+ /**
+ *
+ * @param urls
+ * @return
+ * returns org.jboss.test.ws.jaxws.client.DataType3
+ */
+ @WebMethod(operationName = "MTOMOut2")
+ @WebResult(name = "MTOMOut2Response", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "data")
+ @SOAPBinding(parameterStyle = ParameterStyle.BARE)
+ public DataType3 mtomOut2(
+ @WebParam(name = "MTOMOut2", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "urls")
+ String urls);
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestService.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestService.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestService.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,69 @@
+
+package org.jboss.test.ws.jaxws.client;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import org.jboss.test.ws.jaxws.client.MTOMTest;
+import org.jboss.test.ws.jaxws.client.MTOMTestService;
+import org.jboss.test.ws.jaxws.client.MTOMTestTwo;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "MTOMTestService", targetNamespace =
"http://mtomtestservice.org/wsdl", wsdlLocation =
"./MTOMTestService.wsdl")
+public class MTOMTestService
+ extends Service
+{
+
+ private final static URL WSDL_LOCATION;
+ private final static QName MTOMTESTSERVICE = new
QName("http://mtomtestservice.org/wsdl", "MTOMTestService");
+ private final static QName MTOMTESTPORT = new
QName("http://mtomtestservice.org/wsdl", "MTOMTestPort");
+ private final static QName MTOMTESTTWOPORT = new
QName("http://mtomtestservice.org/wsdl", "MTOMTestTwoPort");
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("file:/home/hbraun/dev/prj/jbossws/trunk/src/test/resources/jaxws/client/META-INF/MTOMTestService.wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public MTOMTestService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public MTOMTestService() {
+ super(WSDL_LOCATION, MTOMTESTSERVICE);
+ }
+
+ /**
+ *
+ * @return
+ * returns MTOMTest
+ */
+ @WebEndpoint(name = "MTOMTestPort")
+ public MTOMTest getMTOMTestPort() {
+ return (MTOMTest)super.getPort(MTOMTESTPORT, MTOMTest.class);
+ }
+
+ /**
+ *
+ * @return
+ * returns MTOMTestTwo
+ */
+ @WebEndpoint(name = "MTOMTestTwoPort")
+ public MTOMTestTwo getMTOMTestTwoPort() {
+ return (MTOMTestTwo)super.getPort(MTOMTESTTWOPORT, MTOMTestTwo.class);
+ }
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestTwo.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestTwo.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/MTOMTestTwo.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,37 @@
+
+package org.jboss.test.ws.jaxws.client;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.ParameterStyle;
+import org.jboss.test.ws.jaxws.client.DataType3;
+import org.jboss.test.ws.jaxws.client.MTOMTestTwo;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "MTOMTestTwo", targetNamespace =
"http://mtomtestservice.org/wsdl", wsdlLocation =
"./MTOMTestService.wsdl")
+public interface MTOMTestTwo {
+
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(operationName = "MTOMIn2")
+ @WebResult(name = "MTOMIn2Response", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "data")
+ @SOAPBinding(parameterStyle = ParameterStyle.BARE)
+ public String mtomIn2(
+ @WebParam(name = "MTOMIn2", targetNamespace =
"http://mtomtestservice.org/xsd", partName = "data")
+ DataType3 data);
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/ObjectFactory.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/ObjectFactory.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/ObjectFactory.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,163 @@
+
+package org.jboss.test.ws.jaxws.client;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+import org.jboss.test.ws.jaxws.client.DataType;
+import org.jboss.test.ws.jaxws.client.DataType2;
+import org.jboss.test.ws.jaxws.client.DataType3;
+import org.jboss.test.ws.jaxws.client.ObjectFactory;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.client package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _MTOMOut_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMOut");
+ private final static QName _MTOMOut2Response_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMOut2Response");
+ private final static QName _MTOMIn2_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMIn2");
+ private final static QName _MTOMIn_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMIn");
+ private final static QName _MTOMInOutResponse_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMInOutResponse");
+ private final static QName _MTOMInResponse_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMInResponse");
+ private final static QName _MTOMOutResponse_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMOutResponse");
+ private final static QName _MTOMIn2Response_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMIn2Response");
+ private final static QName _MTOMInOut_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMInOut");
+ private final static QName _MTOMOut2_QNAME = new
QName("http://mtomtestservice.org/xsd", "MTOMOut2");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.client
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link DataType3 }
+ *
+ */
+ public DataType3 createDataType3() {
+ return new DataType3();
+ }
+
+ /**
+ * Create an instance of {@link DataType }
+ *
+ */
+ public DataType createDataType() {
+ return new DataType();
+ }
+
+ /**
+ * Create an instance of {@link DataType2 }
+ *
+ */
+ public DataType2 createDataType2() {
+ return new DataType2();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMOut")
+ public JAXBElement<String> createMTOMOut(String value) {
+ return new JAXBElement<String>(_MTOMOut_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DataType3 }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMOut2Response")
+ public JAXBElement<DataType3> createMTOMOut2Response(DataType3 value) {
+ return new JAXBElement<DataType3>(_MTOMOut2Response_QNAME, DataType3
.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DataType3 }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMIn2")
+ public JAXBElement<DataType3> createMTOMIn2(DataType3 value) {
+ return new JAXBElement<DataType3>(_MTOMIn2_QNAME, DataType3 .class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DataType }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMIn")
+ public JAXBElement<DataType> createMTOMIn(DataType value) {
+ return new JAXBElement<DataType>(_MTOMIn_QNAME, DataType.class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DataType2 }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMInOutResponse")
+ public JAXBElement<DataType2> createMTOMInOutResponse(DataType2 value) {
+ return new JAXBElement<DataType2>(_MTOMInOutResponse_QNAME, DataType2
.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMInResponse")
+ public JAXBElement<String> createMTOMInResponse(String value) {
+ return new JAXBElement<String>(_MTOMInResponse_QNAME, String.class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DataType }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMOutResponse")
+ public JAXBElement<DataType> createMTOMOutResponse(DataType value) {
+ return new JAXBElement<DataType>(_MTOMOutResponse_QNAME, DataType.class,
null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMIn2Response")
+ public JAXBElement<String> createMTOMIn2Response(String value) {
+ return new JAXBElement<String>(_MTOMIn2Response_QNAME, String.class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DataType2 }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMInOut")
+ public JAXBElement<DataType2> createMTOMInOut(DataType2 value) {
+ return new JAXBElement<DataType2>(_MTOMInOut_QNAME, DataType2 .class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://mtomtestservice.org/xsd", name =
"MTOMOut2")
+ public JAXBElement<String> createMTOMOut2(String value) {
+ return new JAXBElement<String>(_MTOMOut2_QNAME, String.class, null,
value);
+ }
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java 2006-12-13
13:36:59 UTC (rev 1638)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,29 @@
+package org.jboss.test.ws.jaxws.client;
+
+import junit.framework.TestCase;
+
+import javax.xml.ws.Service;
+import javax.xml.namespace.QName;
+import java.io.File;
+import java.net.URL;
+
+public class ServiceDelegateTestCase extends TestCase {
+
+ String WSDL_LOC = "resources/jaxws/client/META-INF/MTOMTestService.wsdl";
+
+ public void testPortBySEI() throws Exception
+ {
+ File f = new File(WSDL_LOC);
+ assertTrue("WSDL file not found", f.exists());
+
+ URL wsdlLocation = new URL("file:" +WSDL_LOC);
+ QName serviceName = new
QName("http://mtomtestservice.org/wsdl",
"MTOMTestService");
+ Service service = Service.create( wsdlLocation, serviceName );
+
+ MTOMTest port = service.getPort(MTOMTest.class);
+ assertNotNull("Failed to create port.", port);
+
+ }
+
+
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/client/package-info.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/client/package-info.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/client/package-info.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://mtomtestservice.org/xsd")
+package org.jboss.test.ws.jaxws.client;
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderAdmin.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderAdmin.java 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderAdmin.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,36 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.retail;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.ejb.Remote;
+
+@Remote
+@WebService(name = "OrderAdmin", targetNamespace =
"http://org.jboss.ws/samples/retail")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface OrderAdmin {
+
+ @WebMethod
+ public OrderLineResponse checkOrderLines(OrderLineRequest request);
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineRequest.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineRequest.java 2006-12-13
13:36:59 UTC (rev 1638)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineRequest.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,20 @@
+package org.jboss.test.ws.jaxws.samples.retail;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: hbraun
+ * Date: 13.12.2006
+ * Time: 14:18:27
+ * To change this template use File | Settings | File Templates.
+ */
+public class OrderLineRequest {
+ private String reqKey;
+
+ public String getReqKey() {
+ return reqKey;
+ }
+
+ public void setReqKey(String reqKey) {
+ this.reqKey = reqKey;
+ }
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineResponse.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineResponse.java 2006-12-13
13:36:59 UTC (rev 1638)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineResponse.java 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,20 @@
+package org.jboss.test.ws.jaxws.samples.retail;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: hbraun
+ * Date: 13.12.2006
+ * Time: 14:19:03
+ * To change this template use File | Settings | File Templates.
+ */
+public class OrderLineResponse {
+ private int ordersInLine;
+
+ public int getOrdersInLine() {
+ return ordersInLine;
+ }
+
+ public void setOrdersInLine(int ordersInLine) {
+ this.ordersInLine = ordersInLine;
+ }
+}
Added: trunk/src/test/resources/jaxws/client/META-INF/MTOMTestService.wsdl
===================================================================
--- trunk/src/test/resources/jaxws/client/META-INF/MTOMTestService.wsdl 2006-12-13
13:36:59 UTC (rev 1638)
+++ trunk/src/test/resources/jaxws/client/META-INF/MTOMTestService.wsdl 2006-12-13
14:57:55 UTC (rev 1639)
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<definitions
+ name="MTOMTestService"
+
targetNamespace="http://mtomtestservice.org/wsdl"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://mtomtestservice.org/wsdl"
+
xmlns:s="http://mtomtestservice.org/xsd"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <types>
+ <schema
xmlns="http://www.w3.org/2001/XMLSchema"
+
targetNamespace="http://mtomtestservice.org/xsd"
+
xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
+ elementFormDefault="qualified">
+
+ <complexType name="DataType">
+ <sequence>
+ <element name="docName1" type="string"/>
+ <element name="docName2" type="string"/>
+ <element name="docName3" type="string"/>
+ <element name="docName4" type="string"/>
+ <element name="docUrl1" type="string"/>
+ <element name="docUrl2" type="string"/>
+ <element name="docUrl3" type="string"/>
+ <element name="docUrl4" type="string"/>
+ <element name="doc1" type="base64Binary"
xmime:expectedContentTypes="text/xml"/>
+ <element name="doc2" type="base64Binary"
xmime:expectedContentTypes="application/xml"/>
+ <element name="doc3" type="base64Binary"
xmime:expectedContentTypes="text/html"/>
+ <element name="doc4" type="base64Binary"
xmime:expectedContentTypes="image/jpeg"/>
+ </sequence>
+ </complexType>
+ <complexType name="DataType2">
+ <sequence>
+ <element name="docName1" type="string"/>
+ <element name="docName2" type="string"/>
+ <element name="docName3" type="string"/>
+ <element name="docName4" type="string"/>
+ <element name="docUrl1" type="string"/>
+ <element name="docUrl2" type="string"/>
+ <element name="docUrl3" type="string"/>
+ <element name="docUrl4" type="string"/>
+ <element name="docUrl11" type="string"/>
+ <element name="docUrl12" type="string"/>
+ <element name="docUrl13" type="string"/>
+ <element name="docUrl14" type="string"/>
+ <element name="doc1" type="base64Binary"
xmime:expectedContentTypes="text/xml"/>
+ <element name="doc2" type="base64Binary"
xmime:expectedContentTypes="application/xml"/>
+ <element name="doc3" type="base64Binary"
xmime:expectedContentTypes="text/html"/>
+ <element name="doc4" type="base64Binary"
xmime:expectedContentTypes="image/jpeg"/>
+ <element name="result" type="string"/>
+ </sequence>
+ </complexType>
+ <complexType name="DataType3">
+ <sequence>
+ <element name="doc" type="base64Binary"
xmime:expectedContentTypes="image/jpeg"/>
+ </sequence>
+ </complexType>
+ <element name="MTOMIn" type="s:DataType"/>
+ <element name="MTOMInResponse" type="xsd:string"/>
+ <element name="MTOMIn2" type="s:DataType3"/>
+ <element name="MTOMIn2Response" type="xsd:string"/>
+ <element name="MTOMInOut" type="s:DataType2"/>
+ <element name="MTOMInOutResponse"
type="s:DataType2"/>
+ <element name="MTOMOut" type="xsd:string"/>
+ <element name="MTOMOutResponse" type="s:DataType"/>
+ <element name="MTOMOut2" type="xsd:string"/>
+ <element name="MTOMOut2Response" type="s:DataType3"/>
+ </schema>
+ </types>
+ <message name="MTOMInRequest">
+ <part name="data" element="s:MTOMIn"/>
+ </message>
+ <message name="MTOMInResponse">
+ <part name="result" element="s:MTOMInResponse"/>
+ </message>
+ <message name="MTOMIn2Request">
+ <part name="data" element="s:MTOMIn2"/>
+ </message>
+ <message name="MTOMIn2Response">
+ <part name="data" element="s:MTOMIn2Response"/>
+ </message>
+ <message name="MTOMInOutRequest">
+ <part name="data" element="s:MTOMInOut"/>
+ </message>
+ <message name="MTOMInOutResponse">
+ <part name="data" element="s:MTOMInOutResponse"/>
+ </message>
+ <message name="MTOMOutRequest">
+ <part name="urls" element="s:MTOMOut"/>
+ </message>
+ <message name="MTOMOutResponse">
+ <part name="data" element="s:MTOMOutResponse"/>
+ </message>
+ <message name="MTOMOut2Request">
+ <part name="urls" element="s:MTOMOut2"/>
+ </message>
+ <message name="MTOMOut2Response">
+ <part name="data" element="s:MTOMOut2Response"/>
+ </message>
+
+ <portType name="MTOMTest">
+ <operation name="MTOMIn">
+ <input message="tns:MTOMInRequest"/>
+ <output message="tns:MTOMInResponse"/>
+ </operation>
+ <operation name="MTOMInOut">
+ <input message="tns:MTOMInOutRequest"/>
+ <output message="tns:MTOMInOutResponse"/>
+ </operation>
+ <operation name="MTOMOut">
+ <input message="tns:MTOMOutRequest"/>
+ <output message="tns:MTOMOutResponse"/>
+ </operation>
+ <operation name="MTOMOut2">
+ <input message="tns:MTOMOut2Request"/>
+ <output message="tns:MTOMOut2Response"/>
+ </operation>
+ </portType>
+
+ <portType name="MTOMTestTwo">
+ <operation name="MTOMIn2">
+ <input message="tns:MTOMIn2Request"/>
+ <output message="tns:MTOMIn2Response"/>
+ </operation>
+ </portType>
+
+ <binding name="MTOMBinding" type="tns:MTOMTest">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="MTOMIn">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="MTOMInOut">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="MTOMOut">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="MTOMOut2">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <binding name="MTOMBindingTwo" type="tns:MTOMTestTwo">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="MTOMIn2">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="MTOMTestService">
+ <port name="MTOMTestPort" binding="tns:MTOMBinding">
+ <soap:address
location="http://localhost:8080/W2JDLMTOMTest/jaxws/MTOMTest"/>
+ </port>
+ <port name="MTOMTestTwoPort"
binding="tns:MTOMBindingTwo">
+ <soap:address
location="http://localhost:8080/W2JDLMTOMTest/jaxws/MTOMTestTwo"/>
+ </port>
+ </service>
+</definitions>
Property changes on: trunk/src/test/resources/jaxws/client/META-INF/MTOMTestService.wsdl
___________________________________________________________________
Name: svn:executable
+ *