summaryrefslogtreecommitdiffstats
path: root/sandbox/rfeng/samples/calculatorws/src/main/resources/wsdl/calculator.wsdl
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/rfeng/samples/calculatorws/src/main/resources/wsdl/calculator.wsdl')
-rw-r--r--sandbox/rfeng/samples/calculatorws/src/main/resources/wsdl/calculator.wsdl155
1 files changed, 155 insertions, 0 deletions
diff --git a/sandbox/rfeng/samples/calculatorws/src/main/resources/wsdl/calculator.wsdl b/sandbox/rfeng/samples/calculatorws/src/main/resources/wsdl/calculator.wsdl
new file mode 100644
index 0000000000..9f7573160e
--- /dev/null
+++ b/sandbox/rfeng/samples/calculatorws/src/main/resources/wsdl/calculator.wsdl
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+-->
+<wsdl:definitions targetNamespace="http://calculator" xmlns:tns="http://calculator"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="calculator">
+
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://calculator" xmlns:tns="http://calculator"
+ xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <complexType name="Oprands">
+ <sequence>
+ <element name="oprand1" type="xsd:double" />
+ <element name="oprand2" type="xsd:double" />
+ </sequence>
+ </complexType>
+
+ <complexType name="Result">
+ <sequence>
+ <element name="result" type="xsd:double" />
+ </sequence>
+ </complexType>
+
+
+ <element name="add" type="tns:Oprands" />
+ <element name="addResponse" type="tns:Result" />
+
+ <element name="subtract" type="tns:Oprands" />
+ <element name="subtractResponse" type="tns:Result" />
+
+ <element name="multiply" type="tns:Oprands" />
+ <element name="multiplyResponse" type="tns:Result" />
+
+ <element name="divide" type="tns:Oprands" />
+ <element name="divideResponse" type="tns:Result" />
+
+
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="addRequest">
+ <wsdl:part element="tns:add" name="inputMsg" />
+ </wsdl:message>
+
+ <wsdl:message name="addResponse">
+ <wsdl:part element="tns:addResponse" name="outputMsg" />
+ </wsdl:message>
+
+ <wsdl:message name="subtractRequest">
+ <wsdl:part element="tns:subtract" name="inputMsg" />
+ </wsdl:message>
+
+ <wsdl:message name="subtractResponse">
+ <wsdl:part element="tns:subtractResponse" name="outputMsg" />
+ </wsdl:message>
+
+ <wsdl:message name="multiplyRequest">
+ <wsdl:part element="tns:multiply" name="inputMsg" />
+ </wsdl:message>
+
+ <wsdl:message name="multiplyResponse">
+ <wsdl:part element="tns:multiplyResponse" name="outputMsg" />
+ </wsdl:message>
+
+ <wsdl:message name="divideRequest">
+ <wsdl:part element="tns:divide" name="inputMsg" />
+ </wsdl:message>
+
+ <wsdl:message name="divideResponse">
+ <wsdl:part element="tns:divideResponse" name="outputMsg" />
+ </wsdl:message>
+
+ <wsdl:portType name="Calculator">
+ <wsdl:operation name="add">
+ <wsdl:input message="tns:addRequest" name="addRequest" />
+ <wsdl:output message="tns:addResponse" name="addResponse" />
+ </wsdl:operation>
+ <wsdl:operation name="subtract">
+ <wsdl:input message="tns:subtractRequest" name="subtractRequest" />
+ <wsdl:output message="tns:subtractResponse" name="subtractResponse" />
+ </wsdl:operation>
+ <wsdl:operation name="multiply">
+ <wsdl:input message="tns:multiplyRequest" name="multiplyRequest" />
+ <wsdl:output message="tns:multiplyResponse" name="multiplyResponse" />
+ </wsdl:operation>
+ <wsdl:operation name="divide">
+ <wsdl:input message="tns:divideRequest" name="divideRequest" />
+ <wsdl:output message="tns:divideResponse" name="divideResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="CalculatorSoapBinding" type="tns:Calculator">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="add">
+ <wsdlsoap:operation soapAction="" />
+ <wsdl:input name="addRequest">
+ <wsdlsoap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="addResponse">
+ <wsdlsoap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="subtract">
+ <wsdlsoap:operation soapAction="" />
+ <wsdl:input name="subtractRequest">
+ <wsdlsoap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="subtractResponse">
+ <wsdlsoap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="multiply">
+ <wsdlsoap:operation soapAction="" />
+ <wsdl:input name="multiplyRequest">
+ <wsdlsoap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="multiplyResponse">
+ <wsdlsoap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="divide">
+ <wsdlsoap:operation soapAction="" />
+ <wsdl:input name="divideRequest">
+ <wsdlsoap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="divideResponse">
+ <wsdlsoap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="CalculatorService">
+ <wsdl:port binding="tns:CalculatorSoapBinding" name="CalculatorSoapPort">
+ <wsdlsoap:address location="http://localhost:8080/calculator/services/CalculatorWebService" />
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>