Author: alessio.soldano(a)jboss.com
Date: 2013-07-05 08:53:28 -0400 (Fri, 05 Jul 2013)
New Revision: 584
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/DataQuery.java
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/Endpoint.java
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointImpl.java
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointService.wsdl
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/ObjectFactory.java
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/XmlJavaTypeAdapterIntegrationTest.java
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/package-info.java
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/web.xml
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/wsdl/
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/wsdl/EndpointService.wsdl
Modified:
core/trunk/integration-testsuite/common/pom.xml
Log:
Adding testcase using a wsdl causing Wise to fail; turned out to be a CXF bug, hence
excluding the test for now.
[CXF-5110] Wrong processing of @XmlJavaTypeAdapter with RPC style endpoints
Modified: core/trunk/integration-testsuite/common/pom.xml
===================================================================
--- core/trunk/integration-testsuite/common/pom.xml 2013-07-05 12:46:14 UTC (rev 583)
+++ core/trunk/integration-testsuite/common/pom.xml 2013-07-05 12:53:28 UTC (rev 584)
@@ -134,6 +134,40 @@
</configuration>
</execution>
<execution>
+ <id>war-it-adapter</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ <configuration>
+ <webXml>${basedir}/src/test/resources/WEB-INF/adapter/web.xml</webXml>
+ <warName>adapter</warName>
+ <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
+ <webappDirectory>${project.build.directory}/adapter</webappDirectory>
+ <warSourceExcludes>**/lib/**</warSourceExcludes>
+ <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
+ <webResources>
+ <webResource>
+ <targetPath>WEB-INF/classes</targetPath>
+ <directory>${basedir}/target/test-classes/</directory>
+ <includes>
+ <include>**/adapter/*.class</include>
+ </includes>
+ <excludes>
+ <exclude>**/*Test.class</exclude>
+ </excludes>
+ </webResource>
+ <webResource>
+ <targetPath>WEB-INF</targetPath>
+ <directory>${basedir}/src/test/resources/WEB-INF/adapter/</directory>
+ <includes>
+ <include>**/*.*</include>
+ </includes>
+ </webResource>
+ </webResources>
+ </configuration>
+ </execution>
+ <execution>
<id>war-it-complex</id>
<phase>pre-integration-test</phase>
<goals>
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/DataQuery.java
===================================================================
---
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/DataQuery.java
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/DataQuery.java 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,80 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.wise.test.integration.adapter;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for dataQuery complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="dataQuery">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="query"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "dataQuery", propOrder = {
+ "query"
+})
+public class DataQuery {
+
+ protected String query;
+
+ /**
+ * Gets the value of the query property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getQuery() {
+ return query;
+ }
+
+ /**
+ * Sets the value of the query property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setQuery(String value) {
+ this.query = value;
+ }
+
+}
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/Endpoint.java
===================================================================
---
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/Endpoint.java
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/Endpoint.java 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.wise.test.integration.adapter;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+@WebService(targetNamespace = "http://www.jboss.org/wise/adapter/", name =
"Endpoint")
+(a)XmlSeeAlso({ObjectFactory.class})
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface Endpoint {
+
+ @WebResult(name = "mimepart", targetNamespace =
"http://www.jboss.org/wise/adapter/", partName = "mimepart")
+ @XmlJavaTypeAdapter(value = HexBinaryAdapter.class)
+ @WebMethod
+ public byte[] getData(
+ @WebParam(partName = "dataQuery", mode = WebParam.Mode.INOUT, name =
"dataQuery")
+ javax.xml.ws.Holder<DataQuery> dataQuery
+ );
+}
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointImpl.java
===================================================================
---
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointImpl.java
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointImpl.java 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.wise.test.integration.adapter;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+@WebService(targetNamespace = "http://www.jboss.org/wise/adapter/",
+ name = "Endpoint",
+ serviceName = "EndpointService",
+ portName = "EndpointPort",
+ endpointInterface = "org.jboss.wise.test.integration.adapter.Endpoint",
+ wsdlLocation = "WEB-INF/wsdl/EndpointService.wsdl")
+public class EndpointImpl implements Endpoint {
+
+ @WebResult(name = "mimepart", targetNamespace =
"http://www.jboss.org/wise/adapter/", partName = "mimepart")
+ @XmlJavaTypeAdapter(value = HexBinaryAdapter.class)
+ @WebMethod
+ public byte[] getData(@WebParam(partName = "dataQuery", mode =
WebParam.Mode.INOUT, name = "dataQuery") javax.xml.ws.Holder<DataQuery>
dataQuery) {
+ return new byte[]{0, 1};
+ }
+}
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointService.wsdl
===================================================================
---
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointService.wsdl
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/EndpointService.wsdl 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="EndpointService"
targetNamespace="http://www.jboss.org/wise/adapter/"
xmlns:mime='http://schemas.xmlsoap.org/wsdl/mime/'
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.jboss.org/wise/adapter/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ <wsdl:types>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.jboss.org/wise/adapter/">
+ <xs:complexType name="dataQuery">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="query"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
+ </wsdl:types>
+ <wsdl:message name="getData">
+ <wsdl:part name="dataQuery" type="tns:dataQuery">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="getDataResponse">
+ <wsdl:part name="mimepart" type="xsd:hexBinary">
+<!-- <wsdl:part name="mimepart"
type="xsd:base64Binary">-->
+ </wsdl:part>
+ <wsdl:part name="dataQuery" type="tns:dataQuery">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="Endpoint">
+ <wsdl:operation name="getData" parameterOrder="dataQuery">
+ <wsdl:input name="getData" message="tns:getData">
+ </wsdl:input>
+ <wsdl:output name="getDataResponse"
message="tns:getDataResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="EndpointServiceSoapBinding"
type="tns:Endpoint">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="getData">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input name="getData">
+ <soap:body use="literal"
namespace="http://www.jboss.org/wise/adapter/"/>
+ </wsdl:input>
+ <wsdl:output name="getDataResponse">
+ <mime:multipartRelated>
+ <mime:part>
+ <soap:body
namespace='http://www.jboss.org/wise/adapter/'
use='literal'/>
+ </mime:part>
+ <mime:part>
+ <mime:content part='mimepart' type='multipart/*'/>
+ </mime:part>
+ </mime:multipartRelated>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="EndpointService">
+ <wsdl:port name="EndpointPort"
binding="tns:EndpointServiceSoapBinding">
+ <soap:address location="http://localhost:9090/EndpointPort"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/ObjectFactory.java
===================================================================
---
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/ObjectFactory.java
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/ObjectFactory.java 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,40 @@
+
+package org.jboss.wise.test.integration.adapter;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.wise.test.integration.adapter 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 {
+
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.wise.test.integration.adapter
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link DataQuery }
+ *
+ */
+ public DataQuery createDataQuery() {
+ return new DataQuery();
+ }
+
+}
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/XmlJavaTypeAdapterIntegrationTest.java
===================================================================
---
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/XmlJavaTypeAdapterIntegrationTest.java
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/XmlJavaTypeAdapterIntegrationTest.java 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,119 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.wise.test.integration.adapter;
+
+import java.io.ByteArrayOutputStream;
+import java.lang.reflect.ParameterizedType;
+import java.net.URL;
+import java.util.Map;
+
+import javax.jws.WebParam;
+import javax.xml.ws.Holder;
+
+import org.jboss.wise.core.client.InvocationResult;
+import org.jboss.wise.core.client.WSDynamicClient;
+import org.jboss.wise.core.client.WSMethod;
+import org.jboss.wise.core.client.WebParameter;
+import org.jboss.wise.core.client.builder.WSDynamicClientBuilder;
+import org.jboss.wise.core.client.factories.WSDynamicClientFactory;
+import org.jboss.wise.core.test.WiseTest;
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ *
+ * @author alessio.soldano(a)jboss.com
+ *
+ */
+public class XmlJavaTypeAdapterIntegrationTest extends WiseTest {
+
+ @SuppressWarnings({ "unchecked", "rawtypes" })
+ @Test
+ @Ignore("[CXF-5110] Wrong processing of @XmlJavaTypeAdapter with RPC style
endpoints")
+ public void shouldPreviewRequest() throws Exception {
+ URL wsdlUrl =
XmlJavaTypeAdapterIntegrationTest.class.getResource("EndpointService.wsdl");
+ WSDynamicClientBuilder clientBuilder = WSDynamicClientFactory.getJAXWSClientBuilder();
+ WSDynamicClient client = null;
+ try {
+ client =
clientBuilder.tmpDir("target/temp/wise").verbose(true).keepSource(true).wsdlURL(wsdlUrl.toString()).build();
+ WSMethod method = client.getWSMethod("EndpointService",
"EndpointPort", "getData");
+ Map<String, ? extends WebParameter> pars = method.getWebParams();
+ WebParameter customerPar = pars.get("dataQuery");
+ Assert.assertEquals(WebParam.Mode.INOUT, customerPar.getMode());
+ Assert.assertEquals(Holder.class, (Class<?>) ((ParameterizedType)
customerPar.getType()).getRawType());
+ Class<?> dataQueryClass = (Class<?>) ((ParameterizedType)
customerPar.getType()).getActualTypeArguments()[0];
+ Object dataQuery = dataQueryClass.newInstance();
+ dataQueryClass.getMethod("setQuery", String.class).invoke(dataQuery,
"test this now");
+ Map<String, Object> args = new java.util.HashMap<String, Object>();
+ args.put("dataQuery", new Holder(dataQuery));
+ ByteArrayOutputStream bos = new ByteArrayOutputStream();
+ method.writeRequestPreview(args, bos);
+ Assert.assertTrue(bos.toString().contains("test this now"));
+ } finally {
+ if (client != null) {
+ client.close();
+ }
+ }
+ }
+
+ @SuppressWarnings({ "unchecked", "rawtypes" })
+ @Test
+ @Ignore("[CXF-5110] Wrong processing of @XmlJavaTypeAdapter with RPC style
endpoints")
+ public void shouldPreviewAndInvoke() throws Exception {
+ URL warUrl =
XmlJavaTypeAdapterIntegrationTest.class.getClassLoader().getResource("adapter.war");
+ WSDynamicClientBuilder clientBuilder = WSDynamicClientFactory.getJAXWSClientBuilder();
+ WSDynamicClient client = null;
+ try {
+ deployWS(warUrl);
+ URL wsdlUrl = new URL(getServerHostAndPort() + "/adapter/Endpoint?wsdl");
+ client =
clientBuilder.tmpDir("target/temp/wise").verbose(true).keepSource(true).wsdlURL(wsdlUrl.toString()).build();
+ WSMethod method = client.getWSMethod("EndpointService",
"EndpointPort", "getData");
+ Map<String, ? extends WebParameter> pars = method.getWebParams();
+ WebParameter customerPar = pars.get("dataQuery");
+ Assert.assertEquals(WebParam.Mode.INOUT, customerPar.getMode());
+ Assert.assertEquals(Holder.class, (Class<?>) ((ParameterizedType)
customerPar.getType()).getRawType());
+ Class<?> dataQueryClass = (Class<?>) ((ParameterizedType)
customerPar.getType()).getActualTypeArguments()[0];
+ Object dataQuery = dataQueryClass.newInstance();
+ dataQueryClass.getMethod("setQuery", String.class).invoke(dataQuery,
"test this now");
+ Map<String, Object> args = new java.util.HashMap<String, Object>();
+ args.put("dataQuery", new Holder(dataQuery));
+ ByteArrayOutputStream bos = new ByteArrayOutputStream();
+ method.writeRequestPreview(args, bos);
+ Assert.assertTrue(bos.toString().contains("test this now"));
+
+ InvocationResult result = method.invoke(args);
+ Map<String, Object> res = result.getMapRequestAndResult(null, null);
+ Map<String, Object> test = (Map<String, Object>)
res.get("results");
+ Assert.assertEquals(byte[].class, test.get("type.result"));
+ byte[] bytes = (byte[])test.get("result");
+ Assert.assertNotNull(bytes);
+ Assert.assertEquals(2, bytes.length);
+ Assert.assertEquals(0, bytes[0]);
+ Assert.assertEquals(1, bytes[1]);
+ } finally {
+ if (client != null) {
+ client.close();
+ }
+ }
+ }
+}
Added:
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/package-info.java
===================================================================
---
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/package-info.java
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/adapter/package-info.java 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://www.jboss.org/wise/adapter/")
+package org.jboss.wise.test.integration.adapter;
Added: core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/web.xml
===================================================================
--- core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/web.xml
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/web.xml 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>EndpointServlet</servlet-name>
+
<servlet-class>org.jboss.wise.test.integration.adapter.EndpointImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>EndpointServlet</servlet-name>
+ <url-pattern>/Endpoint</url-pattern>
+ </servlet-mapping>
+</web-app>
Added:
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/wsdl/EndpointService.wsdl
===================================================================
---
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/wsdl/EndpointService.wsdl
(rev 0)
+++
core/trunk/integration-testsuite/common/src/test/resources/WEB-INF/adapter/wsdl/EndpointService.wsdl 2013-07-05
12:53:28 UTC (rev 584)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="EndpointService"
targetNamespace="http://www.jboss.org/wise/adapter/"
xmlns:mime='http://schemas.xmlsoap.org/wsdl/mime/'
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.jboss.org/wise/adapter/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ <wsdl:types>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.jboss.org/wise/adapter/">
+ <xs:complexType name="dataQuery">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="query"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
+ </wsdl:types>
+ <wsdl:message name="getData">
+ <wsdl:part name="dataQuery" type="tns:dataQuery">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="getDataResponse">
+ <wsdl:part name="mimepart" type="xsd:hexBinary">
+ </wsdl:part>
+ <wsdl:part name="dataQuery" type="tns:dataQuery">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="Endpoint">
+ <wsdl:operation name="getData" parameterOrder="dataQuery">
+ <wsdl:input name="getData" message="tns:getData">
+ </wsdl:input>
+ <wsdl:output name="getDataResponse"
message="tns:getDataResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="EndpointServiceSoapBinding"
type="tns:Endpoint">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="getData">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input name="getData">
+ <soap:body use="literal"
namespace="http://www.jboss.org/wise/adapter/"/>
+ </wsdl:input>
+ <wsdl:output name="getDataResponse">
+ <mime:multipartRelated>
+ <mime:part>
+ <soap:body
namespace='http://www.jboss.org/wise/adapter/'
use='literal'/>
+ </mime:part>
+ <mime:part>
+ <mime:content part='mimepart' type='multipart/*'/>
+ </mime:part>
+ </mime:multipartRelated>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="EndpointService">
+ <wsdl:port name="EndpointPort"
binding="tns:EndpointServiceSoapBinding">
+ <soap:address location="http://localhost:9090/EndpointPort"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>