|
|
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/wsdls/RpcLiteralSample.wsdl
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/wsdls/RpcLiteralSample.wsdl?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/wsdls/RpcLiteralSample.wsdl
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/wsdls/RpcLiteralSample.wsdl
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,356 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
targetNamespace="http://beehive.apache.org/web/webservice/rpc-examples"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://beehive.apache.org/web/webservice/rpc-examples"
xmlns:intf="http://beehive.apache.org/web/webservice/rpc-examples"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.2
+Built on May 03, 2005 (02:20:24 EDT)-->
+ <wsdl:types>
+ <schema
targetNamespace="http://beehive.apache.org/web/webservice/rpc-examples"
xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+ <complexType name="Phone">
+ <sequence>
+ <element name="areaCode" nillable="true" type="xsd:int"/>
+ <element name="exchange" nillable="true" type="xsd:string"/>
+ <element name="number" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="StateType">
+ <sequence>
+ <element name="state" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="Address">
+ <sequence>
+ <element name="city" nillable="true" type="xsd:string"/>
+ <element name="phoneNumber" nillable="true" type="impl:Phone"/>
+ <element name="state" nillable="true" type="impl:StateType"/>
+ <element name="streetName" nillable="true" type="xsd:string"/>
+ <element name="streetNum" nillable="true" type="xsd:int"/>
+ <element name="zip" nillable="true" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ <complexType name="AddressException">
+ <sequence/>
+ </complexType>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="createAddressInHeaderResponse">
+
+ <wsdl:part name="out_param_header" type="impl:Address"/>
+
+ <wsdl:part name="ReturnCreateAddressInHeaderResult" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="createAddressInBodyRequest">
+
+ </wsdl:message>
+
+ <wsdl:message name="returnAddressFromBodyRequest">
+
+ <wsdl:part name="in_param_body" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="returnAddressFromHeaderRequest">
+
+ <wsdl:part name="in_param_header" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="createAddressInHeaderRequest">
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInHeaderResponse">
+
+ <wsdl:part name="inout_param_header" type="impl:Address"/>
+
+ <wsdl:part name="ChangeAddressInHeaderResult" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="AddressException">
+
+ <wsdl:part name="fault" type="impl:AddressException"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInBodyResponse">
+
+ <wsdl:part name="ChangeAddressInBodyResult" type="xsd:int"/>
+
+ <wsdl:part name="inout_param_body" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="createAddressInBodyResponse">
+
+ <wsdl:part name="ReturnCreateAddressInBodyResult" type="xsd:int"/>
+
+ <wsdl:part name="out_param_body" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="returnAddressFromHeaderResponse">
+
+ <wsdl:part name="ReturnAddressFromHeaderResult" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="returnAddressFromBodyResponse">
+
+ <wsdl:part name="ReturnAddressFromBodyResult" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="throwAddressExceptionResponse">
+
+ <wsdl:part name="ThrowAddressExceptionResult" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInHeaderRequest">
+
+ <wsdl:part name="inout_param_header" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="throwAddressExceptionRequest">
+
+ <wsdl:part name="in_param" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInBodyRequest">
+
+ <wsdl:part name="inout_param_body" type="impl:Address"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="RpcLiteralSample">
+
+ <wsdl:operation name="returnAddressFromBody"
parameterOrder="in_param_body">
+
+ <wsdl:input message="impl:returnAddressFromBodyRequest"
name="returnAddressFromBodyRequest"/>
+
+ <wsdl:output message="impl:returnAddressFromBodyResponse"
name="returnAddressFromBodyResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="returnAddressFromHeader"
parameterOrder="in_param_header">
+
+ <wsdl:input message="impl:returnAddressFromHeaderRequest"
name="returnAddressFromHeaderRequest"/>
+
+ <wsdl:output message="impl:returnAddressFromHeaderResponse"
name="returnAddressFromHeaderResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInBody"
parameterOrder="out_param_body">
+
+ <wsdl:input message="impl:createAddressInBodyRequest"
name="createAddressInBodyRequest"/>
+
+ <wsdl:output message="impl:createAddressInBodyResponse"
name="createAddressInBodyResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInHeader"
parameterOrder="out_param_header">
+
+ <wsdl:input message="impl:createAddressInHeaderRequest"
name="createAddressInHeaderRequest"/>
+
+ <wsdl:output message="impl:createAddressInHeaderResponse"
name="createAddressInHeaderResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInBody"
parameterOrder="inout_param_body">
+
+ <wsdl:input message="impl:changeAddressInBodyRequest"
name="changeAddressInBodyRequest"/>
+
+ <wsdl:output message="impl:changeAddressInBodyResponse"
name="changeAddressInBodyResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInHeader"
parameterOrder="inout_param_header">
+
+ <wsdl:input message="impl:changeAddressInHeaderRequest"
name="changeAddressInHeaderRequest"/>
+
+ <wsdl:output message="impl:changeAddressInHeaderResponse"
name="changeAddressInHeaderResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="throwAddressException" parameterOrder="in_param">
+
+ <wsdl:input message="impl:throwAddressExceptionRequest"
name="throwAddressExceptionRequest"/>
+
+ <wsdl:output message="impl:throwAddressExceptionResponse"
name="throwAddressExceptionResponse"/>
+
+ <wsdl:fault message="impl:AddressException" name="AddressException"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="RpcLiteralSampleSoapBinding"
type="impl:RpcLiteralSample">
+
+ <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="returnAddressFromBody">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="returnAddressFromBodyRequest">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="returnAddressFromBodyResponse">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="returnAddressFromHeader">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="returnAddressFromHeaderRequest">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples" parts=""
use="literal"/>
+
+ <wsdlsoap:header message="impl:returnAddressFromHeaderRequest"
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
part="in_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:input>
+
+ <wsdl:output name="returnAddressFromHeaderResponse">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInBody">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="createAddressInBodyRequest">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="createAddressInBodyResponse">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInHeader">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="createAddressInHeaderRequest">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="createAddressInHeaderResponse">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
parts="ReturnCreateAddressInHeaderResult" use="literal"/>
+
+ <wsdlsoap:header message="impl:createAddressInHeaderResponse"
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
part="out_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInBody">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="changeAddressInBodyRequest">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="changeAddressInBodyResponse">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInHeader">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="changeAddressInHeaderRequest">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples" parts=""
use="literal"/>
+
+ <wsdlsoap:header message="impl:changeAddressInHeaderRequest"
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
part="inout_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:input>
+
+ <wsdl:output name="changeAddressInHeaderResponse">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
parts="ChangeAddressInHeaderResult" use="literal"/>
+
+ <wsdlsoap:header message="impl:changeAddressInHeaderResponse"
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
part="inout_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="throwAddressException">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="throwAddressExceptionRequest">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="throwAddressExceptionResponse">
+
+ <wsdlsoap:body
namespace="http://beehive.apache.org/web/webservice/rpc-examples"
use="literal"/>
+
+ </wsdl:output>
+
+ <wsdl:fault name="AddressException">
+
+ <wsdlsoap:fault name="AddressException" use="literal"/>
+
+ </wsdl:fault>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="RpcLiteralSampleService">
+
+ <wsdl:port binding="impl:RpcLiteralSampleSoapBinding"
name="RpcLiteralSample">
+
+ <wsdlsoap:address
location="http://localhost:8080/wsm-samplesWS/web/complex/RpcLiteralSample.jws"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralWrappedSample.wsdl
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralWrappedSample.wsdl?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralWrappedSample.wsdl
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralWrappedSample.wsdl
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,456 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://complex.web"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://complex.web" xmlns:intf="http://complex.web"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.2
+Built on May 03, 2005 (02:20:24 EDT)-->
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://complex.web"
xmlns="http://www.w3.org/2001/XMLSchema">
+ <element name="returnAddressFromBody">
+ <complexType>
+ <sequence>
+ <element name="in_param_body" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <complexType name="Phone">
+ <sequence>
+ <element name="areaCode" nillable="true" type="xsd:int"/>
+ <element name="exchange" nillable="true" type="xsd:string"/>
+ <element name="number" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="StateType">
+ <sequence>
+ <element name="state" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="Address">
+ <sequence>
+ <element name="city" nillable="true" type="xsd:string"/>
+ <element name="phoneNumber" nillable="true" type="impl:Phone"/>
+ <element name="state" nillable="true" type="impl:StateType"/>
+ <element name="streetName" nillable="true" type="xsd:string"/>
+ <element name="streetNum" nillable="true" type="xsd:int"/>
+ <element name="zip" nillable="true" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ <element name="returnAddressFromBodyResponse">
+ <complexType>
+ <sequence>
+ <element name="ReturnAddressFromBodyResult" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="in_param_header" type="impl:Address"/>
+ <element name="returnAddressFromHeader">
+ <complexType>
+ <sequence/>
+ </complexType>
+ </element>
+ <element name="returnAddressFromHeaderResponse">
+ <complexType>
+ <sequence>
+ <element name="ReturnAddressFromHeaderResult" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="createAddressInBody">
+ <complexType>
+ <sequence/>
+ </complexType>
+ </element>
+ <element name="createAddressInBodyResponse">
+ <complexType>
+ <sequence>
+ <element name="ReturnCreateAddressInBodyResult" type="xsd:int"/>
+ <element name="out_param_body" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="createAddressInHeader">
+ <complexType>
+ <sequence/>
+ </complexType>
+ </element>
+ <element name="out_param_header" type="impl:Address"/>
+ <element name="createAddressInHeaderResponse">
+ <complexType>
+ <sequence>
+ <element name="ReturnCreateAddressInHeaderResult" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="changeAddressInBody">
+ <complexType>
+ <sequence>
+ <element name="inout_param_body" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="changeAddressInBodyResponse">
+ <complexType>
+ <sequence>
+ <element name="ChangeAddressInBodyResult" type="xsd:int"/>
+ <element name="inout_param_body" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="inout_param_header" type="impl:Address"/>
+ <element name="changeAddressInHeader">
+ <complexType>
+ <sequence/>
+ </complexType>
+ </element>
+ <element name="inout_param_header1" type="impl:Address"/>
+ <element name="changeAddressInHeaderResponse">
+ <complexType>
+ <sequence>
+ <element name="ChangeAddressInHeaderResult" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="throwAddressException">
+ <complexType>
+ <sequence>
+ <element name="in_param" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="throwAddressExceptionResponse">
+ <complexType>
+ <sequence>
+ <element name="ThrowAddressExceptionResult" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <complexType name="AddressException">
+ <sequence/>
+ </complexType>
+ <element name="fault" type="impl:AddressException"/>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="returnAddressFromBodyResponse">
+
+ <wsdl:part element="impl:returnAddressFromBodyResponse"
name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="returnAddressFromBodyRequest">
+
+ <wsdl:part element="impl:returnAddressFromBody" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="returnAddressFromHeaderRequest">
+
+ <wsdl:part element="impl:in_param_header" name="in_param_header"/>
+
+ <wsdl:part element="impl:returnAddressFromHeader" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="createAddressInHeaderRequest">
+
+ <wsdl:part element="impl:createAddressInHeader" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInBodyRequest">
+
+ <wsdl:part element="impl:changeAddressInBody" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="returnAddressFromHeaderResponse">
+
+ <wsdl:part element="impl:returnAddressFromHeaderResponse"
name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInBodyResponse">
+
+ <wsdl:part element="impl:changeAddressInBodyResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="throwAddressExceptionResponse">
+
+ <wsdl:part element="impl:throwAddressExceptionResponse"
name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="AddressException">
+
+ <wsdl:part element="impl:fault" name="fault"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="createAddressInBodyRequest">
+
+ <wsdl:part element="impl:createAddressInBody" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInHeaderRequest">
+
+ <wsdl:part element="impl:inout_param_header" name="inout_param_header"/>
+
+ <wsdl:part element="impl:changeAddressInHeader" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="throwAddressExceptionRequest">
+
+ <wsdl:part element="impl:throwAddressException" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="createAddressInHeaderResponse">
+
+ <wsdl:part element="impl:out_param_header" name="out_param_header"/>
+
+ <wsdl:part element="impl:createAddressInHeaderResponse"
name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="createAddressInBodyResponse">
+
+ <wsdl:part element="impl:createAddressInBodyResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="changeAddressInHeaderResponse">
+
+ <wsdl:part element="impl:inout_param_header1" name="inout_param_header"/>
+
+ <wsdl:part element="impl:changeAddressInHeaderResponse"
name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="DocumentLiteralWrappedSample">
+
+ <wsdl:operation name="returnAddressFromBody">
+
+ <wsdl:input message="impl:returnAddressFromBodyRequest"
name="returnAddressFromBodyRequest"/>
+
+ <wsdl:output message="impl:returnAddressFromBodyResponse"
name="returnAddressFromBodyResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="returnAddressFromHeader">
+
+ <wsdl:input message="impl:returnAddressFromHeaderRequest"
name="returnAddressFromHeaderRequest"/>
+
+ <wsdl:output message="impl:returnAddressFromHeaderResponse"
name="returnAddressFromHeaderResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInBody">
+
+ <wsdl:input message="impl:createAddressInBodyRequest"
name="createAddressInBodyRequest"/>
+
+ <wsdl:output message="impl:createAddressInBodyResponse"
name="createAddressInBodyResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInHeader">
+
+ <wsdl:input message="impl:createAddressInHeaderRequest"
name="createAddressInHeaderRequest"/>
+
+ <wsdl:output message="impl:createAddressInHeaderResponse"
name="createAddressInHeaderResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInBody">
+
+ <wsdl:input message="impl:changeAddressInBodyRequest"
name="changeAddressInBodyRequest"/>
+
+ <wsdl:output message="impl:changeAddressInBodyResponse"
name="changeAddressInBodyResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInHeader">
+
+ <wsdl:input message="impl:changeAddressInHeaderRequest"
name="changeAddressInHeaderRequest"/>
+
+ <wsdl:output message="impl:changeAddressInHeaderResponse"
name="changeAddressInHeaderResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="throwAddressException">
+
+ <wsdl:input message="impl:throwAddressExceptionRequest"
name="throwAddressExceptionRequest"/>
+
+ <wsdl:output message="impl:throwAddressExceptionResponse"
name="throwAddressExceptionResponse"/>
+
+ <wsdl:fault message="impl:AddressException" name="AddressException"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="DocumentLiteralWrappedSampleSoapBinding"
type="impl:DocumentLiteralWrappedSample">
+
+ <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="returnAddressFromBody">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="returnAddressFromBodyRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="returnAddressFromBodyResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="returnAddressFromHeader">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="returnAddressFromHeaderRequest">
+
+ <wsdlsoap:body parts="parameters" use="literal"/>
+
+ <wsdlsoap:header message="impl:returnAddressFromHeaderRequest"
namespace="http://complex.web" part="in_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:input>
+
+ <wsdl:output name="returnAddressFromHeaderResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInBody">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="createAddressInBodyRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="createAddressInBodyResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="createAddressInHeader">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="createAddressInHeaderRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="createAddressInHeaderResponse">
+
+ <wsdlsoap:body parts="parameters" use="literal"/>
+
+ <wsdlsoap:header message="impl:createAddressInHeaderResponse"
namespace="http://complex.web" part="out_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInBody">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="changeAddressInBodyRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="changeAddressInBodyResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="changeAddressInHeader">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="changeAddressInHeaderRequest">
+
+ <wsdlsoap:body parts="parameters" use="literal"/>
+
+ <wsdlsoap:header message="impl:changeAddressInHeaderRequest"
namespace="http://complex.web" part="inout_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:input>
+
+ <wsdl:output name="changeAddressInHeaderResponse">
+
+ <wsdlsoap:body parts="parameters" use="literal"/>
+
+ <wsdlsoap:header message="impl:changeAddressInHeaderResponse"
namespace="http://complex.web" part="inout_param_header" use="literal">
+
+ </wsdlsoap:header>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="throwAddressException">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="throwAddressExceptionRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="throwAddressExceptionResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ <wsdl:fault name="AddressException">
+
+ <wsdlsoap:fault name="AddressException" use="literal"/>
+
+ </wsdl:fault>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="DocumentLiteralWrappedSampleService">
+
+ <wsdl:port binding="impl:DocumentLiteralWrappedSampleSoapBinding"
name="DocumentLiteralWrappedSample">
+
+ <wsdlsoap:address
location="http://localhost:8080/ServiceControlDRT/web/complex/DocumentLiteralWrappedSample.jws"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl?rev=190023&r1=190022&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl
Fri Jun 10 14:42:17 2005
@@ -1,311 +1,311 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<wsdl:definitions
targetNamespace="http://controlhaus.org/ServiceControlTestServer"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://controlhaus.org/ServiceControlTestServer"
xmlns:intf="http://controlhaus.org/ServiceControlTestServer"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-<!--WSDL created by Apache Axis version: 1.2RC2
-Built on Nov 16, 2004 (12:19:44 EST)-->
- <wsdl:types>
- <schema elementFormDefault="qualified"
targetNamespace="http://controlhaus.org/ServiceControlTestServer"
xmlns="http://www.w3.org/2001/XMLSchema">
- <element name="getAddressFromName">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- <element name="getAddressFromNameResponse">
- <complexType>
- <sequence>
- <element name="result" type="impl:Address"/>
- </sequence>
- </complexType>
- </element>
- <complexType name="Phone">
- <sequence>
- <element name="areaCode" type="xsd:int"/>
- <element name="exchange" nillable="true" type="xsd:string"/>
- <element name="number" nillable="true" type="xsd:string"/>
- </sequence>
- </complexType>
- <complexType name="StateType">
- <sequence>
- <element name="state" nillable="true" type="xsd:string"/>
- </sequence>
- </complexType>
- <complexType name="Address">
- <sequence>
- <element name="city" nillable="true" type="xsd:string"/>
- <element name="phoneNumber" nillable="true" type="impl:Phone"/>
- <element name="state" nillable="true" type="impl:StateType"/>
- <element name="streetName" nillable="true" type="xsd:string"/>
- <element name="streetNum" type="xsd:int"/>
- <element name="zip" type="xsd:int"/>
- </sequence>
- </complexType>
- <element name="getAddressFromNames">
- <complexType>
- <sequence>
- <element maxOccurs="unbounded" name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- <element name="getAddressFromNamesResponse">
- <complexType>
- <sequence>
- <element maxOccurs="unbounded" name="result" type="impl:Address"/>
- </sequence>
- </complexType>
- </element>
- <element name="oneWayWithParam">
- <complexType>
- <sequence>
- <element name="param1" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- <element name="simpleNoParamMethod">
- <complexType/>
- </element>
- <element name="simpleNoParamMethodResponse">
- <complexType>
- <sequence>
- <element name="result" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- <element name="addEntry">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- <element name="address" type="impl:Address"/>
- </sequence>
- </complexType>
- </element>
- <element name="addEntryResponse">
- <complexType/>
- </element>
- <element name="oneWayWithNoParam">
- <complexType/>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getAddressFromNamesResponse">
-
- <wsdl:part element="impl:getAddressFromNamesResponse" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="addEntryResponse">
-
- <wsdl:part element="impl:addEntryResponse" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="oneWayWithNoParamRequest">
-
- <wsdl:part element="impl:oneWayWithNoParam" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="oneWayWithParamRequest">
-
- <wsdl:part element="impl:oneWayWithParam" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="addEntryRequest">
-
- <wsdl:part element="impl:addEntry" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="getAddressFromNameResponse">
-
- <wsdl:part element="impl:getAddressFromNameResponse" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="getAddressFromNamesRequest">
-
- <wsdl:part element="impl:getAddressFromNames" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="getAddressFromNameRequest">
-
- <wsdl:part element="impl:getAddressFromName" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="simpleNoParamMethodResponse">
-
- <wsdl:part element="impl:simpleNoParamMethodResponse" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:message name="simpleNoParamMethodRequest">
-
- <wsdl:part element="impl:simpleNoParamMethod" name="parameters"/>
-
- </wsdl:message>
-
- <wsdl:portType name="Service">
-
- <wsdl:operation name="getAddressFromName">
-
- <wsdl:input message="impl:getAddressFromNameRequest"
name="getAddressFromNameRequest"/>
-
- <wsdl:output message="impl:getAddressFromNameResponse"
name="getAddressFromNameResponse"/>
-
- </wsdl:operation>
-
- <wsdl:operation name="getAddressFromNames">
-
- <wsdl:input message="impl:getAddressFromNamesRequest"
name="getAddressFromNamesRequest"/>
-
- <wsdl:output message="impl:getAddressFromNamesResponse"
name="getAddressFromNamesResponse"/>
-
- </wsdl:operation>
-
- <wsdl:operation name="oneWayWithParam">
-
- <wsdl:input message="impl:oneWayWithParamRequest"
name="oneWayWithParamRequest"/>
-
- </wsdl:operation>
-
- <wsdl:operation name="simpleNoParamMethod">
-
- <wsdl:input message="impl:simpleNoParamMethodRequest"
name="simpleNoParamMethodRequest"/>
-
- <wsdl:output message="impl:simpleNoParamMethodResponse"
name="simpleNoParamMethodResponse"/>
-
- </wsdl:operation>
-
- <wsdl:operation name="addEntry">
-
- <wsdl:input message="impl:addEntryRequest" name="addEntryRequest"/>
-
- <wsdl:output message="impl:addEntryResponse" name="addEntryResponse"/>
-
- </wsdl:operation>
-
- <wsdl:operation name="oneWayWithNoParam">
-
- <wsdl:input message="impl:oneWayWithNoParamRequest"
name="oneWayWithNoParamRequest"/>
-
- </wsdl:operation>
-
- </wsdl:portType>
-
- <wsdl:binding name="ServiceSoapBinding" type="impl:Service">
-
- <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
-
- <wsdl:operation name="getAddressFromName">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="getAddressFromNameRequest">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:input>
-
- <wsdl:output name="getAddressFromNameResponse">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
- <wsdl:operation name="getAddressFromNames">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="getAddressFromNamesRequest">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:input>
-
- <wsdl:output name="getAddressFromNamesResponse">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
- <wsdl:operation name="oneWayWithParam">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="oneWayWithParamRequest">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:input>
-
- </wsdl:operation>
-
- <wsdl:operation name="simpleNoParamMethod">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="simpleNoParamMethodRequest">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:input>
-
- <wsdl:output name="simpleNoParamMethodResponse">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
- <wsdl:operation name="addEntry">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="addEntryRequest">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:input>
-
- <wsdl:output name="addEntryResponse">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
- <wsdl:operation name="oneWayWithNoParam">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="oneWayWithNoParamRequest">
-
- <wsdlsoap:body use="literal"/>
-
- </wsdl:input>
-
- </wsdl:operation>
-
- </wsdl:binding>
-
- <wsdl:service name="ServiceControlTest">
-
- <wsdl:port binding="impl:ServiceSoapBinding" name="Service">
-
- <wsdlsoap:address
location="http://localhost:8080/ServiceControlDRT/web/Service.jws"/>
-
- </wsdl:port>
-
- </wsdl:service>
-
-</wsdl:definitions>
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
targetNamespace="http://apache.beehive.org/ServiceControlTestServer"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://apache.beehive.org/ServiceControlTestServer"
xmlns:intf="http://apache.beehive.org/ServiceControlTestServer"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.2RC2
+Built on Nov 16, 2004 (12:19:44 EST)-->
+ <wsdl:types>
+ <schema elementFormDefault="qualified"
targetNamespace="http://apache.beehive.org/ServiceControlTestServer"
xmlns="http://www.w3.org/2001/XMLSchema">
+ <element name="getAddressFromName">
+ <complexType>
+ <sequence>
+ <element name="name" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getAddressFromNameResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <complexType name="Phone">
+ <sequence>
+ <element name="areaCode" type="xsd:int"/>
+ <element name="exchange" nillable="true" type="xsd:string"/>
+ <element name="number" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="StateType">
+ <sequence>
+ <element name="state" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="Address">
+ <sequence>
+ <element name="city" nillable="true" type="xsd:string"/>
+ <element name="phoneNumber" nillable="true" type="impl:Phone"/>
+ <element name="state" nillable="true" type="impl:StateType"/>
+ <element name="streetName" nillable="true" type="xsd:string"/>
+ <element name="streetNum" type="xsd:int"/>
+ <element name="zip" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ <element name="getAddressFromNames">
+ <complexType>
+ <sequence>
+ <element maxOccurs="unbounded" name="name" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getAddressFromNamesResponse">
+ <complexType>
+ <sequence>
+ <element maxOccurs="unbounded" name="result" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="oneWayWithParam">
+ <complexType>
+ <sequence>
+ <element name="param1" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="simpleNoParamMethod">
+ <complexType/>
+ </element>
+ <element name="simpleNoParamMethodResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="addEntry">
+ <complexType>
+ <sequence>
+ <element name="name" type="xsd:string"/>
+ <element name="address" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="addEntryResponse">
+ <complexType/>
+ </element>
+ <element name="oneWayWithNoParam">
+ <complexType/>
+ </element>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="getAddressFromNamesResponse">
+
+ <wsdl:part element="impl:getAddressFromNamesResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addEntryResponse">
+
+ <wsdl:part element="impl:addEntryResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="oneWayWithNoParamRequest">
+
+ <wsdl:part element="impl:oneWayWithNoParam" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="oneWayWithParamRequest">
+
+ <wsdl:part element="impl:oneWayWithParam" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addEntryRequest">
+
+ <wsdl:part element="impl:addEntry" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getAddressFromNameResponse">
+
+ <wsdl:part element="impl:getAddressFromNameResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getAddressFromNamesRequest">
+
+ <wsdl:part element="impl:getAddressFromNames" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getAddressFromNameRequest">
+
+ <wsdl:part element="impl:getAddressFromName" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="simpleNoParamMethodResponse">
+
+ <wsdl:part element="impl:simpleNoParamMethodResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="simpleNoParamMethodRequest">
+
+ <wsdl:part element="impl:simpleNoParamMethod" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="Service">
+
+ <wsdl:operation name="getAddressFromName">
+
+ <wsdl:input message="impl:getAddressFromNameRequest"
name="getAddressFromNameRequest"/>
+
+ <wsdl:output message="impl:getAddressFromNameResponse"
name="getAddressFromNameResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getAddressFromNames">
+
+ <wsdl:input message="impl:getAddressFromNamesRequest"
name="getAddressFromNamesRequest"/>
+
+ <wsdl:output message="impl:getAddressFromNamesResponse"
name="getAddressFromNamesResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithParam">
+
+ <wsdl:input message="impl:oneWayWithParamRequest"
name="oneWayWithParamRequest"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="simpleNoParamMethod">
+
+ <wsdl:input message="impl:simpleNoParamMethodRequest"
name="simpleNoParamMethodRequest"/>
+
+ <wsdl:output message="impl:simpleNoParamMethodResponse"
name="simpleNoParamMethodResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addEntry">
+
+ <wsdl:input message="impl:addEntryRequest" name="addEntryRequest"/>
+
+ <wsdl:output message="impl:addEntryResponse" name="addEntryResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithNoParam">
+
+ <wsdl:input message="impl:oneWayWithNoParamRequest"
name="oneWayWithNoParamRequest"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="ServiceSoapBinding" type="impl:Service">
+
+ <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getAddressFromName">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getAddressFromNameRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getAddressFromNameResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getAddressFromNames">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getAddressFromNamesRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getAddressFromNamesResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithParam">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="oneWayWithParamRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="simpleNoParamMethod">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="simpleNoParamMethodRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="simpleNoParamMethodResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addEntry">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="addEntryRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="addEntryResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithNoParam">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="oneWayWithNoParamRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="ServiceControlTest">
+
+ <wsdl:port binding="impl:ServiceSoapBinding" name="Service">
+
+ <wsdlsoap:address
location="http://localhost:8080/ServiceControlDRT/web/Service.jws"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Address.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Address.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Address.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Address.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package org.apache.beehive.doclitwrap;
+
+public class Address implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private int streetNum;
+ private String streetName;
+ private String city;
+ private StateType state;
+ private int zip;
+ private Phone phoneNumber;
+
+ public Address() { }
+
+ public Address(int streetNum, String streetName, String city, StateType
state, int zip, Phone phoneNumber) {
+
+ this.streetNum = streetNum;
+ this.streetName = streetName;
+ this.city = city;
+ this.state = state;
+ this.zip = zip;
+ this.phoneNumber = phoneNumber;
+ }
+
+ public String getCity() { return city; }
+ public void setCity(String city) { this.city = city; }
+
+ public Phone getPhoneNumber() { return phoneNumber; }
+ public void setPhoneNumber(Phone phoneNumber) { this.phoneNumber =
phoneNumber; }
+
+ public StateType getState() { return state; }
+ public void setState(StateType state) { this.state = state; }
+
+ public String getStreetName() { return streetName; }
+ public void setStreetName(String streetName) { this.streetName =
streetName; }
+
+ public int getStreetNum() { return streetNum; }
+ public void setStreetNum(int streetNum) { this.streetNum = streetNum; }
+
+ public int getZip() { return zip; }
+ public void setZip(int zip) { this.zip = zip; }
+}
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressException.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressException.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressException.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressException.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package org.apache.beehive.doclitwrap;
+
+public class AddressException extends Exception implements
java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ public AddressException() { }
+ public AddressException(String msg) { super(msg); }
+}
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressHolder.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressHolder.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressHolder.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/AddressHolder.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,26 @@
+package org.apache.beehive.doclitwrap;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+public class AddressHolder implements javax.xml.rpc.holders.Holder,
java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ public Address value;
+}
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/MessageHandler.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/MessageHandler.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/MessageHandler.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/MessageHandler.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,90 @@
+package org.apache.beehive.doclitwrap;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$Factory
+ */
+
+import javax.xml.namespace.QName;
+
+import javax.xml.rpc.handler.Handler;
+import javax.xml.rpc.handler.HandlerInfo;
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+
+import javax.xml.soap.SOAPMessage;
+
+public class MessageHandler implements Handler {
+
+ private static final String ORIGINAL = "original";
+ private static final String MODIFIED = "ORIGINAL";
+
+ private HandlerInfo info;
+ private String modified;
+ private String original;
+
+ public void init(HandlerInfo handlerInfo) {
+
+ info = handlerInfo;
+
+ original = (String) info.getHandlerConfig().get("original");
+ if (null == original || 0 == original.length()) {
+ original = ORIGINAL;
+ }
+
+ modified = (String) info.getHandlerConfig().get("modified");
+ if (null == modified || 0 == modified.length()) {
+ modified = MODIFIED;
+ }
+ }
+
+ public void destroy() {
+ // empty
+ }
+
+ public QName[] getHeaders() {
+ return info.getHeaders();
+ }
+
+ public boolean handleRequest(MessageContext mc) {
+ boolean result = false;
+ try {
+ System.out.println("*** MessageHandler: handling message;
initialized with <original>=" + original + ", <modified>=" + modified);
+ SOAPMessage message = ((SOAPMessageContext) mc).getMessage();
+ String value =
message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().getNodeValue();
+ if ((null != value) && value.equals(original)) {
+
message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().setNodeValue(modified);
+ System.out.println("*** Replacing: " + original + " with: " +
modified);
+ }
+ else {
+ System.out.println("*** Not replacing: " + original);
+ }
+ result = true;
+ }
+ catch (Throwable t) {
+ t.printStackTrace();
+ }
+ return result;
+ }
+
+ public boolean handleResponse(MessageContext mc) {
+ return true;
+ }
+
+ public boolean handleFault(MessageContext mc) {
+ return true;
+ }
+}
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Phone.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Phone.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Phone.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/Phone.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,46 @@
+package org.apache.beehive.doclitwrap;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+public class Phone implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private int areaCode;
+ private String exchange;
+ private String number;
+
+ public Phone() { super(); }
+
+ public Phone(int areaCode, String exchange, String number) {
+
+ this.areaCode = areaCode;
+ this.exchange = exchange;
+ this.number = number;
+ }
+
+ public int getAreaCode() { return areaCode; }
+ public void setAreaCode(int areaCode) { this.areaCode = areaCode; }
+
+ public String getExchange() { return exchange; }
+ public void setExchange(String exchange) { this.exchange = exchange; }
+
+ public String getNumber() { return number; }
+ public void setNumber(String number) { this.number = number; }
+}
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/StateType.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/StateType.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/StateType.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitwrap/StateType.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,33 @@
+package org.apache.beehive.doclitwrap;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+public class StateType implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private String state;
+
+ public StateType() { }
+
+ public StateType(String state) { this.state = state; }
+
+ public String getState() { return state; }
+ public void setState(String state) { this.state = state; }
+}
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java?rev=190023&r1=190022&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java
Fri Jun 10 14:42:17 2005
@@ -1,5 +1,3 @@
-package org.apache.beehive.sample;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -17,6 +15,7 @@
*
* $Header:$
*/
+package org.apache.beehive.sample;
import java.io.Serializable;
@@ -30,8 +29,6 @@
private int zip;
private Phone phoneNumber;
-
-
/**
* @param streetNum
* @param streetName
@@ -55,7 +52,6 @@
*/
public Address() {
super();
- // TODO Auto-generated constructor stub
}
/**
* @return Returns the city.
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java?rev=190023&r1=190022&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java
Fri Jun 10 14:42:17 2005
@@ -1,7 +1,3 @@
-package org.apache.beehive.sample;
-
-import javax.naming.InvalidNameException;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -19,6 +15,9 @@
*
* $Header:$
*/
+package org.apache.beehive.sample;
+
+import javax.naming.InvalidNameException;
public interface AddressBook
{
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java?rev=190023&r1=190022&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java
Fri Jun 10 14:42:17 2005
@@ -1,5 +1,3 @@
-package org.apache.beehive.sample;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -14,10 +12,8 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
- * $Header:$
*/
-
+package org.apache.beehive.sample;
import java.util.Hashtable;
import java.util.Map;
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java?rev=190023&r1=190022&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java
Fri Jun 10 14:42:17 2005
@@ -1,5 +1,3 @@
-package org.apache.beehive.sample;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -17,6 +15,7 @@
*
* $Header:$
*/
+package org.apache.beehive.sample;
import java.io.Serializable;
@@ -25,10 +24,8 @@
private static final long serialVersionUID = 1L;
private int areaCode;
- private java.lang.String exchange;
- private java.lang.String number;
-
-
+ private String exchange;
+ private String number;
/**
* @param areaCode
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java?rev=190023&r1=190022&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java
Fri Jun 10 14:42:17 2005
@@ -1,5 +1,3 @@
-package org.apache.beehive.sample;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -17,13 +15,15 @@
*
* $Header:$
*/
+package org.apache.beehive.sample;
import java.io.Serializable;
public class StateType implements Serializable
{
private static final long serialVersionUID = 1L;
- String state;
+
+ private String state;
/**
*
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws?rev=190023&r1=190022&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws
Fri Jun 10 14:42:17 2005
@@ -1,5 +1,3 @@
-package web;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -17,6 +15,7 @@
*
* $Header:$
*/
+package web;
import java.rmi.RemoteException;
@@ -32,7 +31,6 @@
import org.apache.beehive.sample.Address;
import org.apache.beehive.sample.AddressBook;
import org.apache.beehive.sample.AddressBookImpl;
-
@WebService(targetNamespace="http://controlhaus.org/ServiceControlTestServer",
serviceName="ServiceControlTest")
//@SOAPBinding( style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.ENCODED)
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex/DocumentLiteralWrappedSample.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex/DocumentLiteralWrappedSample.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex/DocumentLiteralWrappedSample.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex/DocumentLiteralWrappedSample.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,133 @@
+package web.complex;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.apache.beehive.doclitwrap.Address;
+import org.apache.beehive.doclitwrap.AddressHolder;
+import org.apache.beehive.doclitwrap.AddressException;
+import org.apache.beehive.doclitwrap.Phone;
+import org.apache.beehive.doclitwrap.StateType;
+
+/**
+ * This class illustrates the use of complex types with style/use
"DOC/LITERAL" (wrapped).
+ */
+@WebService
+@SOAPBinding(
+ style=SOAPBinding.Style.DOCUMENT,
+ use=SOAPBinding.Use.LITERAL,
+ parameterStyle=SOAPBinding.ParameterStyle.WRAPPED
+)
+public class DocumentLiteralWrappedSample {
+
+ /**
+ * Returns a complex (address) object that was passed in as IN parameter
in the message body.
+ * @param address The complex object to be returned.
+ * @return The complex object that was passed in as an IN parameter.
+ */
+ @WebMethod
+ @WebResult(name="ReturnAddressFromBodyResult")
+ public Address returnAddressFromBody(@WebParam(name="in_param_body",
mode=WebParam.Mode.IN) Address address) {
+ return address;
+ }
+
+ /**
+ * Returns a complex (address) object that was passed in as IN parameter
in the message header.
+ * @param object The complex object to be modified.
+ * @return The complex object that was passed in as an IN parameter.
+ */
+ @WebMethod
+ @WebResult(name="ReturnAddressFromHeaderResult")
+ public Address returnAddressFromHeader(@WebParam(name="in_param_header",
header=true, mode=WebParam.Mode.IN) Address address) {
+ return address;
+ }
+
+ /**
+ * Creates a new complex (address) object and returns that object as an
OUT parameter that is encoded in the message body.
+ * @param addressHolder The holder of the complex object to be returned.
+ * @return An operational result (always 0).
+ */
+ @WebMethod
+ @WebResult(name="ReturnCreateAddressInBodyResult")
+ public int createAddressInBody(@WebParam(name="out_param_body",
mode=WebParam.Mode.OUT) AddressHolder addressHolder) {
+ StateType state = new StateType("WA");
+ Phone phoneNumber = new Phone(425, "555", "1234");
+ Address address = new Address(10230, "NE Points Drive", "Kirkland",
state, 98008, phoneNumber);
+ addressHolder.value = address;
+ return 0;
+ }
+
+ /**
+ * Creates a new complex (address) object and returns that object as an
OUT parameter that is encoded in the message header.
+ * @param addressHolder The holder of the complex object to be returned.
+ * @return An operational result (always 0).
+ */
+ @WebMethod
+ @WebResult(name="ReturnCreateAddressInHeaderResult")
+ public int createAddressInHeader(@WebParam(name="out_param_header",
header=true, mode=WebParam.Mode.OUT) AddressHolder addressHolder) {
+ StateType state = new StateType("WA");
+ Phone phoneNumber = new Phone(425, "555", "1234");
+ Address address = new Address(10230, "NE Points Drive", "Kirkland",
state, 98008, phoneNumber);
+ addressHolder.value = address;
+ return 0;
+ }
+
+ /**
+ * Modifies a complex (address) INOUT parameter that is encoded in the
message body.
+ * @param addressHolder The object to be modified.
+ * @return An operational result (always 0).
+ */
+ @WebMethod
+ @WebResult(name="ChangeAddressInBodyResult")
+ public int changeAddressInBody(@WebParam(name="inout_param_body",
mode=WebParam.Mode.INOUT) AddressHolder addressHolder) {
+ Address address = addressHolder.value;
+ address.setZip(address.getZip() + 1);
+ return 0;
+ }
+
+ /**
+ * Modifies a complex (address) INOUT parameter that is encoded in the
message header.
+ * @param addressHolder The object to be modified.
+ * @return An operational result (always 0).
+ */
+ @WebMethod
+ @WebResult(name="ChangeAddressInHeaderResult")
+ public int changeAddressInHeader(@WebParam(name="inout_param_header",
header=true, mode=WebParam.Mode.INOUT) AddressHolder addressHolder) {
+ Address address = addressHolder.value;
+ address.setZip(address.getZip() + 1);
+ return 0;
+ }
+
+ /**
+ * Throws an AddressException.
+ * @param value Ignored (only printed in message).
+ * @return An operational result (never returned).
+ * @throws AddressException Always thrown.
+ */
+ @WebMethod
+ @WebResult(name="ThrowAddressExceptionResult")
+ public int throwAddressException(@WebParam(name="in_param") int value)
throws AddressException {
+ throw new AddressException("This is a sample message
for:\n\tAddressException; input value=\"" + value + "\"");
+ }
+}
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/dlwservice/DocLitWrapWebServiceTest.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/dlwservice/DocLitWrapWebServiceTest.java?rev=190023&view=auto
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/dlwservice/DocLitWrapWebServiceTest.java
(added)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/dlwservice/DocLitWrapWebServiceTest.java
Fri Jun 10 14:42:17 2005
@@ -0,0 +1,65 @@
+/*
+ *
+ * Copyright 2004 BEA Systems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * Original author: Daryoush Mehrtash
+ */
+package org.apache.beehive.controls.system.webservice.units.dlwservice;
+
+import org.apache.beehive.controls.api.bean.Control;
+import
org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import org.apache.log4j.Logger;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import test.DocumentLiteralWrappedSampleService;
+
+
+public class DocLitWrapWebServiceTest extends ControlTestCase {
+ static Logger logger = Logger.getLogger(DocLitWrapWebServiceTest.class);
+
+ @Control
+ public DocumentLiteralWrappedSampleService client;
+
+ public void testSimpleInvoke() throws Exception {
+ web.complex.Address addr = web.complex.Address.Factory.newInstance();
+ addr.setCity("Boulder");
+
+ web.complex.Address result = client.returnAddressFromBody(addr);
+ assertEquals("Boulder", result.getCity());
+ }
+
+ public void setUp() throws Exception {
+ try {
+ super.setUp();
+ initializeControls(this);
+ setMyControlObject(client);
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public DocLitWrapWebServiceTest() throws Exception {
+ }
+
+ public static Test suite() {
+ return new TestSuite(DocLitWrapWebServiceTest.class);
+ }
+
+ public static void main(String[] args) {
+ junit.textui.TestRunner.run(suite());
+ }
+}
\ No newline at end of file
Copied:
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/utils/ControlTestCase.java
(from r189802,
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/controlunit/ControlTestCase.java)
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/utils/ControlTestCase.java?p2=incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/utils/ControlTestCase.java&p1=incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/controlunit/ControlTestCase.java&r1=189802&r2=190023&rev=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/controlunit/ControlTestCase.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/utils/ControlTestCase.java
Fri Jun 10 14:42:17 2005
@@ -1,9 +1,5 @@
-package org.controlhaus.controlunit;
-
/*
- * ServiceControlTestCase.java
- *
- * Copyright 2004 BEA Systems, Inc.
+ * Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,17 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
- *
- * Original author: Jonathan Colwell
*/
-
+package org.apache.beehive.controls.system.webservice.units.utils;
import java.beans.beancontext.BeanContextChild;
import java.beans.beancontext.BeanContextServiceProvider;
import java.beans.beancontext.BeanContextServices;
import java.io.InputStream;
import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Iterator;
Copied:
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/webservice/SimpleWebServiceTest.java
(from r189802,
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/SimpleWebSericeTest.java)
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/webservice/SimpleWebServiceTest.java?p2=incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/webservice/SimpleWebServiceTest.java&p1=incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/SimpleWebSericeTest.java&r1=189802&r2=190023&rev=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/SimpleWebSericeTest.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/webservice/SimpleWebServiceTest.java
Fri Jun 10 14:42:17 2005
@@ -17,62 +17,38 @@
*
* Original author: Daryoush Mehrtash
*/
-package org.controlhaus.webservice;
-
-
-import javax.xml.rpc.ServiceException;
-import javax.xml.rpc.ServiceFactory;
-import javax.xml.rpc.holders.StringHolder;
-
-import junit.framework.TestCase;
+package org.apache.beehive.controls.system.webservice.units.webservice;
import org.apache.log4j.Logger;
-import org.controlhaus.controlunit.ControlTestCase;
-import org.controlhaus.webservice.testmodel.client.*;
-
-
-import java.beans.beancontext.BeanContextChild;
-import java.beans.beancontext.BeanContextServiceProvider;
-import java.beans.beancontext.BeanContextServices;
-import java.io.InputStream;
-import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.net.URL;
-import java.util.Iterator;
-
-import junit.framework.TestCase;
import org.apache.beehive.controls.api.bean.Control;
-import org.apache.beehive.controls.api.context.ControlContainerContext;
-import org.apache.beehive.controls.api.context.ControlThreadContext;
-import org.apache.beehive.controls.api.context.ControlBeanContext;
-
-
-public class SimpleWebSericeTest extends ControlTestCase {
- static Logger logger = Logger.getLogger(SimpleWebSericeTest.class);
-
- @Control public SimpleWSClient client;
-
- public void testSimpleInvoke() throws Exception {
- System.out.println("In method control is: " + client);
- ClientAddress res = client.getAddressFromName("Jack");
- logger.debug("Jack... city: " + res.getCity() + " zipcode: " +
res.getZip() + " street: " + res.getStreetName());
- assertTrue("Result address is not as expected!:
Result: " +res.getCity() + " Expected: " + "Seattle", 0 ==
"Seattle".compareTo(res.getCity()));
- assertTrue("Result zipcode is not as expected!:
Result: " +res.getZip() + " Expected: " + "98119", 98119 == res.getZip());
- }
-
-
-
- public void setUp() throws Exception {
-
- try {
- super.setUp();
- initializeControls(this);
- setMyControlObject(client);
-
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
+import
org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import
org.apache.beehive.controls.system.webservice.testmodel.client.ClientAddress;
+import
org.apache.beehive.controls.system.webservice.testmodel.client.SimpleWSClient;
+
+public class SimpleWebServiceTest
+ extends ControlTestCase {
+
+ private static Logger logger =
Logger.getLogger(SimpleWebServiceTest.class);
+
+ @Control
+ public SimpleWSClient client;
+
+ public void testSimpleInvoke() throws Exception {
+ System.out.println("In method control is: " + client);
+ ClientAddress res = client.getAddressFromName("Jack");
+ logger.debug("Jack... city: " + res.getCity() + " zipcode: " +
res.getZip() + " street: " + res.getStreetName());
+ assertTrue("Result address is not as expected!: Result: " +
res.getCity() + " Expected: " + "Seattle", 0 ==
"Seattle".compareTo(res.getCity()));
+ assertTrue("Result zipcode is not as expected!: Result: " +
res.getZip() + " Expected: " + "98119", 98119 == res.getZip());
+ }
+
+ public void setUp() throws Exception {
+ try {
+ super.setUp();
+ initializeControls(this);
+ setMyControlObject(client);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
}
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientAddress.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientAddress.java?rev=190023&r1=189802&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientAddress.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientAddress.java
Fri Jun 10 14:42:17 2005
@@ -16,7 +16,7 @@
*
* $Header:$
*/
-package org.controlhaus.webservice.testmodel.client;
+package org.apache.beehive.controls.system.webservice.testmodel.client;
import java.io.Serializable;
@@ -29,8 +29,6 @@
private ClinetStateType state;
private int zip;
private ClientPhone phoneNumber;
-
-
/**
* @param streetNum
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientPhone.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientPhone.java?rev=190023&r1=189802&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientPhone.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClientPhone.java
Fri Jun 10 14:42:17 2005
@@ -1,5 +1,3 @@
-package org.controlhaus.webservice.testmodel.client;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -17,6 +15,7 @@
*
* $Header:$
*/
+package org.apache.beehive.controls.system.webservice.testmodel.client;
import java.io.Serializable;
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClinetStateType.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClinetStateType.java?rev=190023&r1=189802&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClinetStateType.java
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/ClinetStateType.java
Fri Jun 10 14:42:17 2005
@@ -1,5 +1,3 @@
-package org.controlhaus.webservice.testmodel.client;
-
/*
* Copyright 2004 The Apache Software Foundation
*
@@ -17,6 +15,7 @@
*
* $Header:$
*/
+package org.apache.beehive.controls.system.webservice.testmodel.client;
import java.io.Serializable;
@@ -30,8 +29,8 @@
*/
public ClinetStateType() {
super();
- // TODO Auto-generated constructor stub
}
+
/**
* @param state
*/
Modified:
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/SimpleWSClient.jcx
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/SimpleWSClient.jcx?rev=190023&r1=189802&r2=190023&view=diff
==============================================================================
---
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/SimpleWSClient.jcx
(original)
+++
incubator/beehive/trunk/system-controls/test/src/webservice/webservice-controls/org/apache/beehive/controls/system/webservice/testmodel/client/SimpleWSClient.jcx
Fri Jun 10 14:42:17 2005
@@ -13,22 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.controlhaus.webservice.testmodel.client;
+package org.apache.beehive.controls.system.webservice.testmodel.client;
+
+import javax.xml.rpc.holders.StringHolder;
import org.apache.beehive.controls.api.bean.ControlExtension;
import org.apache.beehive.controls.system.webservice.ServiceControl;
import org.apache.beehive.controls.system.webservice.ServiceControl.Location;
import org.apache.beehive.controls.system.webservice.ServiceControl.WSDL;
-import javax.xml.rpc.holders.StringHolder;
-import javax.xml.rpc.holders.IntHolder;
@ControlExtension
@Location(urls = {"http://localhost:8080/ServiceControlDRT/web/Service.jws"})
-@WSDL(path = "ServiceControlTest.wsdl",
//http://localhost:8080/sctestServer/web/Service.jws?wsdl",
- service = "ServiceControlTest")
-public interface SimpleWSClient extends ServiceControl {
- public void addEntry(String name, ClientAddress address);
+@WSDL(path = "ServiceControlTest.wsdl", service = "ServiceControlTest")
+public interface SimpleWSClient
+ extends ServiceControl {
+
+ public void addEntry(String name, ClientAddress address);
public ClientAddress getAddressFromName(String name);
public ClientAddress[] getAddressFromNames(String[] name);
- public int FindClosestName( StringHolder name);
+ public int FindClosestName(StringHolder name);
}
|
|