You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2005/09/27 13:53:55 UTC
svn commit: r291916 [1/2] - in
/webservices/axis2/trunk/java/modules/integration: doclit-interop/
doclit-interop/clients/ doclit-interop/clients/test/ itest-resources/WSDLs/
Author: deepal
Date: Tue Sep 27 04:53:35 2005
New Revision: 291916
URL: http://svn.apache.org/viewcvs?rev=291916&view=rev
Log:
Applying Gayans patch , Interop testings.
It seems that he has done a great job.
Added:
webservices/axis2/trunk/java/modules/integration/doclit-interop/
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/ASPNetRound3Compound1InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3Compound2InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitInteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitparamInteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound1InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound2InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DocLitInteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitHeadersInteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitparamInteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound1InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound2InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3DoclitparamInteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound1InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound2InteropTest.java
webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3DoclitInteropTest.java
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/Stkv3Compound1.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLit.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLitParameters.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound1.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound2.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound1.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound2.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/interoptestdoclit.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/interoptestdoclitparameters.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/interoptestheaders.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/stkv3Compound2.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/stkv3interopTestDocLit.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/stkv3interopTestDocLitParameters.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/suncompound1.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/suncompound2.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/sundoclit.wsdl
webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/sundoclitparams.wsdl
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/ASPNetRound3Compound1InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/ASPNetRound3Compound1InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/ASPNetRound3Compound1InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/ASPNetRound3Compound1InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,83 @@
+ package test;
+
+ import junit.framework.TestCase;
+
+ import java.rmi.RemoteException;
+
+ import test.stub.Compound1SoapStub;
+ import test.stub.databinding.org.soapinterop.*;
+
+ /**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 6:34:39 PM
+ * To change this template use File | Settings | File Templates.
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 22, 2005
+ * Time: 9:52:33 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ASPNetRound3Compound1InteropTest extends TestCase{
+
+
+
+
+ Compound1SoapStub stub = null;
+ XDocumentDocument1 xDocDoc1 = null;
+ Document doc = null;
+ String id = "Document1";
+ String val = "this is a document";
+ XPersonDocument persDoc = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ double age = 25;
+ boolean male = true;
+ float personID = (float)456.3123;
+ ResultPersonDocument retPersDoc =null;
+ Person retPers = null;
+
+
+
+ ResultDocumentDocument1 retDoc1 = null;
+ Document retDoc=null;
+
+ public void setUp() throws Exception {
+ stub = new Compound1SoapStub();
+ }
+
+ public void testEchoDocument() throws Exception {
+
+ doc = Document.Factory.newInstance();
+ xDocDoc1 = XDocumentDocument1.Factory.newInstance();
+ doc.setStringValue(val);
+ doc.setID(id);
+ xDocDoc1.setXDocument(doc);
+ retDoc1 = stub.echoDocument(xDocDoc1);
+ retDoc =retDoc1.getResultDocument();
+ //id = "nothing"; //to fail the test
+ assertEquals(id,retDoc.getID());
+ assertEquals(val,retDoc.getStringValue());
+ }
+
+ public void testEchoPerson() throws RemoteException {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setAge(age);
+ person.setMale(male);
+ person.setID(personID);
+ persDoc = XPersonDocument.Factory.newInstance();
+ persDoc.setXPerson(person);
+ retPersDoc = stub.echoPerson(persDoc);
+ retPers = retPersDoc.getResultPerson();
+ assertEquals(name,retPers.getName());
+ assertEquals(age,retPers.getAge(),0);
+ assertEquals(male,retPers.getMale());
+ assertEquals(personID,retPers.getID(),0);
+ }
+ }
+
+
+
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3Compound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3Compound2InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3Compound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3Compound2InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,56 @@
+package test;
+
+import junit.framework.TestCase;
+import test.stub.Compound2SoapStub;
+import test.stub.databinding.org.soapinterop.XEmployeeDocument;
+import test.stub.databinding.org.soapinterop.Employee;
+import test.stub.databinding.org.soapinterop.Person;
+import test.stub.databinding.org.soapinterop.ResultEmployeeDocument;
+
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 8:01:59 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class AspNetRound3Compound2InteropTest extends TestCase{
+
+ Compound2SoapStub stub = null;
+ XEmployeeDocument xEmpDoc = null;
+ Employee emp = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ boolean male = true;
+ float personID = (float)456.3123;
+ int id = 123456;
+ double sal = 15000;
+ ResultEmployeeDocument retEmpDoc = null;
+ Employee retEmployee = null;
+
+
+ public void setUp() throws Exception {
+ stub = new Compound2SoapStub();
+ }
+
+ public void testEchoEmployee() throws Exception {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setMale(male);
+ emp = Employee.Factory.newInstance();
+ emp.setPerson(person);
+ emp.setID(id);
+ emp.setSalary(sal);
+ xEmpDoc = XEmployeeDocument.Factory.newInstance();
+ xEmpDoc.setXEmployee(emp);
+ retEmpDoc = stub.echoEmployee(xEmpDoc);
+ retEmployee = retEmpDoc.getResultEmployee();
+ assertEquals(name,retEmployee.getPerson().getName());
+ assertEquals(male,retEmployee.getPerson().getMale());
+ assertEquals(id,retEmployee.getID());
+ assertEquals(sal,retEmployee.getSalary(),0);
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitInteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitInteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitInteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitInteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,71 @@
+package test;
+
+import junit.framework.TestCase;
+import java.rmi.RemoteException;
+import test.stub.databinding.org.soapinterop.*;
+import test.stub.WSDLInteropTestDocLitSoapStub;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 16, 2005
+ * Time: 9:29:53 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class AspNetRound3DoclitInteropTest extends TestCase{
+
+ WSDLInteropTestDocLitSoapStub stub = null;
+ EchoStringParamDocument strParaDoc = null;
+ String str = "Gayan Asanka";
+ EchoStringReturnDocument retStrDoc = null;
+ EchoStringArrayParamDocument strArrayParaDoc = null;
+ ArrayOfString strLitArr = null;
+ EchoStringArrayReturnDocument retArrayDoc = null;
+ String[] strArry = {"String 1", "String 2", "String 3"};
+ ArrayOfString retArray = null;
+ EchoStructParamDocument structParaDoc = null;
+ SOAPStruct soapStruct = null;
+ float flt = (float)1234.456;
+ int i = 123456;
+ EchoStructReturnDocument retStructDoc = null;
+ SOAPStruct retStruct = null;
+
+ public void setUp() throws Exception {
+ stub = new WSDLInteropTestDocLitSoapStub();
+ }
+
+ public void testEchoString() throws RemoteException {
+ strParaDoc = EchoStringParamDocument.Factory.newInstance();
+ strParaDoc.setEchoStringParam(str);
+ retStrDoc = stub.echoString(strParaDoc);
+ assertEquals(str,retStrDoc.getEchoStringReturn());
+ }
+
+ public void testEchoStringArray() throws RemoteException {
+ strLitArr = ArrayOfString.Factory.newInstance();
+ strLitArr.setStringArray(strArry);
+ strArrayParaDoc = EchoStringArrayParamDocument.Factory.newInstance();
+ strArrayParaDoc.setEchoStringArrayParam(strLitArr);
+ retArrayDoc = stub.echoStringArray(strArrayParaDoc);
+ retArray=retArrayDoc.getEchoStringArrayReturn();
+ assertEquals(strArry[0],retArray.getStringArray()[0]);
+ assertEquals(strArry[1],retArray.getStringArray()[1]);
+ assertEquals(strArry[2],retArray.getStringArray()[2]);
+ }
+
+ public void testEchoStruct() throws RemoteException {
+ soapStruct = SOAPStruct.Factory.newInstance();
+ soapStruct.setVarFloat(flt);
+ soapStruct.setVarInt(i);
+ soapStruct.setVarString(str);
+ structParaDoc = EchoStructParamDocument.Factory.newInstance();
+ structParaDoc.setEchoStructParam(soapStruct);
+ retStructDoc = stub.echoStruct(structParaDoc);
+ retStruct = retStructDoc.getEchoStructReturn();
+ assertEquals(flt,retStruct.getVarFloat(),0);
+ assertEquals(i,retStruct.getVarInt());
+ assertEquals(str,retStruct.getVarString());
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitparamInteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitparamInteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitparamInteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/AspNetRound3DoclitparamInteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,82 @@
+package test;
+
+import junit.framework.TestCase;
+import java.rmi.RemoteException;
+import test.stub.databinding.org.soapinterop.*;
+import test.stub.WSDLInteropTestDocLitParametersSoapStub;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 16, 2005
+ * Time: 9:29:53 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class AspNetRound3DoclitparamInteropTest extends TestCase{
+
+ WSDLInteropTestDocLitParametersSoapStub stub = null;
+ EchoStringDocument strParaDoc = null;
+ EchoStringDocument.EchoString echoStr = null;
+ String str = "Gayan Asanka";
+ EchoStringResponseDocument retStrDoc = null;
+ EchoStringArrayDocument strArrayParaDoc = null;
+ EchoStringArrayDocument.EchoStringArray echoStrArray = null;
+ ArrayOfString strLitArr = null;
+ EchoStringArrayResponseDocument retArrayDoc = null;
+ String[] strArry = {"String 1", "String 2", "String 3"};
+ ArrayOfString retArray = null;
+ EchoStructDocument structParaDoc = null;
+ SOAPStruct soapStruct = null;
+ float flt = (float)1234.456;
+ int i = 123456;
+ EchoStructDocument.EchoStruct echoStruct = null;
+ EchoStructResponseDocument retStructDoc = null;
+ SOAPStruct retStruct = null;
+
+
+ public void setUp() throws Exception {
+ stub = new WSDLInteropTestDocLitParametersSoapStub();
+ }
+
+ public void testEchoString() throws RemoteException {
+ echoStr= EchoStringDocument.EchoString.Factory.newInstance();
+ echoStr.setParam0(str);
+ strParaDoc = EchoStringDocument.Factory.newInstance();
+ strParaDoc.setEchoString(echoStr);
+ retStrDoc = stub.echoString(strParaDoc);
+ assertEquals(str,retStrDoc.getEchoStringResponse().getReturn());
+ }
+
+ public void testEchoStringArray() throws Exception {
+ strLitArr = ArrayOfString.Factory.newInstance();
+ strLitArr.setStringArray(strArry);
+ echoStrArray = EchoStringArrayDocument.EchoStringArray.Factory.newInstance();
+ echoStrArray.setParam0(strLitArr);
+ strArrayParaDoc = EchoStringArrayDocument.Factory.newInstance();
+ strArrayParaDoc.setEchoStringArray1(echoStrArray);
+ retArrayDoc = stub.echoStringArray(strArrayParaDoc);
+ retArray=retArrayDoc.getEchoStringArrayResponse().getReturn();
+ assertEquals(strArry[0],retArray.getStringArray()[0]);
+ assertEquals(strArry[1],retArray.getStringArray()[1]);
+ assertEquals(strArry[2],retArray.getStringArray()[2]);
+ }
+
+ public void testEchoStruct() throws Exception {
+ soapStruct = SOAPStruct.Factory.newInstance();
+ soapStruct.setVarFloat(flt);
+ soapStruct.setVarInt(i);
+ soapStruct.setVarString(str);
+ echoStruct = EchoStructDocument.EchoStruct.Factory.newInstance();
+ echoStruct.setParam0(soapStruct);
+ structParaDoc = EchoStructDocument.Factory.newInstance();
+ structParaDoc.setEchoStruct(echoStruct);
+ retStructDoc = stub.echoStruct(structParaDoc);
+ retStruct = retStructDoc.addNewEchoStructResponse().getReturn();
+ assertEquals(flt,retStruct.getVarFloat(),0);
+ assertEquals(i,retStruct.getVarInt());
+ assertEquals(str,retStruct.getVarString());
+
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound1InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound1InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound1InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound1InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,72 @@
+package test;
+
+import junit.framework.TestCase;
+
+import java.rmi.RemoteException;
+
+import test.stub.SoapInteropCompound1PortTypeStub;
+import test.stub.databinding.org.soapinterop.*;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 6:34:39 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class MsStkv3Round3Compound1InteropTest extends TestCase{
+
+
+ SoapInteropCompound1PortTypeStub stub = null;
+ XDocumentDocument1 xDocDoc1 = null;
+ Document doc = null;
+ String id = "Document1";
+ String val = "this is a document";
+ XPersonDocument persDoc = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ double age = 25;
+ boolean male = true;
+ float personID = (float)456.3123;
+ ResultPersonDocument retPersDoc =null;
+ Person retPers = null;
+
+
+
+ ResultDocumentDocument1 retDoc1 = null;
+ Document retDoc=null;
+
+ public void setUp() throws Exception {
+ stub = new SoapInteropCompound1PortTypeStub();
+ }
+
+ public void testEchoDocument() throws Exception {
+
+ doc = Document.Factory.newInstance();
+ xDocDoc1 = XDocumentDocument1.Factory.newInstance();
+ doc.setStringValue(val);
+ doc.setID(id);
+ xDocDoc1.setXDocument(doc);
+ retDoc1 = stub.echoDocument(xDocDoc1);
+ retDoc =retDoc1.getResultDocument();
+ //id = "nothing"; //to fail the test
+ assertEquals(id,retDoc.getID());
+ assertEquals(val,retDoc.getStringValue());
+ }
+
+ public void testEchoPerson() throws RemoteException {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setAge(age);
+ person.setMale(male);
+ person.setID(personID);
+ persDoc = XPersonDocument.Factory.newInstance();
+ persDoc.setXPerson(person);
+ retPersDoc = stub.echoPerson(persDoc);
+ retPers = retPersDoc.getResultPerson();
+ assertEquals(name,retPers.getName());
+ assertEquals(age,retPers.getAge(),0);
+ assertEquals(male,retPers.getMale());
+ assertEquals(personID,retPers.getID(),0);
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound2InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/MsStkv3Round3Compound2InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,56 @@
+package test;
+
+import junit.framework.TestCase;
+import test.stub.SoapInteropCompound2PortTypeStub;
+import test.stub.databinding.org.soapinterop.XEmployeeDocument;
+import test.stub.databinding.org.soapinterop.Employee;
+import test.stub.databinding.org.soapinterop.Person;
+import test.stub.databinding.org.soapinterop.ResultEmployeeDocument;
+
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 8:01:59 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class MsStkv3Round3Compound2InteropTest extends TestCase{
+
+ SoapInteropCompound2PortTypeStub stub = null;
+ XEmployeeDocument xEmpDoc = null;
+ Employee emp = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ boolean male = true;
+ float personID = (float)456.3123;
+ int id = 123456;
+ double sal = 15000;
+ ResultEmployeeDocument retEmpDoc = null;
+ Employee retEmployee = null;
+
+
+ public void setUp() throws Exception {
+ stub = new SoapInteropCompound2PortTypeStub();
+ }
+
+ public void testEchoEmployee() throws Exception {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setMale(male);
+ emp = Employee.Factory.newInstance();
+ emp.setPerson(person);
+ emp.setID(id);
+ emp.setSalary(sal);
+ xEmpDoc = XEmployeeDocument.Factory.newInstance();
+ xEmpDoc.setXEmployee(emp);
+ retEmpDoc = stub.echoEmployee(xEmpDoc);
+ retEmployee = retEmpDoc.getResultEmployee();
+ assertEquals(name,retEmployee.getPerson().getName());
+ assertEquals(male,retEmployee.getPerson().getMale());
+ assertEquals(id,retEmployee.getID());
+ assertEquals(sal,retEmployee.getSalary(),0);
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DocLitInteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DocLitInteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DocLitInteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DocLitInteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,38 @@
+//package test;
+//
+//import junit.framework.TestCase;
+//import org.soapinterop.xsd.Document;
+//import org.soapinterop.xsd.XDocumentDocument1;
+//import org.soapinterop.xsd.Person;
+//import org.soapinterop.xsd.XPersonDocument;
+//import test.stub1.SoapInteropCompound1PortTypeStub;
+//
+///**
+// * Created by IntelliJ IDEA.
+// * User: Gayan
+// * Date: Sep 15, 2005
+// * Time: 11:58:15 AM
+// * To change this template use File | Settings | File Templates.
+// */
+//public class Round3DocLitInteropTest extends TestCase{
+//
+// public void testTest1() throws Exception{
+// SoapInteropCompound1PortTypeStub stub = new SoapInteropCompound1PortTypeStub();
+// Document xDoc = Document.Factory.newInstance();
+// xDoc.setID("123");
+// xDoc.setStringValue("Gayan Asanka");
+// XDocumentDocument1 doc = XDocumentDocument1.Factory.newInstance();
+// doc.setXDocument(xDoc);
+// System.out.println( stub.echoDocument(doc));
+//
+// Person pers = Person.Factory.newInstance();
+// pers.setName("Gayan Asanka");
+// pers.setAge(28);
+// pers.setID((float)123.456);
+// pers.setMale(true);
+// XPersonDocument xPersDoc = XPersonDocument.Factory.newInstance();
+// xPersDoc.setXPerson(pers);
+// System.out.println(stub.echoPerson(xPersDoc));
+// }
+//
+//}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitHeadersInteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitHeadersInteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitHeadersInteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitHeadersInteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,43 @@
+package test;
+
+import test.stub.RetHeaderPortTypeStub;
+import test.stub.databinding.org.soapinterop.*;
+import org.apache.axis2.AxisFault;
+import junit.framework.TestCase;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 22, 2005
+ * Time: 4:03:00 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round3DoclitHeadersInteropTest extends TestCase{
+
+ RetHeaderPortTypeStub stub = null;
+ Header2 h2 = null;
+ Header2Document h2Doc = null;
+ Header1 h1 = null;
+ Header1Document h1Doc = null;
+ EchoStringParamDocument paraDoc = null;
+ String str = "String Parameter";
+
+
+ public void testEchoString() throws Exception{
+ stub = new RetHeaderPortTypeStub();
+ h2 = Header2.Factory.newInstance();
+ h2.setInt(456);
+ h2.setString("Header2 para");
+ h2Doc = Header2Document.Factory.newInstance();
+ h2Doc.setHeader2(h2);
+ h1 = Header1.Factory.newInstance();
+ h1.setInt(123);
+ h1.setString("string header1 para");
+ h1Doc = Header1Document.Factory.newInstance();
+ h1Doc.setHeader1(h1);
+ paraDoc = EchoStringParamDocument.Factory.newInstance();
+ paraDoc.setEchoStringParam(str);
+ EchoStringReturnDocument retDoc = stub.echoString(paraDoc, h1Doc, h2Doc);
+ assertEquals(str,retDoc.getEchoStringReturn());
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitparamInteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitparamInteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitparamInteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/Round3DoclitparamInteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,91 @@
+package test;
+
+import junit.framework.TestCase;
+import java.rmi.RemoteException;
+import test.stub.databinding.org.soapinterop.*;
+import test.stub.WSDLInteropTestDocLitPortTypeStub;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 16, 2005
+ * Time: 9:29:53 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Round3DoclitparamInteropTest extends TestCase{
+
+ WSDLInteropTestDocLitPortTypeStub stub = null;
+ EchoStringDocument strParaDoc = null;
+ EchoStringDocument.EchoString echoStr = null;
+ String str = "Gayan Asanka";
+ EchoStringResponseDocument retStrDoc = null;
+ EchoStringArrayDocument strArrayParaDoc = null;
+ EchoStringArrayDocument.EchoStringArray echoStrArray = null;
+ ArrayOfstringLiteral strLitArr = null;
+ EchoStringArrayResponseDocument retArrayDoc = null;
+ String[] strArry = {"String 1", "String 2", "String 3"};
+ ArrayOfstringLiteral retArray = null;
+ EchoStructDocument structParaDoc = null;
+ SOAPStruct soapStruct = null;
+ float flt = (float)1234.456;
+ int i = 123456;
+ EchoStructDocument.EchoStruct echoStruct = null;
+ EchoStructResponseDocument retStructDoc = null;
+ SOAPStruct retStruct = null;
+ EchoVoidDocument.EchoVoid echoVoid = null;
+ EchoVoidDocument echVoidDoc = null;
+ EchoVoidResponseDocument echoVoidResDoc=null;
+
+ public void setUp() throws Exception {
+ stub = new WSDLInteropTestDocLitPortTypeStub();
+ }
+
+ public void testEchoString() throws RemoteException {
+ echoStr= EchoStringDocument.EchoString.Factory.newInstance();
+ echoStr.setParam0(str);
+ strParaDoc = EchoStringDocument.Factory.newInstance();
+ strParaDoc.setEchoString(echoStr);
+ retStrDoc = stub.echoString(strParaDoc);
+ assertEquals(str,retStrDoc.getEchoStringResponse().getReturn());
+ }
+
+ public void testEchoStringArray() throws RemoteException {
+ strLitArr = ArrayOfstringLiteral.Factory.newInstance();
+ strLitArr.setStringArray(strArry);
+ echoStrArray = EchoStringArrayDocument.EchoStringArray.Factory.newInstance();
+ echoStrArray.setParam0(strLitArr);
+ strArrayParaDoc = EchoStringArrayDocument.Factory.newInstance();
+ strArrayParaDoc.setEchoStringArray1(echoStrArray);
+ retArrayDoc = stub.echoStringArray(strArrayParaDoc);
+ retArray=retArrayDoc.getEchoStringArrayResponse().getReturn();
+ assertEquals(strArry[0],retArray.getStringArray()[0]);
+ assertEquals(strArry[1],retArray.getStringArray()[1]);
+ assertEquals(strArry[2],retArray.getStringArray()[2]);
+ }
+
+ public void testEchoStruct() throws RemoteException {
+ soapStruct = SOAPStruct.Factory.newInstance();
+ soapStruct.setVarFloat(flt);
+ soapStruct.setVarInt(i);
+ soapStruct.setVarString(str);
+ echoStruct = EchoStructDocument.EchoStruct.Factory.newInstance();
+ echoStruct.setParam0(soapStruct);
+ structParaDoc = EchoStructDocument.Factory.newInstance();
+ structParaDoc.setEchoStruct(echoStruct);
+ retStructDoc = stub.echoStruct(structParaDoc);
+ retStruct = retStructDoc.addNewEchoStructResponse().getReturn();
+ assertEquals(flt,retStruct.getVarFloat(),0);
+ assertEquals(i,retStruct.getVarInt());
+ assertEquals(str,retStruct.getVarString());
+
+ }
+
+ public void testEchoVoid() throws RemoteException {
+
+ echoVoid = EchoVoidDocument.EchoVoid.Factory.newInstance();
+ echVoidDoc = EchoVoidDocument.Factory.newInstance();
+ echVoidDoc.setEchoVoid(echoVoid);
+ echoVoidResDoc = stub.echoVoid(echVoidDoc);
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound1InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound1InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound1InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound1InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,71 @@
+package test;
+
+import junit.framework.TestCase;
+
+import java.rmi.RemoteException;
+
+import test.stub.SoapInteropCompound1PortTypeStub;
+import test.stub.databinding.org.soapinterop.*;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 6:34:39 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class SunRound3Compound1InteropTest extends TestCase{
+
+ SoapInteropCompound1PortTypeStub stub = null;
+ XDocumentDocument1 xDocDoc1 = null;
+ Document doc = null;
+ String id = "Document1";
+ String val = "this is a document";
+ XPersonDocument persDoc = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ double age = 25;
+ boolean male = true;
+ float personID = (float)456.3123;
+ ResultPersonDocument retPersDoc =null;
+ Person retPers = null;
+
+
+
+ ResultDocumentDocument1 retDoc1 = null;
+ Document retDoc=null;
+
+ public void setUp() throws Exception {
+ stub = new SoapInteropCompound1PortTypeStub();
+ }
+
+ public void testEchoDocument() throws Exception {
+
+ doc = Document.Factory.newInstance();
+ xDocDoc1 = XDocumentDocument1.Factory.newInstance();
+ doc.setStringValue(val);
+ doc.setID(id);
+ xDocDoc1.setXDocument(doc);
+ retDoc1 = stub.echoDocument(xDocDoc1);
+ retDoc =retDoc1.getResultDocument();
+ //id = "nothing"; //to fail the test
+ assertEquals(id,retDoc.getID());
+ assertEquals(val,retDoc.getStringValue());
+ }
+
+ public void testEchoPerson() throws RemoteException {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setAge(age);
+ person.setMale(male);
+ person.setID(personID);
+ persDoc = XPersonDocument.Factory.newInstance();
+ persDoc.setXPerson(person);
+ retPersDoc = stub.echoPerson(persDoc);
+ retPers = retPersDoc.getResultPerson();
+ assertEquals(name,retPers.getName());
+ assertEquals(age,retPers.getAge(),0);
+ assertEquals(male,retPers.getMale());
+ assertEquals(personID,retPers.getID(),0);
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound2InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3Compound2InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,56 @@
+package test;
+
+import junit.framework.TestCase;
+import test.stub.SoapInteropCompound2PortTypeStub;
+import test.stub.databinding.org.soapinterop.XEmployeeDocument;
+import test.stub.databinding.org.soapinterop.Employee;
+import test.stub.databinding.org.soapinterop.Person;
+import test.stub.databinding.org.soapinterop.ResultEmployeeDocument;
+
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 8:01:59 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class SunRound3Compound2InteropTest extends TestCase{
+
+ SoapInteropCompound2PortTypeStub stub = null;
+ XEmployeeDocument xEmpDoc = null;
+ Employee emp = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ boolean male = true;
+ float personID = (float)456.3123;
+ int id = 123456;
+ double sal = 15000;
+ ResultEmployeeDocument retEmpDoc = null;
+ Employee retEmployee = null;
+
+
+ public void setUp() throws Exception {
+ stub = new SoapInteropCompound2PortTypeStub();
+ }
+
+ public void testEchoEmployee() throws Exception {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setMale(male);
+ emp = Employee.Factory.newInstance();
+ emp.setPerson(person);
+ emp.setID(id);
+ emp.setSalary(sal);
+ xEmpDoc = XEmployeeDocument.Factory.newInstance();
+ xEmpDoc.setXEmployee(emp);
+ retEmpDoc = stub.echoEmployee(xEmpDoc);
+ retEmployee = retEmpDoc.getResultEmployee();
+ assertEquals(name,retEmployee.getPerson().getName());
+ assertEquals(male,retEmployee.getPerson().getMale());
+ assertEquals(id,retEmployee.getID());
+ assertEquals(sal,retEmployee.getSalary(),0);
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3DoclitparamInteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3DoclitparamInteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3DoclitparamInteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/SunRound3DoclitparamInteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,91 @@
+package test;
+
+import junit.framework.TestCase;
+import java.rmi.RemoteException;
+import test.stub.databinding.org.soapinterop.*;
+import test.stub.WSDLInteropTestDocLitPortTypeStub;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 16, 2005
+ * Time: 9:29:53 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class SunRound3DoclitparamInteropTest extends TestCase{
+
+ WSDLInteropTestDocLitPortTypeStub stub = null;
+ EchoStringDocument strParaDoc = null;
+ EchoStringDocument.EchoString echoStr = null;
+ String str = "Gayan Asanka";
+ EchoStringResponseDocument retStrDoc = null;
+ EchoStringArrayDocument strArrayParaDoc = null;
+ EchoStringArrayDocument.EchoStringArray echoStrArray = null;
+ ArrayOfstringLiteral strLitArr = null;
+ EchoStringArrayResponseDocument retArrayDoc = null;
+ String[] strArry = {"String 1", "String 2", "String 3"};
+ ArrayOfstringLiteral retArray = null;
+ EchoStructDocument structParaDoc = null;
+ SOAPStruct soapStruct = null;
+ float flt = (float)1234.456;
+ int i = 123456;
+ EchoStructDocument.EchoStruct echoStruct = null;
+ EchoStructResponseDocument retStructDoc = null;
+ SOAPStruct retStruct = null;
+ EchoVoidDocument.EchoVoid echoVoid = null;
+ EchoVoidDocument echVoidDoc = null;
+ EchoVoidResponseDocument echoVoidResDoc=null;
+
+ public void setUp() throws Exception {
+ stub = new WSDLInteropTestDocLitPortTypeStub();
+ }
+
+ public void testEchoString() throws RemoteException {
+ echoStr= EchoStringDocument.EchoString.Factory.newInstance();
+ echoStr.setParam0(str);
+ strParaDoc = EchoStringDocument.Factory.newInstance();
+ strParaDoc.setEchoString(echoStr);
+ retStrDoc = stub.echoString(strParaDoc);
+ assertEquals(str,retStrDoc.getEchoStringResponse().getReturn());
+ }
+
+ public void testEchoStringArray() throws RemoteException {
+ strLitArr = ArrayOfstringLiteral.Factory.newInstance();
+ strLitArr.setStringArray(strArry);
+ echoStrArray = EchoStringArrayDocument.EchoStringArray.Factory.newInstance();
+ echoStrArray.setParam0(strLitArr);
+ strArrayParaDoc = EchoStringArrayDocument.Factory.newInstance();
+ strArrayParaDoc.setEchoStringArray1(echoStrArray);
+ retArrayDoc = stub.echoStringArray(strArrayParaDoc);
+ retArray=retArrayDoc.getEchoStringArrayResponse().getReturn();
+ assertEquals(strArry[0],retArray.getStringArray()[0]);
+ assertEquals(strArry[1],retArray.getStringArray()[1]);
+ assertEquals(strArry[2],retArray.getStringArray()[2]);
+ }
+
+ public void testEchoStruct() throws RemoteException {
+ soapStruct = SOAPStruct.Factory.newInstance();
+ soapStruct.setVarFloat(flt);
+ soapStruct.setVarInt(i);
+ soapStruct.setVarString(str);
+ echoStruct = EchoStructDocument.EchoStruct.Factory.newInstance();
+ echoStruct.setParam0(soapStruct);
+ structParaDoc = EchoStructDocument.Factory.newInstance();
+ structParaDoc.setEchoStruct(echoStruct);
+ retStructDoc = stub.echoStruct(structParaDoc);
+ retStruct = retStructDoc.addNewEchoStructResponse().getReturn();
+ assertEquals(flt,retStruct.getVarFloat(),0);
+ assertEquals(i,retStruct.getVarInt());
+ assertEquals(str,retStruct.getVarString());
+
+ }
+
+ public void testEchoVoid() throws RemoteException {
+
+ echoVoid = EchoVoidDocument.EchoVoid.Factory.newInstance();
+ echVoidDoc = EchoVoidDocument.Factory.newInstance();
+ echVoidDoc.setEchoVoid(echoVoid);
+ echoVoidResDoc = stub.echoVoid(echVoidDoc);
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound1InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound1InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound1InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound1InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,72 @@
+package test;
+
+import junit.framework.TestCase;
+
+import java.rmi.RemoteException;
+
+import test.stub.SoapInteropCompound1PortTypeStub;
+import test.stub.databinding.org.soapinterop.*;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 6:34:39 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class WMRound3Compound1InteropTest extends TestCase{
+
+
+ SoapInteropCompound1PortTypeStub stub = null;
+ XDocumentDocument1 xDocDoc1 = null;
+ Document doc = null;
+ String id = "Document1";
+ String val = "this is a document";
+ XPersonDocument persDoc = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ double age = 25;
+ boolean male = true;
+ float personID = (float)456.3123;
+ ResultPersonDocument retPersDoc =null;
+ Person retPers = null;
+
+
+
+ ResultDocumentDocument1 retDoc1 = null;
+ Document retDoc=null;
+
+ public void setUp() throws Exception {
+ stub = new SoapInteropCompound1PortTypeStub();
+ }
+
+ public void testEchoDocument() throws Exception {
+
+ doc = Document.Factory.newInstance();
+ xDocDoc1 = XDocumentDocument1.Factory.newInstance();
+ doc.setStringValue(val);
+ doc.setID(id);
+ xDocDoc1.setXDocument(doc);
+ retDoc1 = stub.echoDocument(xDocDoc1);
+ retDoc =retDoc1.getResultDocument();
+ //id = "nothing"; //to fail the test
+ assertEquals(id,retDoc.getID());
+ assertEquals(val,retDoc.getStringValue());
+ }
+
+ public void testEchoPerson() throws RemoteException {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setAge(age);
+ person.setMale(male);
+ person.setID(personID);
+ persDoc = XPersonDocument.Factory.newInstance();
+ persDoc.setXPerson(person);
+ retPersDoc = stub.echoPerson(persDoc);
+ retPers = retPersDoc.getResultPerson();
+ assertEquals(name,retPers.getName());
+ assertEquals(age,retPers.getAge(),0);
+ assertEquals(male,retPers.getMale());
+ assertEquals(personID,retPers.getID(),0);
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound2InteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound2InteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3Compound2InteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,56 @@
+package test;
+
+import junit.framework.TestCase;
+import test.stub.SoapInteropCompound2PortTypeStub;
+import test.stub.databinding.org.soapinterop.XEmployeeDocument;
+import test.stub.databinding.org.soapinterop.Employee;
+import test.stub.databinding.org.soapinterop.Person;
+import test.stub.databinding.org.soapinterop.ResultEmployeeDocument;
+
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 15, 2005
+ * Time: 8:01:59 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class WMRound3Compound2InteropTest extends TestCase{
+
+ SoapInteropCompound2PortTypeStub stub = null;
+ XEmployeeDocument xEmpDoc = null;
+ Employee emp = null;
+ Person person = null;
+ String name = "Gayan Asanka";
+ boolean male = true;
+ float personID = (float)456.3123;
+ int id = 123456;
+ double sal = 15000;
+ ResultEmployeeDocument retEmpDoc = null;
+ Employee retEmployee = null;
+
+
+ public void setUp() throws Exception {
+ stub = new SoapInteropCompound2PortTypeStub();
+ }
+
+ public void testEchoEmployee() throws Exception {
+ person = Person.Factory.newInstance();
+ person.setName(name);
+ person.setMale(male);
+ emp = Employee.Factory.newInstance();
+ emp.setPerson(person);
+ emp.setID(id);
+ emp.setSalary(sal);
+ xEmpDoc = XEmployeeDocument.Factory.newInstance();
+ xEmpDoc.setXEmployee(emp);
+ retEmpDoc = stub.echoEmployee(xEmpDoc);
+ retEmployee = retEmpDoc.getResultEmployee();
+ assertEquals(name,retEmployee.getPerson().getName());
+ assertEquals(male,retEmployee.getPerson().getMale());
+ assertEquals(id,retEmployee.getID());
+ assertEquals(sal,retEmployee.getSalary(),0);
+
+ }
+}
Added: webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3DoclitInteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3DoclitInteropTest.java?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3DoclitInteropTest.java (added)
+++ webservices/axis2/trunk/java/modules/integration/doclit-interop/clients/test/WMRound3DoclitInteropTest.java Tue Sep 27 04:53:35 2005
@@ -0,0 +1,77 @@
+package test;
+
+import junit.framework.TestCase;
+import java.rmi.RemoteException;
+import test.stub.databinding.org.soapinterop.*;
+import test.stub.WSDLInteropTestDocLitPortTypeStub;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Gayan
+ * Date: Sep 16, 2005
+ * Time: 9:29:53 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class WMRound3DoclitInteropTest extends TestCase{
+
+ WSDLInteropTestDocLitPortTypeStub stub = null;
+ EchoStringParamDocument strParaDoc = null;
+ String str = "Gayan Asanka";
+ EchoStringReturnDocument retStrDoc = null;
+ EchoStringArrayParamDocument strArrayParaDoc = null;
+ ArrayOfstringLiteral strLitArr = null;
+ EchoStringArrayReturnDocument retArrayDoc = null;
+ String[] strArry = {"String 1", "String 2", "String 3"};
+ ArrayOfstringLiteral retArray = null;
+ EchoStructParamDocument structParaDoc = null;
+ SOAPStruct soapStruct = null;
+ float flt = (float)1234.456;
+ int i = 123456;
+ EchoStructReturnDocument retStructDoc = null;
+ SOAPStruct retStruct = null;
+
+ public void setUp() throws Exception {
+ stub = new WSDLInteropTestDocLitPortTypeStub();
+ }
+
+ public void testEchoString() throws RemoteException {
+ strParaDoc = EchoStringParamDocument.Factory.newInstance();
+ strParaDoc.setEchoStringParam(str);
+ retStrDoc = stub.echoString(strParaDoc);
+ assertEquals(str,retStrDoc.getEchoStringReturn());
+ }
+
+ public void testEchoStringArray() throws RemoteException {
+ strLitArr = ArrayOfstringLiteral.Factory.newInstance();
+ strLitArr.setStringArray(strArry);
+ strArrayParaDoc = EchoStringArrayParamDocument.Factory.newInstance();
+ strArrayParaDoc.setEchoStringArrayParam(strLitArr);
+ retArrayDoc = stub.echoStringArray(strArrayParaDoc);
+ retArray=retArrayDoc.getEchoStringArrayReturn();
+ assertEquals(strArry[0],retArray.getStringArray()[0]);
+ assertEquals(strArry[1],retArray.getStringArray()[1]);
+ assertEquals(strArry[2],retArray.getStringArray()[2]);
+ }
+
+ public void testEchoStruct() throws RemoteException {
+ soapStruct = SOAPStruct.Factory.newInstance();
+ soapStruct.setVarFloat(flt);
+ soapStruct.setVarInt(i);
+ soapStruct.setVarString(str);
+ structParaDoc = EchoStructParamDocument.Factory.newInstance();
+ structParaDoc.setEchoStructParam(soapStruct);
+ retStructDoc = stub.echoStruct(structParaDoc);
+ retStruct = retStructDoc.getEchoStructReturn();
+ assertEquals(flt,retStruct.getVarFloat(),0);
+ assertEquals(i,retStruct.getVarInt());
+ assertEquals(str,retStruct.getVarString());
+
+ }
+
+// public void testEchoVoid() throws RemoteException {
+// OMFactory fac = OMAbstractFactory.getOMFactory();
+// OMElement elem = fac.createOMElement("gayan",null);
+// stub.echoVoid(elem);
+// }
+}
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/Stkv3Compound1.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/Stkv3Compound1.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/Stkv3Compound1.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/Stkv3Compound1.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="SoapInteropCompound"
+ targetNamespace="http://soapinterop.org/"
+ xmlns:wsdlns="http://soapinterop.org/"
+ xmlns:typens="http://soapinterop.org/xsd"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <schema targetNamespace="http://soapinterop.org/xsd"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+ <complexType name="Person">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" name="Age" type="double"/>
+ <element minOccurs="1" maxOccurs="1" name="ID" type="xsd:float"/>
+ </sequence>
+ <attribute name="Name" type="string"/>
+ <attribute name="Male" type="boolean"/>
+ </complexType>
+ <element name="x_Person" type="typens:Person"/>
+ <element name="result_Person" type="typens:Person"/>
+
+ <complexType name="Document">
+ <simpleContent>
+ <extension base="string">
+ <xsd:attribute name ="ID" type="string"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+ <element name="x_Document" type="typens:Document"/>
+ <element name="result_Document" type="typens:Document"/>
+ </schema>
+ </types>
+ <message name="echoPerson">
+ <part name="x" element="typens:x_Person"/>
+ </message>
+ <message name="echoPersonResponse">
+ <part name="Result" element="typens:result_Person"/>
+ </message>
+ <message name="echoDocument">
+ <part name="x" element="typens:x_Document"/>
+ </message>
+ <message name="echoDocumentResponse">
+ <part name="Result" element="typens:result_Document"/>
+ </message>
+ <portType name="SoapInteropCompound1PortType">
+ <operation name="echoPerson" parameterOrder="x">
+ <input message="wsdlns:echoPerson"/>
+ <output message="wsdlns:echoPersonResponse"/>
+ </operation>
+ <operation name="echoDocument" parameterOrder="x">
+ <input message="wsdlns:echoDocument"/>
+ <output message="wsdlns:echoDocumentResponse"/>
+ </operation>
+ </portType>
+ <binding name="SoapInteropCompound1Binding" type="wsdlns:SoapInteropCompound1PortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echoPerson">
+ <soap:operation soapAction="http://soapinterop/echoPerson"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoDocument">
+ <soap:operation soapAction="http://soapinterop/echoDocument"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+ </binding>
+ <service name="Compound1">
+ <port name="SoapInteropCompound1Port" binding="wsdlns:SoapInteropCompound1Binding">
+ <soap:address location="http://mssoapinterop.org/stkv3/wsdl/Compound1.wsdl"/>
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLit.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLit.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLit.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLit.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/xsd" xmlns:s2="http://soapinterop.org/AbstractTypes" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:import namespace="http://soapinterop.org" />
+ <s:element name="echoStructParam" type="s0:SOAPStruct" />
+ <s:complexType name="SOAPStruct">
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="varFloat" type="s:float" />
+ <s:element minOccurs="1" maxOccurs="1" name="varInt" type="s:int" />
+ <s:element minOccurs="0" maxOccurs="1" name="varString" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ <s:element name="echoStructReturn" type="s0:SOAPStruct" />
+ <s:element name="echoStringArrayParam" type="s1:ArrayOfString" />
+ <s:element name="string" type="s:string" />
+ <s:element name="echoStringArrayReturn" type="s1:ArrayOfString" />
+ <s:element name="echoStringParam" type="s:string" />
+ <s:element name="echoStringReturn" type="s:string" />
+ </s:schema>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org">
+ <s:import namespace="http://soapinterop.org/xsd" />
+ <s:complexType name="ArrayOfString">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="unbounded" ref="s0:string" />
+ </s:sequence>
+ </s:complexType>
+ <s:element name="ArrayOfString1" nillable="true" type="s1:ArrayOfString1" />
+ <s:complexType name="ArrayOfString1">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ <s:element name="string" nillable="true" type="s:string" />
+ </s:schema>
+ <s:schema targetNamespace="http://soapinterop.org/AbstractTypes">
+ <s:complexType name="StringArray">
+ <s:complexContent mixed="false">
+ <s:restriction base="soapenc:Array">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="unbounded" name="String" type="s:string" />
+ </s:sequence>
+ </s:restriction>
+ </s:complexContent>
+ </s:complexType>
+ </s:schema>
+ </types>
+ <message name="echoStructSoapIn">
+ <part name="echoStructParam" element="s0:echoStructParam" />
+ </message>
+ <message name="echoStructSoapOut">
+ <part name="echoStructResult" element="s0:echoStructReturn" />
+ </message>
+ <message name="echoStringArraySoapIn">
+ <part name="echoStringArrayParam" element="s0:echoStringArrayParam" />
+ </message>
+ <message name="echoStringArraySoapOut">
+ <part name="echoStringArrayResult" element="s0:echoStringArrayReturn" />
+ </message>
+ <message name="echoStringSoapIn">
+ <part name="echoStringParam" element="s0:echoStringParam" />
+ </message>
+ <message name="echoStringSoapOut">
+ <part name="echoStringResult" element="s0:echoStringReturn" />
+ </message>
+ <portType name="WSDLInteropTestDocLitSoap">
+ <operation name="echoStruct">
+ <input message="s1:echoStructSoapIn" />
+ <output message="s1:echoStructSoapOut" />
+ </operation>
+ <operation name="echoStringArray">
+ <input message="s1:echoStringArraySoapIn" />
+ <output message="s1:echoStringArraySoapOut" />
+ </operation>
+ <operation name="echoString">
+ <input message="s1:echoStringSoapIn" />
+ <output message="s1:echoStringSoapOut" />
+ </operation>
+ </portType>
+ <binding name="WSDLInteropTestDocLitSoap" type="s1:WSDLInteropTestDocLitSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="echoStruct">
+ <soap:operation soapAction="http://soapinterop.org/" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ <operation name="echoStringArray">
+ <soap:operation soapAction="http://soapinterop.org/" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ <operation name="echoString">
+ <soap:operation soapAction="http://soapinterop.org/" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="WSDLInteropTestDocLit">
+ <port name="WSDLInteropTestDocLitSoap" binding="s1:WSDLInteropTestDocLitSoap">
+ <soap:address location="http://mssoapinterop.org/asmx/wsdl/InteropTestDocLit.asmx" />
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLitParameters.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLitParameters.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLitParameters.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetInteropTestDocLitParameters.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org/AbstractTypes" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/xsd" xmlns:s2="http://soapinterop.org" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:element name="echoStruct">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="param0" type="s0:SOAPStruct" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:complexType name="SOAPStruct">
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" form="unqualified" name="varFloat" type="s:float" />
+ <s:element minOccurs="1" maxOccurs="1" form="unqualified" name="varInt" type="s:int" />
+ <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="varString" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ <s:element name="echoStructResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="return" type="s0:SOAPStruct" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoStringArray">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="param0" type="s0:ArrayOfString" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:complexType name="ArrayOfString">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="string" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ <s:element name="echoStringArrayResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="return" type="s0:ArrayOfString" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoString">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="param0" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoStringResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="return" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ </s:schema>
+ <s:schema targetNamespace="http://soapinterop.org/AbstractTypes">
+ <s:complexType name="StringArray">
+ <s:complexContent mixed="false">
+ <s:restriction base="soapenc:Array">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="unbounded" name="String" type="s:string" />
+ </s:sequence>
+ </s:restriction>
+ </s:complexContent>
+ </s:complexType>
+ </s:schema>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org">
+ <s:element name="ArrayOfString" nillable="true" type="s2:ArrayOfString" />
+ <s:complexType name="ArrayOfString">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ <s:element name="string" nillable="true" type="s:string" />
+ </s:schema>
+ </types>
+ <message name="echoStructSoapIn">
+ <part name="parameters" element="s0:echoStruct" />
+ </message>
+ <message name="echoStructSoapOut">
+ <part name="parameters" element="s0:echoStructResponse" />
+ </message>
+ <message name="echoStringArraySoapIn">
+ <part name="parameters" element="s0:echoStringArray" />
+ </message>
+ <message name="echoStringArraySoapOut">
+ <part name="parameters" element="s0:echoStringArrayResponse" />
+ </message>
+ <message name="echoStringSoapIn">
+ <part name="parameters" element="s0:echoString" />
+ </message>
+ <message name="echoStringSoapOut">
+ <part name="parameters" element="s0:echoStringResponse" />
+ </message>
+ <portType name="WSDLInteropTestDocLitParametersSoap">
+ <operation name="echoStruct">
+ <input message="s2:echoStructSoapIn" />
+ <output message="s2:echoStructSoapOut" />
+ </operation>
+ <operation name="echoStringArray">
+ <input message="s2:echoStringArraySoapIn" />
+ <output message="s2:echoStringArraySoapOut" />
+ </operation>
+ <operation name="echoString">
+ <input message="s2:echoStringSoapIn" />
+ <output message="s2:echoStringSoapOut" />
+ </operation>
+ </portType>
+ <binding name="WSDLInteropTestDocLitParametersSoap" type="s2:WSDLInteropTestDocLitParametersSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="echoStruct">
+ <soap:operation soapAction="http://soapinterop.org/" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ <operation name="echoStringArray">
+ <soap:operation soapAction="http://soapinterop.org/" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ <operation name="echoString">
+ <soap:operation soapAction="http://soapinterop.org/" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="WSDLInteropTestDocLitParameters">
+ <port name="WSDLInteropTestDocLitParametersSoap" binding="s2:WSDLInteropTestDocLitParametersSoap">
+ <soap:address location="http://mssoapinterop.org/asmx/wsdl/InteropTestDocLitParameters.asmx" />
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound1.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound1.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound1.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound1.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://soapinterop.org" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:element name="x_Document" type="s0:Document" />
+ <s:complexType name="Document">
+ <s:simpleContent>
+ <s:extension base="s:string">
+ <s:attribute name="ID" type="s:string" />
+ </s:extension>
+ </s:simpleContent>
+ </s:complexType>
+ <s:element name="result_Document" type="s0:Document" />
+ <s:element name="x_Person" type="s0:Person" />
+ <s:complexType name="Person">
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="Age" type="s:double" />
+ <s:element minOccurs="1" maxOccurs="1" name="ID" type="s:float" />
+ </s:sequence>
+ <s:attribute name="Name" type="s:string" />
+ <s:attribute name="Male" type="s:boolean" />
+ </s:complexType>
+ <s:element name="result_Person" type="s0:Person" />
+ </s:schema>
+ </types>
+ <message name="echoDocumentSoapIn">
+ <part name="x_Document" element="s0:x_Document" />
+ </message>
+ <message name="echoDocumentSoapOut">
+ <part name="echoDocumentResult" element="s0:result_Document" />
+ </message>
+ <message name="echoPersonSoapIn">
+ <part name="x_Person" element="s0:x_Person" />
+ </message>
+ <message name="echoPersonSoapOut">
+ <part name="echoPersonResult" element="s0:result_Person" />
+ </message>
+ <portType name="Compound1Soap">
+ <operation name="echoDocument">
+ <input message="tns:echoDocumentSoapIn" />
+ <output message="tns:echoDocumentSoapOut" />
+ </operation>
+ <operation name="echoPerson">
+ <input message="tns:echoPersonSoapIn" />
+ <output message="tns:echoPersonSoapOut" />
+ </operation>
+ </portType>
+ <binding name="Compound1Soap" type="tns:Compound1Soap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="echoDocument">
+ <soap:operation soapAction="http://soapinterop/echoDocument" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ <operation name="echoPerson">
+ <soap:operation soapAction="http://soapinterop/echoPerson" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="Compound1">
+ <port name="Compound1Soap" binding="tns:Compound1Soap">
+ <soap:address location="http://mssoapinterop.org/asmx/wsdl/compound1.asmx" />
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound2.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound2.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound2.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/aspnetcompound2.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org/person" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/employee" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://soapinterop.org" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/employee">
+ <s:import namespace="http://soapinterop.org/person" />
+ <s:element name="x_Employee" type="s0:Employee" />
+ <s:complexType name="Employee">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="person" type="s1:Person" />
+ <s:element minOccurs="1" maxOccurs="1" name="salary" type="s:double" />
+ <s:element minOccurs="1" maxOccurs="1" name="ID" type="s:int" />
+ </s:sequence>
+ </s:complexType>
+ <s:element name="result_Employee" type="s0:Employee" />
+ </s:schema>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/person">
+ <s:complexType name="Person">
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
+ <s:element minOccurs="1" maxOccurs="1" name="Male" type="s:boolean" />
+ </s:sequence>
+ </s:complexType>
+ </s:schema>
+ </types>
+ <message name="echoEmployeeSoapIn">
+ <part name="x_Employee" element="s0:x_Employee" />
+ </message>
+ <message name="echoEmployeeSoapOut">
+ <part name="echoEmployeeResult" element="s0:result_Employee" />
+ </message>
+ <portType name="Compound2Soap">
+ <operation name="echoEmployee">
+ <input message="tns:echoEmployeeSoapIn" />
+ <output message="tns:echoEmployeeSoapOut" />
+ </operation>
+ </portType>
+ <binding name="Compound2Soap" type="tns:Compound2Soap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="echoEmployee">
+ <soap:operation soapAction="#echoEmployee" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="Compound2">
+ <port name="Compound2Soap" binding="tns:Compound2Soap">
+ <soap:address location="http://mssoapinterop.org/asmx/wsdl/compound2.asmx" />
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound1.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound1.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound1.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound1.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="SoapInteropCompound"
+ targetNamespace="http://soapinterop.org/"
+ xmlns:wsdlns="http://soapinterop.org/"
+ xmlns:typens="http://soapinterop.org/xsd"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <schema targetNamespace="http://soapinterop.org/xsd"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+ <complexType name="Person">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" name="Age" type="double"/>
+ <element minOccurs="1" maxOccurs="1" name="ID" type="xsd:float"/>
+ </sequence>
+ <attribute name="Name" type="string"/>
+ <attribute name="Male" type="boolean"/>
+ </complexType>
+ <element name="x_Person" type="typens:Person"/>
+ <element name="result_Person" type="typens:Person"/>
+
+ <complexType name="Document">
+ <simpleContent>
+ <extension base="string">
+ <xsd:attribute name ="ID" type="string"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+ <element name="x_Document" type="typens:Document"/>
+ <element name="result_Document" type="typens:Document"/>
+ </schema>
+ </types>
+ <message name="echoPerson">
+ <part name="x" element="typens:x_Person"/>
+ </message>
+ <message name="echoPersonResponse">
+ <part name="Result" element="typens:result_Person"/>
+ </message>
+ <message name="echoDocument">
+ <part name="x" element="typens:x_Document"/>
+ </message>
+ <message name="echoDocumentResponse">
+ <part name="Result" element="typens:result_Document"/>
+ </message>
+ <portType name="SoapInteropCompound1PortType">
+ <operation name="echoPerson" parameterOrder="x">
+ <input message="wsdlns:echoPerson"/>
+ <output message="wsdlns:echoPersonResponse"/>
+ </operation>
+ <operation name="echoDocument" parameterOrder="x">
+ <input message="wsdlns:echoDocument"/>
+ <output message="wsdlns:echoDocumentResponse"/>
+ </operation>
+ </portType>
+ <binding name="SoapInteropCompound1Binding" type="wsdlns:SoapInteropCompound1PortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echoPerson">
+ <soap:operation soapAction="http://soapinterop/echoPerson"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoDocument">
+ <soap:operation soapAction="http://soapinterop/echoDocument"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+ </binding>
+ <service name="Compound1">
+ <port name="SoapInteropCompound1Port" binding="wsdlns:SoapInteropCompound1Binding">
+ <soap:address location="http://www.whitemesa.net/interop/r3/compound1"/>
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound2.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound2.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound2.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/compound2.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="SoapInteropCompound" targetNamespace="http://soapinterop.org/"
+ xmlns:wsdlns="http://soapinterop.org/"
+ xmlns:emp="http://soapinterop.org/employee"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <schema targetNamespace="http://soapinterop.org/person"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <complexType name="Person">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" name="Name" type="string"/>
+ <element minOccurs="1" maxOccurs="1" name="Male" type="boolean"/>
+ </sequence>
+ </complexType>
+ </schema>
+ <schema targetNamespace = "http://soapinterop.org/employee"
+ xmlns:prs = "http://soapinterop.org/person"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+ <import namespace="http://soapinterop.org/person" />
+ <complexType name="Employee">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" name="person" type="prs:Person"/>
+ <element minOccurs="1" maxOccurs="1" name="salary" type="double"/>
+ <element minOccurs="1" maxOccurs="1" name="ID" type="int"/>
+ </sequence>
+ </complexType>
+ <element name="x_Employee" type="emp:Employee"/>
+ <element name="result_Employee" type="emp:Employee"/>
+ </schema>
+ </types>
+ <message name="echoEmployee">
+ <part name="x" element="emp:x_Employee"/>
+ </message>
+ <message name="echoEmployeeResponse">
+ <part name="result" element="emp:result_Employee"/>
+ </message>
+ <portType name="SoapInteropCompound2PortType">
+ <operation name="echoEmployee" parameterOrder="x">
+ <input message="wsdlns:echoEmployee"/>
+ <output message="wsdlns:echoEmployeeResponse"/>
+ </operation>
+ </portType>
+ <binding name="SoapInteropCompound2Binding" type="wsdlns:SoapInteropCompound2PortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echoEmployee">
+ <soap:operation soapAction="#echoEmployee"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="Compound2">
+ <port name="SoapInteropCompound2Port" binding="wsdlns:SoapInteropCompound2Binding">
+ <soap:address location="http://www.whitemesa.net/interop/r3/compound2"/>
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/interoptestdoclit.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/interoptestdoclit.wsdl?rev=291916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/interoptestdoclit.wsdl (added)
+++ webservices/axis2/trunk/java/modules/integration/itest-resources/WSDLs/interoptestdoclit.wsdl Tue Sep 27 04:53:35 2005
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="WSDLInteropTestDocLitService"
+ targetNamespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://soapinterop.org/WSDLInteropTestDocLit"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsd1="http://soapinterop.org/xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <types>
+ <schema targetNamespace="http://soapinterop.org/xsd"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ elementFormDefault="qualified">
+ <complexType name="ArrayOfstring_literal">
+ <sequence>
+ <element maxOccurs="unbounded" minOccurs="1" name="string" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="SOAPStruct">
+ <all>
+ <element name="varFloat" type="xsd:float"/>
+ <element name="varInt" type="xsd:int"/>
+ <element name="varString" type="xsd:string"/>
+ </all>
+ </complexType>
+
+ <element name="echoStringParam" type="xsd:string"/>
+
+ <element name="echoStringReturn" type="xsd:string"/>
+ <element name="echoStringArrayParam" type="xsd1:ArrayOfstring_literal"/>
+
+ <element name="echoStringArrayReturn" type="xsd1:ArrayOfstring_literal"/>
+
+ <element name="echoStructParam" type="xsd1:SOAPStruct"/>
+
+ <element name="echoStructReturn" type="xsd1:SOAPStruct"/>
+ </schema>
+ </types>
+ <message name="echoString">
+ <part element="xsd1:echoStringParam" name="a"/>
+ </message>
+ <message name="echoStringResponse">
+ <part element="xsd1:echoStringReturn" name="result"/>
+ </message>
+ <message name="echoStringArray">
+ <part element="xsd1:echoStringArrayParam" name="a"/>
+ </message>
+ <message name="echoStringArrayResponse">
+ <part element="xsd1:echoStringArrayReturn" name="result"/>
+ </message>
+ <message name="echoStruct">
+ <part element="xsd1:echoStructParam" name="a"/>
+ </message>
+ <message name="echoStructResponse">
+ <part element="xsd1:echoStructReturn" name="result"/>
+ </message>
+ <message name="echoVoid"/>
+ <message name="echoVoidResponse"/>
+
+ <portType name="WSDLInteropTestDocLitPortType">
+ <operation name="echoString">
+ <input message="tns:echoString" name="echoString"/>
+ <output message="tns:echoStringResponse" name="echoStringResponse"/>
+ </operation>
+ <operation name="echoStringArray">
+ <input message="tns:echoStringArray" name="echoStringArray"/>
+ <output message="tns:echoStringArrayResponse" name="echoStringArrayResponse"/>
+ </operation>
+ <operation name="echoStruct">
+ <input message="tns:echoStruct" name="echoStruct"/>
+ <output message="tns:echoStructResponse" name="echoStructResponse"/>
+ </operation>
+ <operation name="echoVoid">
+ <input message="tns:echoVoid" name="echoVoid"/>
+ <output message="tns:echoVoidResponse" name="echoVoidResponse"/>
+ </operation>
+ </portType>
+ <binding name="WSDLInteropTestDocLitPortBinding"
+ type="tns:WSDLInteropTestDocLitPortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echoString">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoString">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoStringResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoStringArray">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoStringArray">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoStringArrayResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoStruct">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoStruct">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoStructResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoVoid">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoVoid">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoVoidResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="WSDLInteropTestDocLitService">
+ <port binding="tns:WSDLInteropTestDocLitPortBinding"
+ name="WSDLInteropTestDocLitPort">
+ <soap:address
+ location="http://www.whitemesa.net/interop/r3/doclit"/>
+ </port>
+ </service>
+</definitions>