Added: incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcEncodedSample.wsdl URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcEncodedSample.wsdl?rev=169518&view=auto ============================================================================== --- incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcEncodedSample.wsdl (added) +++ incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcEncodedSample.wsdl Tue May 10 13:32:29 2005 @@ -0,0 +1,361 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsdl:definitions targetNamespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://beehive.apache.org/web/webservice/rpc-enc-examples" xmlns:intf="http://beehive.apache.org/web/webservice/rpc-enc-examples" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://sample.beehive.apache.org" 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.2RC3 +Built on Feb 28, 2005 (10:15:14 EST)--> + <wsdl:types> + <schema targetNamespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" xmlns="http://www.w3.org/2001/XMLSchema"> + <import namespace="http://sample.beehive.apache.org"/> + <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> + </schema> + <schema targetNamespace="http://sample.beehive.apache.org" xmlns="http://www.w3.org/2001/XMLSchema"> + <import namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples"/> + <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> + <complexType name="AddressException"> + <sequence/> + </complexType> + </schema> + </wsdl:types> + + <wsdl:message name="returnAddressFromHeaderResponse"> + + <wsdl:part name="ReturnAddressFromHeaderResult" type="impl:Address"/> + + </wsdl:message> + + <wsdl:message name="changeAddressInBodyRequest"> + + <wsdl:part name="inout_param_body" type="impl:Address"/> + + </wsdl:message> + + <wsdl:message name="throwAddressExceptionRequest"> + + <wsdl:part name="in_param" type="xsd:int"/> + + </wsdl:message> + + <wsdl:message name="AddressException"> + + <wsdl:part name="fault" type="tns1:AddressException"/> + + </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="throwAddressExceptionResponse"> + + <wsdl:part name="ThrowAddressExceptionResult" type="xsd:int"/> + + </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="createAddressInHeaderResponse"> + + <wsdl:part name="out_param_header" type="impl:Address"/> + + <wsdl:part name="ReturnCreateAddressInHeaderResult" type="xsd:int"/> + + </wsdl:message> + + <wsdl:message name="changeAddressInHeaderRequest"> + + <wsdl:part name="inout_param_header" type="impl:Address"/> + + </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="createAddressInHeaderRequest"> + + </wsdl:message> + + <wsdl:message name="returnAddressFromBodyResponse"> + + <wsdl:part name="ReturnAddressFromBodyResult" type="impl:Address"/> + + </wsdl:message> + + <wsdl:message name="createAddressInBodyRequest"> + + </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:portType name="RpcEncodedSample"> + + <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="RpcEncodedSampleSoapBinding" type="impl:RpcEncodedSample"> + + <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> + + <wsdl:operation name="returnAddressFromBody"> + + <wsdlsoap:operation soapAction=""/> + + <wsdl:input name="returnAddressFromBodyRequest"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:input> + + <wsdl:output name="returnAddressFromBodyResponse"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:output> + + </wsdl:operation> + + <wsdl:operation name="returnAddressFromHeader"> + + <wsdlsoap:operation soapAction=""/> + + <wsdl:input name="returnAddressFromHeaderRequest"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" parts="" use="encoded"/> + + <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="impl:returnAddressFromHeaderRequest" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" part="in_param_header" use="encoded"> + + </wsdlsoap:header> + + </wsdl:input> + + <wsdl:output name="returnAddressFromHeaderResponse"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:output> + + </wsdl:operation> + + <wsdl:operation name="createAddressInBody"> + + <wsdlsoap:operation soapAction=""/> + + <wsdl:input name="createAddressInBodyRequest"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:input> + + <wsdl:output name="createAddressInBodyResponse"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:output> + + </wsdl:operation> + + <wsdl:operation name="createAddressInHeader"> + + <wsdlsoap:operation soapAction=""/> + + <wsdl:input name="createAddressInHeaderRequest"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:input> + + <wsdl:output name="createAddressInHeaderResponse"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" parts="ReturnCreateAddressInHeaderResult" use="encoded"/> + + <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="impl:createAddressInHeaderResponse" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" part="out_param_header" use="encoded"> + + </wsdlsoap:header> + + </wsdl:output> + + </wsdl:operation> + + <wsdl:operation name="changeAddressInBody"> + + <wsdlsoap:operation soapAction=""/> + + <wsdl:input name="changeAddressInBodyRequest"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:input> + + <wsdl:output name="changeAddressInBodyResponse"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:output> + + </wsdl:operation> + + <wsdl:operation name="changeAddressInHeader"> + + <wsdlsoap:operation soapAction=""/> + + <wsdl:input name="changeAddressInHeaderRequest"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" parts="" use="encoded"/> + + <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="impl:changeAddressInHeaderRequest" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" part="inout_param_header" use="encoded"> + + </wsdlsoap:header> + + </wsdl:input> + + <wsdl:output name="changeAddressInHeaderResponse"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" parts="ChangeAddressInHeaderResult" use="encoded"/> + + <wsdlsoap:header encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" message="impl:changeAddressInHeaderResponse" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" part="inout_param_header" use="encoded"> + + </wsdlsoap:header> + + </wsdl:output> + + </wsdl:operation> + + <wsdl:operation name="throwAddressException"> + + <wsdlsoap:operation soapAction=""/> + + <wsdl:input name="throwAddressExceptionRequest"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:input> + + <wsdl:output name="throwAddressExceptionResponse"> + + <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:output> + + <wsdl:fault name="AddressException"> + + <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AddressException" namespace="http://beehive.apache.org/web/webservice/rpc-enc-examples" use="encoded"/> + + </wsdl:fault> + + </wsdl:operation> + + </wsdl:binding> + + <wsdl:service name="RpcEncodedSampleService"> + + <wsdl:port binding="impl:RpcEncodedSampleSoapBinding" name="RpcEncodedSample"> + + <wsdlsoap:address location="http://localhost:8080/wsm-samplesWS/web/complex/RpcEncodedSample.jws"/> + + </wsdl:port> + + </wsdl:service> + +</wsdl:definitions>
Added: incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcLiteralSample.wsdl URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcLiteralSample.wsdl?rev=169518&view=auto ============================================================================== --- incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcLiteralSample.wsdl (added) +++ incubator/beehive/trunk/system-controls/samples/webservice/wsm_samples_client/rpc_schemas/RpcLiteralSample.wsdl Tue May 10 13:32:29 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.2RC3 +Built on Feb 28, 2005 (10:15:14 EST)--> + <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/samples/webservice/xmlbeans/README.txt URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/README.txt?rev=169518&view=auto ============================================================================== --- incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/README.txt (added) +++ incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/README.txt Tue May 10 13:32:29 2005 @@ -0,0 +1,11 @@ +To run this sample you need to deploy and run the Beehive Address Book sample. + + $beehive.home/samples/wsm-addressbook + +This sample expect the web service to be deployed as: AddressBookWS + +Make sure the URL: + http://localhost:8080/AddressBookWS +is up and running before running this sample. + +URL can be modified by editing the service.url property in the build.xml \ No newline at end of file Added: incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/build.xml URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/build.xml?rev=169518&view=auto ============================================================================== --- incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/build.xml (added) +++ incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/build.xml Tue May 10 13:32:29 2005 @@ -0,0 +1,185 @@ +<?xml version="1.0" ?> + +<project name="xmlbea _service_control_sample" default="run.test"> + + <property environment="env"/> + <property name="beehive.home" value="${env.BEEHIVE_HOME}"/> + <import file="${beehive.home}/beehive-imports.xml"/> + + <property name="service.url" value="http://localhost:8080/AddressBookWS/web/Service.jws"/> + + <property name="build.dir" value="./build"/> + <property name="xbeangen.dir" value="${build.dir}/xbeangen"/> + <property name="extgen.dir" value="${build.dir}/extgen"/> + <property name="jcxgen.dir" value="${build.dir}/controlgen"/> + + + <property name="source.dir" value="./src"/> + <property name="common.source.dir" value="../common/src"/> + + <property name="junit.source.dir" value="./junit"/> + <property name="test.logs" value="./logs"/> + <property name="servers.dir" value="./servers/local"/> <!-- test servers --> + <property name="build.classes" value="${build.dir}/classes"/> + <property name="build.beansrc" value="${build.dir}/beansrc"/> + <property name="axisbeangen.dir" value="${build.dir}/axisbeangen"/> + <property name="servicecontrol.jar" value="../../servicecontrol/build/jars/webservice-control.jar"/> + + <property name="beehive.common.lib.dir" value="${beehive.home}/lib/common"/> + + <property name="controls.jar" value="${beehive.home}/lib/controls/beehive-controls.jar"/> + <property name="schema.dir" value="schemas"/> + + + <path id="beehive.class.path"> + <fileset dir="${beehive.home}/lib/wsm" includes="*.jar"/> + <pathelement location="${beehive.home}/lib/controls/beehive-controls.jar"/> + <pathelement location="${beehive.common.lib.dir}/apache-xbean.jar"/> + <pathelement location="${beehive.common.lib.dir}/log4j-1.2.8.jar"/> + <pathelement location="${beehive.common.lib.dir}/velocity-dep-1.4.jar"/> + <pathelement location="${beehive.common.lib.dir}/jsr173_1.0_api.jar"/> + <pathelement location="${lib.dir}/junit-3.8.1.jar"/> + <pathelement location="${basedir}/lib/servlet-api-2.4-20040521.jar"/> + <pathelement location="${basedir}/lib/jsp-api-2.0-20040521.jar"/> + <pathelement location="${beehive.home}/lib/common/commons-discovery-0.2.jar"/> + <pathelement location="${beehive.home}/lib/common/commons-logging-1.0.4.jar"/> + </path> + + <path id="build.classpath"> + + <fileset dir="${beehive.home}/lib/wsm"> + <include name="*.jar"/> + </fileset> + <pathelement location="${beehive.home}/lib/controls/beehive-webservice-control.jar"/> + <pathelement location="../lib/commons-cli-1.0.jar"/> + <!-- + <fileset dir="../../servicecontrol/lib"> + <include name="**/*.jar"/> + </fileset> + --> + + <path refid="beehive.class.path"/> + <pathelement path="${servicecontrol.jar}"/> + </path> + + <taskdef name="apt" classname="org.apache.beehive.controls.runtime.generator.AptTask" + classpath="${controls.jar}" onerror="report"/> + <taskdef name="control-jar" + classname="org.apache.beehive.controls.runtime.packaging.ControlJarTask" + classpath="${controls.jar}" onerror="report"/> + + <!-- XMLBean build --> + <taskdef name="xmlbeanbuild" + classname="org.apache.xmlbeans.impl.tool.XMLBean"> + <classpath> + <path refid="build.classpath"/> + </classpath> + </taskdef> + + <target name="clean" description="Deletes all generated files"> + <delete dir="${build.dir}"/> + <delete file="velocity.log"/> + <delete dir="${xbeangen.dir}"/> + <delete dir="${test.logs}"/> + <delete dir="${extgen.dir}"/> + <delete dir="${jcxgen.dir}"/> + </target> + + <target name="dirs"> + <mkdir dir="${build.classes}"/> + <mkdir dir="${xbeangen.dir}"/> + <mkdir dir="${test.logs}"/> + <mkdir dir="${extgen.dir}"/> + <mkdir dir="${jcxgen.dir}"/> + </target> + + <target name="build" depends="build_jcx, build_junit" description="Builds source, and servlets"/> + + + <target name="gen_jcx" depends="gen_xmlbeans"> + <java classname="org.apache.beehive.controls.system.webservice.generator.ExtensionMaker"> + <classpath> + <path refid="build.classpath"/> + <pathelement location="${build.classes}"/> + </classpath> + <!-- <arg line="-gen_root ${jcxgen.dir} -wsdl ${schema.dir} -serviceURL ${service.url} "/> --> + <arg line="-gen_root ${jcxgen.dir} -wsdl ${schema.dir}"/> + </java> + + </target> + + <target name="build_jcx" depends="gen_jcx"> + <apt srcdir="${jcxgen.dir}" + destdir="${build.classes}" + gendir="${extgen.dir}" + classpathref="build.classpath" + compileByExtension="true" + srcExtensions="*.jcx,*.java" + debug="true"/> + </target> + + + <target name="checkxbean"> + <uptodate property="noxbeanrebuild" targetfile="${xbeangen.dir}"> + <srcfiles dir="${schema.dir}" includes="*.wsdl,*.xsd"/> + </uptodate> + </target> + + <target name="gen_xmlbeans" depends="checkxbean, dirs" unless="noxbeanrebuild"> + <xmlbeanbuild + schema="${schema.dir}" + srcgendir="${xbeangen.dir}" + classgendir="${build.classes}" + failonerror="true"> + <classpath> + <path refid="build.classpath"/> + </classpath> + </xmlbeanbuild> + </target> + + + <target name="build_junit" depends="build_jcx"> + + <apt srcdir="${common.source.dir}" destdir="${build.classes}" gendir="${build.beansrc}" + debug="on" + compileByExtension="true" + srcExtensions="*.jcx,*.java"> + <classpath> + <pathelement location="${build.classes}"/> + <path refid="build.classpath"/> + </classpath> + </apt> + <apt srcdir="${junit.source.dir}" destdir="${build.classes}" gendir="${build.beansrc}" + debug="on" + compileByExtension="true" + srcExtensions="*.jcx,*.java"> + <classpath> + <pathelement location="${build.classes}"/> + <path refid="build.classpath"/> + </classpath> + </apt> + + <copy todir="${build.classes}"> + <fileset dir="${junit.source.dir}"> + <include name="**/*.key"/> <!-- get google key --> + </fileset> + </copy> + + </target> + <target name="run.test" depends="build"> + <echo message="** junit logfiles written to ${test.logs} **"/> + <junit failureproperty="testfailed" printsummary="on" tempdir="${build.dir}" fork="yes"> + <classpath> + <pathelement location="${build.classes}"/> + <path refid="build.classpath"/> + </classpath> + <formatter type="plain"/> + <batchtest filtertrace="off" todir="${test.logs}"> + <fileset dir="${junit.source.dir}"> + <include name="**/*Test.java"/> + </fileset> + </batchtest> + </junit> + <fail if="testfailed" message="One or more tests in the Google test failed."/> + </target> +</project> Added: incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/junit/SimpleWebSericeTest.java URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/junit/SimpleWebSericeTest.java?rev=169518&view=auto ============================================================================== --- incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/junit/SimpleWebSericeTest.java (added) +++ incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/junit/SimpleWebSericeTest.java Tue May 10 13:32:29 2005 @@ -0,0 +1,54 @@ +/* + * + * 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 + */ + +import javax.xml.rpc.ServiceException; + +import junit.framework.TestCase; + +import org.apache.log4j.Logger; +import test.ControlTestCase; +import org.apache.beehive.addressbook.Address; +import org.apache.beehive.controls.api.bean.Control; +import org.apache.beehive.controls.api.context.ControlContainerContext; +import org.apache.beehive.controls.api.context.ControlThreadContext; + +public class SimpleWebSericeTest extends ControlTestCase { + static Logger logger = Logger.getLogger(SimpleWebSericeTest.class); + + @Control org.apache.beehive.addressbook.SimpleAddressBook client; + + public void setUp() throws Exception { + super.setUp(); // initialize my control instance.... + + } + public void testAddressBook() throws Exception { + Address address = Address.Factory.newInstance(); + address.setCity("Seattle"); + address.setZip(98119); + client.addEntry("daryoush", address); + Address res = client.getAddressFromName("daryoush"); + 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()); + + } + +} Added: incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/schemas/AddressBook.wsdl URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/schemas/AddressBook.wsdl?rev=169518&view=auto ============================================================================== --- incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/schemas/AddressBook.wsdl (added) +++ incubator/beehive/trunk/system-controls/samples/webservice/xmlbeans/schemas/AddressBook.wsdl Tue May 10 13:32:29 2005 @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsdl:definitions targetNamespace="http://beehive.apache.org/addressbook" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://beehive.apache.org/addressbook" xmlns:intf="http://beehive.apache.org/addressbook" 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://beehive.apache.org/addressbook" 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="addEntry"> + <complexType> + <sequence> + <element name="name" type="xsd:string"/> + <element name="address" type="impl:Address"/> + </sequence> + </complexType> + </element> + <element name="addEntryResponse"> + <complexType/> + </element> + </schema> + </wsdl:types> + + <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="addEntryResponse"> + + <wsdl:part element="impl:addEntryResponse" name="parameters"/> + + </wsdl:message> + + <wsdl:message name="getAddressFromNameRequest"> + + <wsdl:part element="impl:getAddressFromName" 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="addEntry"> + + <wsdl:input message="impl:addEntryRequest" name="addEntryRequest"/> + + <wsdl:output message="impl:addEntryResponse" name="addEntryResponse"/> + + </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="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:binding> + + <wsdl:service name="SimpleAddressBook"> + + <wsdl:port binding="impl:ServiceSoapBinding" name="Service"> + + <wsdlsoap:address location="http://localhost:8080/AddressBookWS/web/Service.jws"/> + + </wsdl:port> + + </wsdl:service> + +</wsdl:definitions> Modified: incubator/beehive/trunk/system-controls/src/ejb/build.xml URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/src/ejb/build.xml?rev=169518&r1=169517&r2=169518&view=diff ============================================================================== --- incubator/beehive/trunk/system-controls/src/ejb/build.xml (original) +++ incubator/beehive/trunk/system-controls/src/ejb/build.xml Tue May 10 13:32:29 2005 @@ -64,6 +64,7 @@ <attribute name="Web-Service-Control-Version" value="${beehive.version}"/> </manifest> </control-jar> + <control-jar destfile="${build.lib.dir}/${ejbcontrol.jar.name}" basedir="${classes.dir}/${module.name}-xbean" update="true"/> </target> </project>
