You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by bu...@apache.org on 2012/02/19 02:39:10 UTC
svn commit: r805305 - in /websites/staging/openejb/trunk: ./
content/examples-trunk/webservice-handlerchain/README.html
content/examples-trunk/webservice-handlerchain/src/test/java/org/superbiz/calculator/wsh/CalculatorTest.java
Author: buildbot
Date: Sun Feb 19 01:39:10 2012
New Revision: 805305
Log:
Staging update by buildbot for openejb
Modified:
websites/staging/openejb/trunk/ (props changed)
websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/README.html
websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/src/test/java/org/superbiz/calculator/wsh/CalculatorTest.java
Propchange: websites/staging/openejb/trunk/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Feb 19 01:39:10 2012
@@ -1 +1 @@
-1290918
+1290920
Modified: websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/README.html
==============================================================================
--- websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/README.html (original)
+++ websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/README.html Sun Feb 19 01:39:10 2012
@@ -354,6 +354,162 @@ Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
</code></pre>
+<h2>Inspecting the messages</h2>
+
+<p>The above would generate the following messages.</p>
+
+<h3>Calculator wsdl</h3>
+
+<pre><code><?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ name="CalculatorService" targetNamespace="http://superbiz.org/wsdl"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://superbiz.org/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <xsd:schema attributeFormDefault="unqualified" elementFormDefault="unqualified"
+ targetNamespace="http://superbiz.org/wsdl" xmlns:tns="http://superbiz.org/wsdl"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xsd:element name="multiply" type="tns:multiply"/>
+ <xsd:complexType name="multiply">
+ <xsd:sequence>
+ <xsd:element name="arg0" type="xsd:int"/>
+ <xsd:element name="arg1" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="multiplyResponse" type="tns:multiplyResponse"/>
+ <xsd:complexType name="multiplyResponse">
+ <xsd:sequence>
+ <xsd:element name="return" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="sum" type="tns:sum"/>
+ <xsd:complexType name="sum">
+ <xsd:sequence>
+ <xsd:element name="arg0" type="xsd:int"/>
+ <xsd:element name="arg1" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="sumResponse" type="tns:sumResponse"/>
+ <xsd:complexType name="sumResponse">
+ <xsd:sequence>
+ <xsd:element name="return" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="multiplyResponse">
+ <wsdl:part element="tns:multiplyResponse" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="sumResponse">
+ <wsdl:part element="tns:sumResponse" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="sum">
+ <wsdl:part element="tns:sum" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="multiply">
+ <wsdl:part element="tns:multiply" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="CalculatorWs">
+ <wsdl:operation name="multiply">
+ <wsdl:input message="tns:multiply" name="multiply">
+ </wsdl:input>
+ <wsdl:output message="tns:multiplyResponse" name="multiplyResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="sum">
+ <wsdl:input message="tns:sum" name="sum">
+ </wsdl:input>
+ <wsdl:output message="tns:sumResponse" name="sumResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CalculatorServiceSoapBinding" type="tns:CalculatorWs">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="multiply">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="multiply">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="multiplyResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="sum">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="sum">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="sumResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="CalculatorService">
+ <wsdl:port binding="tns:CalculatorServiceSoapBinding" name="CalculatorPort">
+ <soap:address location="http://127.0.0.1:4204/Calculator?wsdl"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
+</code></pre>
+
+<h3>SOAP sum and sumResponse</h3>
+
+<p>Request:</p>
+
+<pre><code><?xml version="1.0" encoding="UTF-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Body>
+ <ns1:sum xmlns:ns1="http://superbiz.org/wsdl">
+ <arg0>4</arg0>
+ <arg1>6</arg1>
+ </ns1:sum>
+ </soap:Body>
+</soap:Envelope>
+</code></pre>
+
+<p>Response:</p>
+
+<pre><code><?xml version="1.0" encoding="UTF-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Body>
+ <ns1:sumResponse xmlns:ns1="http://superbiz.org/wsdl">
+ <return>10001</return>
+ </ns1:sumResponse>
+ </soap:Body>
+</soap:Envelope>
+</code></pre>
+
+<h3>SOAP multiply and multiplyResponse</h3>
+
+<p>Request:</p>
+
+<pre><code><?xml version="1.0" encoding="UTF-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Body>
+ <ns1:multiply xmlns:ns1="http://superbiz.org/wsdl">
+ <arg0>3</arg0>
+ <arg1>4</arg1>
+ </ns1:multiply>
+ </soap:Body>
+</soap:Envelope>
+</code></pre>
+
+<p>Response:</p>
+
+<pre><code><?xml version="1.0" encoding="UTF-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Body>
+ <ns1:multiplyResponse xmlns:ns1="http://superbiz.org/wsdl">
+ <return>12001</return>
+ </ns1:multiplyResponse>
+ </soap:Body>
+</soap:Envelope>
+</code></pre>
+
<div class="page-header"> </div>
<h4>APIs Used</h4>
Modified: websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/src/test/java/org/superbiz/calculator/wsh/CalculatorTest.java
==============================================================================
--- websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/src/test/java/org/superbiz/calculator/wsh/CalculatorTest.java (original)
+++ websites/staging/openejb/trunk/content/examples-trunk/webservice-handlerchain/src/test/java/org/superbiz/calculator/wsh/CalculatorTest.java Sun Feb 19 01:39:10 2012
@@ -34,6 +34,8 @@ public class CalculatorTest {
public static void setUp() throws Exception {
Properties properties = new Properties();
properties.setProperty("openejb.embedded.remotable", "true");
+ //properties.setProperty("httpejbd.print", "true");
+ //properties.setProperty("httpejbd.indent.xml", "true");
EJBContainer.createEJBContainer(properties);
}