You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/02/14 19:20:45 UTC
cvs commit: ws-axis/java/test/wsdl/marshall2 build.xml marshall2.wsdl Marshall2ServiceTestCase.java MarshallTestSoapBindingImpl.java
dims 2005/02/14 10:20:45
Added: java/test/wsdl/marshall2 build.xml marshall2.wsdl
Marshall2ServiceTestCase.java
MarshallTestSoapBindingImpl.java
Log:
sample test case for rpc/lit with typemapping="1.3"
Revision Changes Path
1.1 ws-axis/java/test/wsdl/marshall2/build.xml
Index: build.xml
===================================================================
<?xml version="1.0" ?>
<!DOCTYPE project [
<!ENTITY properties SYSTEM "file:../../../xmls/properties.xml">
<!ENTITY paths SYSTEM "file:../../../xmls/path_refs.xml">
<!ENTITY taskdefs SYSTEM "file:../../../xmls/taskdefs.xml">
<!ENTITY taskdefs_post_compile SYSTEM "file:../../../xmls/taskdefs_post_compile.xml">
<!ENTITY targets SYSTEM "file:../../../xmls/targets.xml">
]>
<!-- ===================================================================
<description>
Test/Sample Component file for Axis
Notes:
This is a build file for use with the Jakarta Ant build tool.
Prerequisites:
jakarta-ant from http://jakarta.apache.org
Build Instructions:
To compile
ant compile
To execute
ant run
Author:
Matt Seibert mseibert@us.ibm.com
Copyright:
Copyright (c) 2002-2003 Apache Software Foundation.
</description>
==================================================================== -->
<project default="compile">
<property name="axis.home" location="../../.." />
<property name="componentName" value="test/wsdl/marshall2" />
&properties;
&paths;
&taskdefs;
&taskdefs_post_compile;
&targets;
<target name="clean">
<echo message="Removing ${build.dir}/classes/${componentName} and ${build.dir}/work/${componentName}" />
<delete dir="${build.dir}/classes/${componentName}"/>
<delete dir="${build.dir}/work/${componentName}"/>
</target>
<target name="copy" depends="setenv"/>
<target name="compile" depends="copy">
<echo message="Compiling test.wsdl.marshall2"/>
<!-- marshall2 Sample Test -->
<wsdl2java url="${axis.home}/test/wsdl/marshall2/marshall2.wsdl"
output="${axis.home}/build/work"
deployscope="session"
serverSide="yes"
typeMappingVersion="1.3"
testcase="yes">
</wsdl2java>
<copy todir="${build.dir}/work/test/wsdl/marshall2" overwrite="yes">
<fileset dir="${axis.home}/test/wsdl/marshall2">
<include name="*TestCase.java"/>
<include name="*Impl.java"/>
</fileset>
</copy>
<javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}"
debug="${debug}">
<classpath refid="classpath" />
<include name="test/wsdl/marshall2/*.java" />
</javac>
</target>
<target name="run" >
<antcall target="execute-Component" />
</target>
</project>
1.1 ws-axis/java/test/wsdl/marshall2/marshall2.wsdl
Index: marshall2.wsdl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:tns="http://marshall2.wsdl.test/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://marshall2.wsdl.test/types"
targetNamespace="http://marshall2.wsdl.test/"
name="MarshallTestService">
<types>
<schema targetNamespace="http://marshall2.wsdl.test/types"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns:tns="http://marshall2.wsdl.test/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="BigDecimalArrayTest">
<sequence>
<element name="BigDecimalArray" type="decimal"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="BigDecimalArrayTestResponse">
<sequence>
<element name="BigDecimalArray" type="decimal"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="BigDecimalTest">
<sequence>
<element name="BigDecimal" type="decimal" nillable="true"/>
</sequence>
</complexType>
<complexType name="BigDecimalTestResponse">
<sequence>
<element name="BigDecimal" type="decimal" nillable="true"/>
</sequence>
</complexType>
<complexType name="BigIntegerArrayTest">
<sequence>
<element name="BigIntegerArray" type="integer"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="BigIntegerArrayTestResponse">
<sequence>
<element name="BigIntegerArray" type="integer"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="BigIntegerTest">
<sequence>
<element name="BigInteger" type="integer" nillable="true"/>
</sequence>
</complexType>
<complexType name="BigIntegerTestResponse">
<sequence>
<element name="BigInteger" type="integer" nillable="true"/>
</sequence>
</complexType>
<complexType name="BooleanArrayTest">
<sequence>
<element name="booleanArray" type="boolean" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="BooleanArrayTestResponse">
<sequence>
<element name="booleanArray" type="boolean" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="BooleanTest">
<sequence>
<element name="booleanValue" type="boolean"/>
</sequence>
</complexType>
<complexType name="BooleanTestResponse">
<sequence>
<element name="booleanValue" type="boolean"/>
</sequence>
</complexType>
<complexType name="ByteArrayTest">
<sequence>
<element name="byteArray" type="base64Binary"
nillable="true"/>
</sequence>
</complexType>
<complexType name="ByteArrayTestResponse">
<sequence>
<element name="byteArray" type="base64Binary"
nillable="true"/>
</sequence>
</complexType>
<complexType name="ByteTest">
<sequence>
<element name="byteValue" type="byte"/>
</sequence>
</complexType>
<complexType name="ByteTestResponse">
<sequence>
<element name="byteValue" type="byte"/>
</sequence>
</complexType>
<complexType name="DoubleArrayTest">
<sequence>
<element name="doubleArray" type="double" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="DoubleArrayTestResponse">
<sequence>
<element name="doubleArray" type="double" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="DoubleTest">
<sequence>
<element name="doubleValue" type="double"/>
</sequence>
</complexType>
<complexType name="DoubleTestResponse">
<sequence>
<element name="doubleValue" type="double"/>
</sequence>
</complexType>
<complexType name="FloatArrayTest">
<sequence>
<element name="floatArray" type="float" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="FloatArrayTestResponse">
<sequence>
<element name="floatArray" type="float" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="FloatTest">
<sequence>
<element name="floatValue" type="float"/>
</sequence>
</complexType>
<complexType name="FloatTestResponse">
<sequence>
<element name="floatValue" type="float"/>
</sequence>
</complexType>
<complexType name="IntArrayTest">
<sequence>
<element name="intArray" type="int" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="IntArrayTestResponse">
<sequence>
<element name="intArray" type="int" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="IntTest">
<sequence>
<element name="intValue" type="int"/>
</sequence>
</complexType>
<complexType name="IntTestResponse">
<sequence>
<element name="intValue" type="int"/>
</sequence>
</complexType>
<complexType name="LongArrayTest">
<sequence>
<element name="longArray" type="long" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="LongArrayTestResponse">
<sequence>
<element name="longArray" type="long" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="LongTest">
<sequence>
<element name="longValue" type="long"/>
</sequence>
</complexType>
<complexType name="LongTestResponse">
<sequence>
<element name="longValue" type="long"/>
</sequence>
</complexType>
<complexType name="ShortArrayTest">
<sequence>
<element name="shortArray" type="short" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="ShortArrayTestResponse">
<sequence>
<element name="shortArray" type="short" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="ShortTest">
<sequence>
<element name="shortValue" type="short"/>
</sequence>
</complexType>
<complexType name="ShortTestResponse">
<sequence>
<element name="shortValue" type="short"/>
</sequence>
</complexType>
<complexType name="StringArrayTest">
<sequence>
<element name="StringArray" type="string" nillable="true"
minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="StringArrayTestResponse">
<sequence>
<element name="StringArray" type="string" nillable="true"
minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="StringTest">
<sequence>
<element name="StringValue" type="string" nillable="true"/>
</sequence>
</complexType>
<complexType name="StringTestResponse">
<sequence>
<element name="StringValue" type="string" nillable="true"/>
</sequence>
</complexType>
<complexType name="QNameTest">
<sequence>
<element name="qname_1" type="QName" nillable="true"/>
</sequence>
</complexType>
<complexType name="QNameTestResponse">
<sequence>
<element name="result" type="QName" nillable="true"/>
</sequence>
</complexType>
<complexType name="QNameArrayTest">
<sequence>
<element name="qnameArray_1" type="QName" nillable="true"
minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="QNameArrayTestResponse">
<sequence>
<element name="result" type="QName" nillable="true"
minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="CalendarArrayTest">
<sequence>
<element name="CalendarArray" type="dateTime"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="CalendarArrayTestResponse">
<sequence>
<element name="CalendarArray" type="dateTime"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="CalendarTest">
<sequence>
<element name="Calendar" type="dateTime" nillable="true"/>
</sequence>
</complexType>
<complexType name="CalendarTestResponse">
<sequence>
<element name="Calendar" type="dateTime" nillable="true"/>
</sequence>
</complexType>
<complexType name="JavaBeanArrayTest">
<sequence>
<element name="JavaBeanArray" type="tns:JavaBean"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="JavaBean">
<sequence>
<element name="myBigDecimal" type="decimal"
nillable="true"/>
<element name="myDouble" type="double"/>
<element name="myLong" type="long"/>
<element name="myJavaBean" type="tns:JavaBean2"
nillable="true"/>
<element name="myShort" type="short"/>
<element name="myInt" type="int"/>
<element name="myCalendar" type="dateTime" nillable="true"/>
<element name="myByte" type="byte"/>
<element name="myBoolean" type="boolean"/>
<element name="myString" type="string" nillable="true"/>
<element name="myBigInteger" type="integer"
nillable="true"/>
<element name="myFloat" type="float"/>
</sequence>
</complexType>
<complexType name="JavaBean2">
<sequence>
<element name="myBigDecimal" type="decimal"
nillable="true"/>
<element name="myDouble" type="double"/>
<element name="myLong" type="long"/>
<element name="myShort" type="short"/>
<element name="myInt" type="int"/>
<element name="myCalendar" type="dateTime" nillable="true"/>
<element name="myByte" type="byte"/>
<element name="myBoolean" type="boolean"/>
<element name="myString" type="string" nillable="true"/>
<element name="myBigInteger" type="integer"
nillable="true"/>
<element name="myFloat" type="float"/>
</sequence>
</complexType>
<complexType name="JavaBeanArrayTestResponse">
<sequence>
<element name="JavaBeanArray" type="tns:JavaBean"
nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="JavaBeanTest">
<sequence>
<element name="JavaBean" type="tns:JavaBean"
nillable="true"/>
</sequence>
</complexType>
<complexType name="JavaBeanTestResponse">
<sequence>
<element name="JavaBean" type="tns:JavaBean"
nillable="true"/>
</sequence>
</complexType>
</schema>
</types>
<message name="bigDecimalArrayTest">
<part name="parameters" type="ns1:BigDecimalArrayTest"/>
</message>
<message name="bigDecimalArrayTestResponse">
<part name="result" type="ns1:BigDecimalArrayTestResponse"/>
</message>
<message name="bigDecimalTest">
<part name="parameters" type="ns1:BigDecimalTest"/>
</message>
<message name="bigDecimalTestResponse">
<part name="result" type="ns1:BigDecimalTestResponse"/>
</message>
<message name="bigIntegerArrayTest">
<part name="parameters" type="ns1:BigIntegerArrayTest"/>
</message>
<message name="bigIntegerArrayTestResponse">
<part name="result" type="ns1:BigIntegerArrayTestResponse"/>
</message>
<message name="bigIntegerTest">
<part name="parameters" type="ns1:BigIntegerTest"/>
</message>
<message name="bigIntegerTestResponse">
<part name="result" type="ns1:BigIntegerTestResponse"/>
</message>
<message name="booleanArrayTest">
<part name="parameters" type="ns1:BooleanArrayTest"/>
</message>
<message name="booleanArrayTestResponse">
<part name="result" type="ns1:BooleanArrayTestResponse"/>
</message>
<message name="booleanTest">
<part name="parameters" type="ns1:BooleanTest"/>
</message>
<message name="booleanTestResponse">
<part name="result" type="ns1:BooleanTestResponse"/>
</message>
<message name="byteArrayTest">
<part name="parameters" type="ns1:ByteArrayTest"/>
</message>
<message name="byteArrayTestResponse">
<part name="result" type="ns1:ByteArrayTestResponse"/>
</message>
<message name="byteTest">
<part name="parameters" type="ns1:ByteTest"/>
</message>
<message name="byteTestResponse">
<part name="result" type="ns1:ByteTestResponse"/>
</message>
<message name="doubleArrayTest">
<part name="parameters" type="ns1:DoubleArrayTest"/>
</message>
<message name="doubleArrayTestResponse">
<part name="result" type="ns1:DoubleArrayTestResponse"/>
</message>
<message name="doubleTest">
<part name="parameters" type="ns1:DoubleTest"/>
</message>
<message name="doubleTestResponse">
<part name="result" type="ns1:DoubleTestResponse"/>
</message>
<message name="floatArrayTest">
<part name="parameters" type="ns1:FloatArrayTest"/>
</message>
<message name="floatArrayTestResponse">
<part name="result" type="ns1:FloatArrayTestResponse"/>
</message>
<message name="floatTest">
<part name="parameters" type="ns1:FloatTest"/>
</message>
<message name="floatTestResponse">
<part name="result" type="ns1:FloatTestResponse"/>
</message>
<message name="intArrayTest">
<part name="parameters" type="ns1:IntArrayTest"/>
</message>
<message name="intArrayTestResponse">
<part name="result" type="ns1:IntArrayTestResponse"/>
</message>
<message name="intTest">
<part name="parameters" type="ns1:IntTest"/>
</message>
<message name="intTestResponse">
<part name="result" type="ns1:IntTestResponse"/>
</message>
<message name="longArrayTest">
<part name="parameters" type="ns1:LongArrayTest"/>
</message>
<message name="longArrayTestResponse">
<part name="result" type="ns1:LongArrayTestResponse"/>
</message>
<message name="longTest">
<part name="parameters" type="ns1:LongTest"/>
</message>
<message name="longTestResponse">
<part name="result" type="ns1:LongTestResponse"/>
</message>
<message name="shortArrayTest">
<part name="parameters" type="ns1:ShortArrayTest"/>
</message>
<message name="shortArrayTestResponse">
<part name="result" type="ns1:ShortArrayTestResponse"/>
</message>
<message name="shortTest">
<part name="parameters" type="ns1:ShortTest"/>
</message>
<message name="shortTestResponse">
<part name="result" type="ns1:ShortTestResponse"/>
</message>
<message name="stringArrayTest">
<part name="parameters" type="ns1:StringArrayTest"/>
</message>
<message name="stringArrayTestResponse">
<part name="result" type="ns1:StringArrayTestResponse"/>
</message>
<message name="stringTest">
<part name="parameters" type="ns1:StringTest"/>
</message>
<message name="stringTestResponse">
<part name="result" type="ns1:StringTestResponse"/>
</message>
<message name="qnameTest">
<part name="parameters" type="ns1:QNameTest"/>
</message>
<message name="qnameTestResponse">
<part name="result" type="ns1:QNameTestResponse"/>
</message>
<message name="qnameArrayTest">
<part name="parameters" type="ns1:QNameArrayTest"/>
</message>
<message name="qnameArrayTestResponse">
<part name="result" type="ns1:QNameArrayTestResponse"/>
</message>
<message name="calendarArrayTest">
<part name="parameters" type="ns1:CalendarArrayTest"/>
</message>
<message name="calendarArrayTestResponse">
<part name="result" type="ns1:CalendarArrayTestResponse"/>
</message>
<message name="calendarTest">
<part name="parameters" type="ns1:CalendarTest"/>
</message>
<message name="calendarTestResponse">
<part name="result" type="ns1:CalendarTestResponse"/>
</message>
<message name="javaBeanArrayTest">
<part name="parameters" type="ns1:JavaBeanArrayTest"/>
</message>
<message name="javaBeanArrayTestResponse">
<part name="result" type="ns1:JavaBeanArrayTestResponse"/>
</message>
<message name="javaBeanTest">
<part name="parameters" type="ns1:JavaBeanTest"/>
</message>
<message name="javaBeanTestResponse">
<part name="result" type="ns1:JavaBeanTestResponse"/>
</message>
<portType name="MarshallTest">
<operation name="bigDecimalArrayTest">
<input name="bigDecimalArrayTest"
message="tns:bigDecimalArrayTest"/>
<output name="bigDecimalArrayTestResponse"
message="tns:bigDecimalArrayTestResponse"/>
</operation>
<operation name="bigDecimalTest">
<input name="bigDecimalTest" message="tns:bigDecimalTest"/>
<output name="bigDecimalTestResponse"
message="tns:bigDecimalTestResponse"/>
</operation>
<operation name="bigIntegerArrayTest">
<input name="bigIntegerArrayTest"
message="tns:bigIntegerArrayTest"/>
<output name="bigIntegerArrayTestResponse"
message="tns:bigIntegerArrayTestResponse"/>
</operation>
<operation name="bigIntegerTest">
<input name="bigIntegerTest" message="tns:bigIntegerTest"/>
<output name="bigIntegerTestResponse"
message="tns:bigIntegerTestResponse"/>
</operation>
<operation name="booleanArrayTest">
<input name="booleanArrayTest" message="tns:booleanArrayTest"/>
<output name="booleanArrayTestResponse"
message="tns:booleanArrayTestResponse"/>
</operation>
<operation name="booleanTest">
<input name="booleanTest" message="tns:booleanTest"/>
<output name="booleanTestResponse"
message="tns:booleanTestResponse"/>
</operation>
<operation name="byteArrayTest">
<input name="byteArrayTest" message="tns:byteArrayTest"/>
<output name="byteArrayTestResponse"
message="tns:byteArrayTestResponse"/>
</operation>
<operation name="byteTest">
<input name="byteTest" message="tns:byteTest"/>
<output name="byteTestResponse" message="tns:byteTestResponse"/>
</operation>
<operation name="doubleArrayTest">
<input name="doubleArrayTest" message="tns:doubleArrayTest"/>
<output name="doubleArrayTestResponse"
message="tns:doubleArrayTestResponse"/>
</operation>
<operation name="doubleTest">
<input name="doubleTest" message="tns:doubleTest"/>
<output name="doubleTestResponse" message="tns:doubleTestResponse"/>
</operation>
<operation name="floatArrayTest">
<input name="floatArrayTest" message="tns:floatArrayTest"/>
<output name="floatArrayTestResponse"
message="tns:floatArrayTestResponse"/>
</operation>
<operation name="floatTest">
<input name="floatTest" message="tns:floatTest"/>
<output name="floatTestResponse" message="tns:floatTestResponse"/>
</operation>
<operation name="intArrayTest">
<input name="intArrayTest" message="tns:intArrayTest"/>
<output name="intArrayTestResponse"
message="tns:intArrayTestResponse"/>
</operation>
<operation name="intTest">
<input name="intTest" message="tns:intTest"/>
<output name="intTestResponse" message="tns:intTestResponse"/>
</operation>
<operation name="longArrayTest">
<input name="longArrayTest" message="tns:longArrayTest"/>
<output name="longArrayTestResponse"
message="tns:longArrayTestResponse"/>
</operation>
<operation name="longTest">
<input name="longTest" message="tns:longTest"/>
<output name="longTestResponse" message="tns:longTestResponse"/>
</operation>
<operation name="shortArrayTest">
<input name="shortArrayTest" message="tns:shortArrayTest"/>
<output name="shortArrayTestResponse"
message="tns:shortArrayTestResponse"/>
</operation>
<operation name="shortTest">
<input name="shortTest" message="tns:shortTest"/>
<output name="shortTestResponse" message="tns:shortTestResponse"/>
</operation>
<operation name="stringArrayTest">
<input name="stringArrayTest" message="tns:stringArrayTest"/>
<output name="stringArrayTestResponse"
message="tns:stringArrayTestResponse"/>
</operation>
<operation name="stringTest">
<input name="stringTest" message="tns:stringTest"/>
<output name="stringTestResponse" message="tns:stringTestResponse"/>
</operation>
<operation name="qnameTest">
<input message="tns:qnameTest" name="qnameTest"/>
<output message="tns:qnameTestResponse" name="qnameTestResponse"/>
</operation>
<operation name="qnameArrayTest">
<input message="tns:qnameArrayTest" name="qnameArrayTest"/>
<output message="tns:qnameArrayTestResponse"
name="qnameArrayTestResponse"/>
</operation>
<operation name="calendarArrayTest">
<input message="tns:calendarArrayTest" name="calendarArrayTest"/>
<output message="tns:calendarArrayTestResponse"
name="calendarArrayTestResponse"/>
</operation>
<operation name="calendarTest">
<input message="tns:calendarTest" name="calendarTest"/>
<output message="tns:calendarTestResponse"
name="calendarTestResponse"/>
</operation>
<operation name="javaBeanArrayTest">
<input message="tns:javaBeanArrayTest" name="javaBeanArrayTest"/>
<output message="tns:javaBeanArrayTestResponse"
name="javaBeanArrayTestResponse"/>
</operation>
<operation name="javaBeanTest">
<input message="tns:javaBeanTest" name="javaBeanTest"/>
<output message="tns:javaBeanTestResponse"
name="javaBeanTestResponse"/>
</operation>
</portType>
<binding name="MarshallTestSoapBinding" type="tns:MarshallTest">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="bigDecimalArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="bigDecimalTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="bigIntegerArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="bigIntegerTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="booleanArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="booleanTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="byteArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="byteTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="doubleArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="doubleTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="floatArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="floatTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="intArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="intTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="longArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="longTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="shortArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="shortTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="stringArrayTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="stringTest">
<soap:operation/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="qnameTest">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="qnameArrayTest">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="calendarArrayTest">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="calendarTest">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="javaBeanArrayTest">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
<operation name="javaBeanTest">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</input>
<output>
<soap:body use="literal"
namespace="http://marshall2.wsdl.test/"/>
</output>
</operation>
</binding>
<service name="Marshall2Service">
<port name="Marshall2Port" binding="tns:MarshallTestSoapBinding">
<soap:address location="http://localhost:8080/axis/services/Marshall2Port"/>
</port>
</service>
</definitions>
1.1 ws-axis/java/test/wsdl/marshall2/Marshall2ServiceTestCase.java
Index: Marshall2ServiceTestCase.java
===================================================================
/**
* Marshall2ServiceTestCase.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC3 Feb 14, 2005 (08:56:33 EST) WSDL2Java emitter.
*/
package test.wsdl.marshall2;
import org.apache.axis.Constants;
import javax.xml.namespace.QName;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Calendar;
import test.wsdl.marshall2.types.JavaBean;
import test.wsdl.marshall2.types.JavaBean2;
public class Marshall2ServiceTestCase extends junit.framework.TestCase {
public Marshall2ServiceTestCase(java.lang.String name) {
super(name);
}
public void testMarshall2PortWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
java.net.URL url = new java.net.URL(new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2PortAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.marshall2.Marshall2ServiceLocator().getServiceName());
assertTrue(service != null);
}
public void test1Marshall2PortBigDecimalArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.BigDecimalArrayTestResponse value = null;
value = binding.bigDecimalArrayTest(new test.wsdl.marshall2.types.BigDecimalArrayTest(new BigDecimal[]{new BigDecimal("5.0"),new BigDecimal("5.0")}));
// TBD - validate results
}
public void test2Marshall2PortBigDecimalTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.BigDecimalTestResponse value = null;
value = binding.bigDecimalTest(new test.wsdl.marshall2.types.BigDecimalTest(new BigDecimal("5.0")));
// TBD - validate results
}
public void test3Marshall2PortBigIntegerArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.BigIntegerArrayTestResponse value = null;
value = binding.bigIntegerArrayTest(new test.wsdl.marshall2.types.BigIntegerArrayTest(new BigInteger[]{new BigInteger("5"),new BigInteger("6")}));
// TBD - validate results
}
public void test4Marshall2PortBigIntegerTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.BigIntegerTestResponse value = null;
value = binding.bigIntegerTest(new test.wsdl.marshall2.types.BigIntegerTest(new BigInteger("8")));
// TBD - validate results
}
public void test5Marshall2PortBooleanArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.BooleanArrayTestResponse value = null;
value = binding.booleanArrayTest(new test.wsdl.marshall2.types.BooleanArrayTest(new boolean[]{true,false}));
// TBD - validate results
}
public void test6Marshall2PortBooleanTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.BooleanTestResponse value = null;
value = binding.booleanTest(new test.wsdl.marshall2.types.BooleanTest(true));
// TBD - validate results
}
public void test7Marshall2PortByteArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.ByteArrayTestResponse value = null;
value = binding.byteArrayTest(new test.wsdl.marshall2.types.ByteArrayTest("hello".getBytes()));
// TBD - validate results
}
public void test8Marshall2PortByteTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.ByteTestResponse value = null;
value = binding.byteTest(new test.wsdl.marshall2.types.ByteTest("x".getBytes()[0]));
// TBD - validate results
}
public void test9Marshall2PortDoubleArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.DoubleArrayTestResponse value = null;
value = binding.doubleArrayTest(new test.wsdl.marshall2.types.DoubleArrayTest(new double[]{4,5}));
// TBD - validate results
}
public void test10Marshall2PortDoubleTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.DoubleTestResponse value = null;
value = binding.doubleTest(new test.wsdl.marshall2.types.DoubleTest(4));
// TBD - validate results
}
public void test11Marshall2PortFloatArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.FloatArrayTestResponse value = null;
value = binding.floatArrayTest(new test.wsdl.marshall2.types.FloatArrayTest(new float[]{67,75}));
// TBD - validate results
}
public void test12Marshall2PortFloatTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.FloatTestResponse value = null;
value = binding.floatTest(new test.wsdl.marshall2.types.FloatTest(56));
// TBD - validate results
}
public void test13Marshall2PortIntArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.IntArrayTestResponse value = null;
value = binding.intArrayTest(new test.wsdl.marshall2.types.IntArrayTest(new int[]{3,4}));
// TBD - validate results
}
public void test14Marshall2PortIntTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.IntTestResponse value = null;
value = binding.intTest(new test.wsdl.marshall2.types.IntTest(3));
// TBD - validate results
}
public void test15Marshall2PortLongArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.LongArrayTestResponse value = null;
value = binding.longArrayTest(new test.wsdl.marshall2.types.LongArrayTest(new long[]{3,4}));
// TBD - validate results
}
public void test16Marshall2PortLongTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.LongTestResponse value = null;
value = binding.longTest(new test.wsdl.marshall2.types.LongTest(5467));
// TBD - validate results
}
public void test17Marshall2PortShortArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.ShortArrayTestResponse value = null;
value = binding.shortArrayTest(new test.wsdl.marshall2.types.ShortArrayTest(new short[]{(short)3,(short)4}));
// TBD - validate results
}
public void test18Marshall2PortShortTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.ShortTestResponse value = null;
value = binding.shortTest(new test.wsdl.marshall2.types.ShortTest((short)4));
// TBD - validate results
}
public void test19Marshall2PortStringArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.StringArrayTestResponse value = null;
value = binding.stringArrayTest(new test.wsdl.marshall2.types.StringArrayTest(new String[]{"foo","bar"}));
// TBD - validate results
}
public void test20Marshall2PortStringTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.StringTestResponse value = null;
value = binding.stringTest(new test.wsdl.marshall2.types.StringTest("foo"));
// TBD - validate results
}
public void test21Marshall2PortQnameTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.QNameTestResponse value = null;
value = binding.qnameTest(new test.wsdl.marshall2.types.QNameTest(Constants.QNAME_FAULTDETAIL_HOSTNAME));
// TBD - validate results
}
public void test22Marshall2PortQnameArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.QNameArrayTestResponse value = null;
value = binding.qnameArrayTest(new test.wsdl.marshall2.types.QNameArrayTest(new QName[]{Constants.QNAME_FAULTDETAIL_HOSTNAME,Constants.QNAME_FAULTDETAIL_EXCEPTIONNAME}));
// TBD - validate results
}
public void test23Marshall2PortCalendarArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.CalendarArrayTestResponse value = null;
value = binding.calendarArrayTest(new test.wsdl.marshall2.types.CalendarArrayTest(new Calendar[]{Calendar.getInstance(),Calendar.getInstance()}));
// TBD - validate results
}
public void test24Marshall2PortCalendarTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.CalendarTestResponse value = null;
value = binding.calendarTest(new test.wsdl.marshall2.types.CalendarTest(Calendar.getInstance()));
// TBD - validate results
}
public void test25Marshall2PortJavaBeanArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
JavaBean b = new JavaBean();
b.setMyBigDecimal(new BigDecimal(4));
b.setMyBigInteger(new BigInteger("5"));
b.setMyBoolean(false);
b.setMyByte((byte)0x1);
b.setMyCalendar(Calendar.getInstance());
b.setMyDouble(4);
b.setMyFloat(5);
b.setMyInt(6);
b.setMyLong(3);
b.setMyString("sdfsdf");
b.setMyJavaBean(new JavaBean2(new BigDecimal(5),new BigInteger("4"),true,(byte)0x1,Calendar.getInstance(),(double)5,(float)3,(int)1,(long)2,(short)1,"xxx"));
JavaBean b2 = new JavaBean();
b2.setMyBigDecimal(new BigDecimal(4));
b2.setMyBigInteger(new BigInteger("5"));
b2.setMyBoolean(false);
b2.setMyByte((byte)0x1);
b2.setMyCalendar(Calendar.getInstance());
b2.setMyDouble(4);
b2.setMyFloat(5);
b2.setMyInt(6);
b2.setMyLong(3);
b2.setMyString("sdfsdf");
b2.setMyJavaBean(new JavaBean2(new BigDecimal(5),new BigInteger("4"),true,(byte)0x1,Calendar.getInstance(),(double)5,(float)3,(int)1,(long)2,(short)1,"xxx"));
// Test operation
test.wsdl.marshall2.types.JavaBeanArrayTestResponse value = null;
value = binding.javaBeanArrayTest(new test.wsdl.marshall2.types.JavaBeanArrayTest(new JavaBean[]{b,b2}));
// TBD - validate results
}
public void test26Marshall2PortJavaBeanTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
JavaBean b = new JavaBean();
b.setMyBigDecimal(new BigDecimal(4));
b.setMyBigInteger(new BigInteger("5"));
b.setMyBoolean(false);
b.setMyByte((byte)0x1);
b.setMyCalendar(Calendar.getInstance());
b.setMyDouble(4);
b.setMyFloat(5);
b.setMyInt(6);
b.setMyLong(3);
b.setMyString("sdfsdf");
b.setMyJavaBean(new JavaBean2(new BigDecimal(5),new BigInteger("4"),true,(byte)0x1,Calendar.getInstance(),(double)5,(float)3,(int)1,(long)2,(short)1,"xxx"));
// Time out after a minute
binding.setTimeout(60000);
// Test operation
test.wsdl.marshall2.types.JavaBeanTestResponse value = null;
value = binding.javaBeanTest(new test.wsdl.marshall2.types.JavaBeanTest(b));
// TBD - validate results
}
}
1.1 ws-axis/java/test/wsdl/marshall2/MarshallTestSoapBindingImpl.java
Index: MarshallTestSoapBindingImpl.java
===================================================================
/**
* MarshallTestSoapBindingImpl.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC3 Feb 14, 2005 (08:56:33 EST) WSDL2Java emitter.
*/
package test.wsdl.marshall2;
import test.wsdl.marshall2.types.BigDecimalArrayTestResponse;
import test.wsdl.marshall2.types.BigDecimalTestResponse;
import test.wsdl.marshall2.types.BigIntegerArrayTestResponse;
import test.wsdl.marshall2.types.BigIntegerTestResponse;
import test.wsdl.marshall2.types.BooleanArrayTestResponse;
import test.wsdl.marshall2.types.BooleanTestResponse;
import test.wsdl.marshall2.types.ByteArrayTestResponse;
import test.wsdl.marshall2.types.ByteTestResponse;
import test.wsdl.marshall2.types.CalendarArrayTestResponse;
import test.wsdl.marshall2.types.CalendarTestResponse;
import test.wsdl.marshall2.types.DoubleArrayTestResponse;
import test.wsdl.marshall2.types.DoubleTestResponse;
import test.wsdl.marshall2.types.FloatArrayTestResponse;
import test.wsdl.marshall2.types.FloatTestResponse;
import test.wsdl.marshall2.types.IntArrayTestResponse;
import test.wsdl.marshall2.types.IntTestResponse;
import test.wsdl.marshall2.types.JavaBeanArrayTestResponse;
import test.wsdl.marshall2.types.JavaBeanTestResponse;
import test.wsdl.marshall2.types.LongArrayTestResponse;
import test.wsdl.marshall2.types.LongTestResponse;
import test.wsdl.marshall2.types.QNameArrayTestResponse;
import test.wsdl.marshall2.types.QNameTestResponse;
import test.wsdl.marshall2.types.ShortArrayTestResponse;
import test.wsdl.marshall2.types.ShortTestResponse;
import test.wsdl.marshall2.types.StringArrayTestResponse;
import test.wsdl.marshall2.types.StringTestResponse;
public class MarshallTestSoapBindingImpl implements test.wsdl.marshall2.
MarshallTest {
public test.wsdl.marshall2.types.BigDecimalArrayTestResponse bigDecimalArrayTest(test.wsdl.marshall2.types.BigDecimalArrayTest parameters)
throws java.rmi.RemoteException {
return new BigDecimalArrayTestResponse(parameters.getBigDecimalArray());
}
public test.wsdl.marshall2.types.BigDecimalTestResponse bigDecimalTest(test.wsdl.marshall2.types.BigDecimalTest parameters)
throws java.rmi.RemoteException {
return new BigDecimalTestResponse(parameters.getBigDecimal());
}
public test.wsdl.marshall2.types.BigIntegerArrayTestResponse bigIntegerArrayTest(test.wsdl.marshall2.types.BigIntegerArrayTest parameters)
throws java.rmi.RemoteException {
return new BigIntegerArrayTestResponse(parameters.getBigIntegerArray());
}
public test.wsdl.marshall2.types.BigIntegerTestResponse bigIntegerTest(test.wsdl.marshall2.types.BigIntegerTest parameters)
throws java.rmi.RemoteException {
return new BigIntegerTestResponse(parameters.getBigInteger());
}
public test.wsdl.marshall2.types.BooleanArrayTestResponse booleanArrayTest(test.wsdl.marshall2.types.BooleanArrayTest parameters)
throws java.rmi.RemoteException {
return new BooleanArrayTestResponse(parameters.getBooleanArray());
}
public test.wsdl.marshall2.types.BooleanTestResponse booleanTest(test.wsdl.marshall2.types.BooleanTest parameters)
throws java.rmi.RemoteException {
return new BooleanTestResponse(parameters.isBooleanValue());
}
public test.wsdl.marshall2.types.ByteArrayTestResponse byteArrayTest(test.wsdl.marshall2.types.ByteArrayTest parameters)
throws java.rmi.RemoteException {
return new ByteArrayTestResponse(parameters.getByteArray());
}
public test.wsdl.marshall2.types.ByteTestResponse byteTest(test.wsdl.marshall2.types.ByteTest parameters)
throws java.rmi.RemoteException {
return new ByteTestResponse(parameters.getByteValue());
}
public test.wsdl.marshall2.types.DoubleArrayTestResponse doubleArrayTest(test.wsdl.marshall2.types.DoubleArrayTest parameters)
throws java.rmi.RemoteException {
return new DoubleArrayTestResponse(parameters.getDoubleArray());
}
public test.wsdl.marshall2.types.DoubleTestResponse doubleTest(test.wsdl.marshall2.types.DoubleTest parameters)
throws java.rmi.RemoteException {
return new DoubleTestResponse(parameters.getDoubleValue());
}
public test.wsdl.marshall2.types.FloatArrayTestResponse floatArrayTest(test.wsdl.marshall2.types.FloatArrayTest parameters)
throws java.rmi.RemoteException {
return new FloatArrayTestResponse(parameters.getFloatArray());
}
public test.wsdl.marshall2.types.FloatTestResponse floatTest(test.wsdl.marshall2.types.FloatTest parameters)
throws java.rmi.RemoteException {
return new FloatTestResponse(parameters.getFloatValue());
}
public test.wsdl.marshall2.types.IntArrayTestResponse intArrayTest(test.wsdl.marshall2.types.IntArrayTest parameters)
throws java.rmi.RemoteException {
return new IntArrayTestResponse(parameters.getIntArray());
}
public test.wsdl.marshall2.types.IntTestResponse intTest(test.wsdl.marshall2.types.IntTest parameters)
throws java.rmi.RemoteException {
return new IntTestResponse(parameters.getIntValue());
}
public test.wsdl.marshall2.types.LongArrayTestResponse longArrayTest(test.wsdl.marshall2.types.LongArrayTest parameters)
throws java.rmi.RemoteException {
return new LongArrayTestResponse(parameters.getLongArray());
}
public test.wsdl.marshall2.types.LongTestResponse longTest(test.wsdl.marshall2.types.LongTest parameters)
throws java.rmi.RemoteException {
return new LongTestResponse(parameters.getLongValue());
}
public test.wsdl.marshall2.types.ShortArrayTestResponse shortArrayTest(test.wsdl.marshall2.types.ShortArrayTest parameters)
throws java.rmi.RemoteException {
return new ShortArrayTestResponse(parameters.getShortArray());
}
public test.wsdl.marshall2.types.ShortTestResponse shortTest(test.wsdl.marshall2.types.ShortTest parameters)
throws java.rmi.RemoteException {
return new ShortTestResponse(parameters.getShortValue());
}
public test.wsdl.marshall2.types.StringArrayTestResponse stringArrayTest(test.wsdl.marshall2.types.StringArrayTest parameters)
throws java.rmi.RemoteException {
return new StringArrayTestResponse(parameters.getStringArray());
}
public test.wsdl.marshall2.types.StringTestResponse stringTest(test.wsdl.marshall2.types.StringTest parameters)
throws java.rmi.RemoteException {
return new StringTestResponse(parameters.getStringValue());
}
public test.wsdl.marshall2.types.QNameTestResponse qnameTest(test.wsdl.marshall2.types.QNameTest parameters)
throws java.rmi.RemoteException {
return new QNameTestResponse(parameters.getQname_1());
}
public test.wsdl.marshall2.types.QNameArrayTestResponse qnameArrayTest(test.wsdl.marshall2.types.QNameArrayTest parameters)
throws java.rmi.RemoteException {
return new QNameArrayTestResponse(parameters.getQnameArray_1());
}
public test.wsdl.marshall2.types.CalendarArrayTestResponse calendarArrayTest(test.wsdl.marshall2.types.CalendarArrayTest parameters)
throws java.rmi.RemoteException {
return new CalendarArrayTestResponse(parameters.getCalendarArray());
}
public test.wsdl.marshall2.types.CalendarTestResponse calendarTest(test.wsdl.marshall2.types.CalendarTest parameters)
throws java.rmi.RemoteException {
return new CalendarTestResponse(parameters.getCalendar());
}
public test.wsdl.marshall2.types.JavaBeanArrayTestResponse javaBeanArrayTest(test.wsdl.marshall2.types.JavaBeanArrayTest parameters)
throws java.rmi.RemoteException {
return new JavaBeanArrayTestResponse(parameters.getJavaBeanArray());
}
public test.wsdl.marshall2.types.JavaBeanTestResponse javaBeanTest(test.wsdl.marshall2.types.JavaBeanTest parameters)
throws java.rmi.RemoteException {
return new JavaBeanTestResponse(parameters.getJavaBean());
}
}