You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2005/07/11 17:49:55 UTC
svn commit: r210150 [17/35] - in /webservices/axis/trunk/java: ./ etc/
modules/addressing/
modules/addressing/src/org/apache/axis2/handlers/addressing/
modules/addressing/test-resources/
modules/addressing/test/org/apache/axis2/handlers/addressing/ mod...
Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java Mon Jul 11 08:49:30 2005
@@ -28,42 +28,41 @@
import javax.xml.stream.XMLStreamWriter;
/**
- * This is a Client progam that accesses 'MyService' web service in Axis2 samples
+ * This is a Client progam that accesses 'MyService' web service in Axis2 samples
*/
public class RESTClient {
- private static String toEpr = "http://localhost:8080/axis2/services/MyService";
-
- public static void main(String[] args) throws AxisFault {
-
- Call call = new Call();
- call.setTo(new EndpointReference(AddressingConstants.WSA_TO,toEpr));
- call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
- call.setDoREST(true);
-
- OMElement result = call.invokeBlocking("echo", getPayload());
-
- try {
- XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
- result.serializeWithCache(new OMOutput(writer));
- writer.flush();
- } catch (XMLStreamException e) {
- e.printStackTrace();
- } catch (FactoryConfigurationError e) {
- e.printStackTrace();
- }
- }
-
-
- private static OMElement getPayload() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
- OMNamespace omNs = fac.createOMNamespace(
- "http://example1.org/example1", "example1");
- OMElement method = fac.createOMElement("echo", omNs);
- OMElement value = fac.createOMElement("Text", omNs);
- value.addChild(fac.createText(value, "Axis2 Echo String "));
- method.addChild(value);
+ private static String toEpr = "http://localhost:8080/axis2/services/MyService";
- return method;
- }
+ public static void main(String[] args) throws AxisFault {
+
+ Call call = new Call();
+ call.setTo(new EndpointReference(AddressingConstants.WSA_TO, toEpr));
+ call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+ call.setDoREST(true);
+
+ OMElement result = call.invokeBlocking("echo", getPayload());
+
+ try {
+ XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
+ result.serializeWithCache(new OMOutput(writer));
+ writer.flush();
+ } catch (XMLStreamException e) {
+ e.printStackTrace();
+ } catch (FactoryConfigurationError e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ private static OMElement getPayload() {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+ OMNamespace omNs = fac.createOMNamespace("http://example1.org/example1", "example1");
+ OMElement method = fac.createOMElement("echo", omNs);
+ OMElement value = fac.createOMElement("Text", omNs);
+ value.addChild(fac.createText(value, "Axis2 Echo String "));
+ method.addChild(value);
+
+ return method;
+ }
}
Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java Mon Jul 11 08:49:30 2005
@@ -22,49 +22,47 @@
import org.apache.axis2.engine.AxisFault;
import org.apache.axis2.om.*;
-import javax.xml.namespace.QName;
import javax.xml.stream.FactoryConfigurationError;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
/**
- * This is a Client progam that accesses 'MyService' web service in Axis2 samples
+ * This is a Client progam that accesses 'MyService' web service in Axis2 samples
*/
public class TCPClient {
- private static String toEpr = "tcp://localhost:8080/axis2/services/MyService";
-
- public static void main(String[] args) throws AxisFault {
-
- Call call = new Call();
- call.setTo(new EndpointReference(AddressingConstants.WSA_TO,toEpr));
- call.setTransportInfo(Constants.TRANSPORT_TCP,Constants.TRANSPORT_TCP,false);
- //call.engageModule(new QName(Constants.MODULE_ADDRESSING));
-
- OMElement result = call.invokeBlocking("echo", getPayload());
-
- try {
- XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
- result.serializeWithCache(new OMOutput(writer));
- writer.flush();
- } catch (XMLStreamException e) {
- e.printStackTrace();
- } catch (FactoryConfigurationError e) {
- e.printStackTrace();
- }
- }
-
-
- private static OMElement getPayload() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
- OMNamespace omNs = fac.createOMNamespace(
- "tcp://localhost:8080/axis2/services/MyService", "example1");
- OMElement method = fac.createOMElement("echo", omNs);
- OMElement value = fac.createOMElement("Text", omNs);
- value.addChild(fac.createText(value, "Axis2 Echo String "));
- method.addChild(value);
+ private static String toEpr = "tcp://localhost:8080/axis2/services/MyService";
- return method;
- }
+ public static void main(String[] args) throws AxisFault {
+
+ Call call = new Call();
+ call.setTo(new EndpointReference(AddressingConstants.WSA_TO, toEpr));
+ call.setTransportInfo(Constants.TRANSPORT_TCP, Constants.TRANSPORT_TCP, false);
+ //call.engageModule(new QName(Constants.MODULE_ADDRESSING));
+
+ OMElement result = call.invokeBlocking("echo", getPayload());
+
+ try {
+ XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
+ result.serializeWithCache(new OMOutput(writer));
+ writer.flush();
+ } catch (XMLStreamException e) {
+ e.printStackTrace();
+ } catch (FactoryConfigurationError e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ private static OMElement getPayload() {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+ OMNamespace omNs = fac.createOMNamespace("tcp://localhost:8080/axis2/services/MyService", "example1");
+ OMElement method = fac.createOMElement("echo", omNs);
+ OMElement value = fac.createOMElement("Text", omNs);
+ value.addChild(fac.createText(value, "Axis2 Echo String "));
+ method.addChild(value);
+
+ return method;
+ }
}
Modified: webservices/axis/trunk/java/modules/samples/src/userguide/example1/META-INF/service.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/example1/META-INF/service.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/example1/META-INF/service.xml (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/example1/META-INF/service.xml Mon Jul 11 08:49:30 2005
@@ -6,7 +6,7 @@
<operation name="echo">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
- <operation name="ping">
+ <operation name="ping">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
</operation>
- </service>
\ No newline at end of file
+</service>
\ No newline at end of file
Modified: webservices/axis/trunk/java/modules/samples/src/userguide/example1/MyService.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/example1/MyService.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/example1/MyService.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/example1/MyService.java Mon Jul 11 08:49:30 2005
@@ -23,6 +23,6 @@
}
public void ping(OMElement element) throws XMLStreamException {
- //Do some processing
+ //Do some processing
}
}
Modified: webservices/axis/trunk/java/modules/samples/src/userguide/example2/MyService.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/example2/MyService.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/example2/MyService.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/example2/MyService.java Mon Jul 11 08:49:30 2005
@@ -23,6 +23,6 @@
}
public void ping(OMElement element) throws XMLStreamException {
- //Do some processing
+ //Do some processing
}
}
Modified: webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java Mon Jul 11 08:49:30 2005
@@ -10,7 +10,7 @@
* Date: Apr 19, 2005
* Time: 3:16:14 PM
*/
-public class LoggingModule implements Module{
+public class LoggingModule implements Module {
// initialize the module
Modified: webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/META-INF/module.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/META-INF/module.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/META-INF/module.xml (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/loggingmodule/META-INF/module.xml Mon Jul 11 08:49:30 2005
@@ -1,9 +1,9 @@
<module name="logging" class="userguide.loggingmodule.LoggingModule">
<inflow>
<handler name="InFlowLogHandler" class="userguide.loggingmodule.LogHandler">
- <order phase="loggingPhase" />
+ <order phase="loggingPhase"/>
</handler>
- </inflow>
+ </inflow>
<outflow>
<handler name="OutFlowLogHandler" class="userguide.loggingmodule.LogHandler">
@@ -13,13 +13,13 @@
<Outfaultflow>
<handler name="FaultOutFlowLogHandler" class="userguide.loggingmodule.LogHandler">
- <order phase="loggingPhase"/>
+ <order phase="loggingPhase"/>
</handler>
</Outfaultflow>
<INfaultflow>
<handler name="FaultInFlowLogHandler" class="userguide.loggingmodule.LogHandler">
- <order phase="loggingPhase"/>
+ <order phase="loggingPhase"/>
</handler>
</INfaultflow>
</module>
Modified: webservices/axis/trunk/java/modules/samples/test-resources/service.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test-resources/service.wsdl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test-resources/service.wsdl (original)
+++ webservices/axis/trunk/java/modules/samples/test-resources/service.wsdl Mon Jul 11 08:49:30 2005
@@ -1,49 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://services.axis.apache.org" xmlns:impl="http://services.axis.apache.org-impl" xmlns:intf="http://services.axis.apache.org" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
-<!--WSDL created by Apache Axis version: 1.2.1
-Built on Jun 14, 2005 (09:15:57 EDT)-->
+ <!--WSDL created by Apache Axis version: 1.2.1
+ Built on Jun 14, 2005 (09:15:57 EDT)-->
- <wsdl:message name="runRequest">
+ <wsdl:message name="runRequest">
- </wsdl:message>
+ </wsdl:message>
- <wsdl:message name="runResponse">
+ <wsdl:message name="runResponse">
- </wsdl:message>
+ </wsdl:message>
- <wsdl:portType name="OutService">
+ <wsdl:portType name="OutService">
- <wsdl:operation name="run">
+ <wsdl:operation name="run">
- <wsdl:input name="runRequest" message="intf:runRequest"/>
+ <wsdl:input name="runRequest" message="intf:runRequest"/>
- <wsdl:output name="runResponse" message="intf:runResponse"/>
+ <wsdl:output name="runResponse" message="intf:runResponse"/>
- </wsdl:operation>
+ </wsdl:operation>
- </wsdl:portType>
+ </wsdl:portType>
- <wsdl:binding name="localhost:8080SoapBinding" type="intf:OutService">
+ <wsdl:binding name="localhost:8080SoapBinding" type="intf:OutService">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="run">
+ <wsdl:operation name="run">
- <wsdlsoap:operation soapAction=""/>
+ <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="runRequest">
+ <wsdl:input name="runRequest">
- <wsdlsoap:body use="literal"/>
+ <wsdlsoap:body use="literal"/>
- </wsdl:input>
+ </wsdl:input>
- <wsdl:output name="runResponse">
+ <wsdl:output name="runResponse">
- <wsdlsoap:body use="literal"/>
+ <wsdlsoap:body use="literal"/>
- </wsdl:output>
+ </wsdl:output>
- </wsdl:operation>
+ </wsdl:operation>
- </wsdl:binding>
+ </wsdl:binding>
</wsdl:definitions>
Modified: webservices/axis/trunk/java/modules/samples/test-resources/soap/emtyBodymessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test-resources/soap/emtyBodymessage.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test-resources/soap/emtyBodymessage.xml (original)
+++ webservices/axis/trunk/java/modules/samples/test-resources/soap/emtyBodymessage.xml Mon Jul 11 08:49:30 2005
@@ -1,7 +1,7 @@
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<soapenv:Header>
<wsa:MessageID soapenv:mustUnderstand="0">
uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
Modified: webservices/axis/trunk/java/modules/samples/test-resources/soap/reallyReallyBigMessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test-resources/soap/reallyReallyBigMessage.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test-resources/soap/reallyReallyBigMessage.xml (original)
+++ webservices/axis/trunk/java/modules/samples/test-resources/soap/reallyReallyBigMessage.xml Mon Jul 11 08:49:30 2005
@@ -1,29 +1,29 @@
<?xml version='1.0' ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<env:Header>
<wsdl:definitions targetNamespace="http://echo.services"
- xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:impl="http://echo.services-impl"
- xmlns:intf="http://echo.services"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:tns1="http://types.echo.services"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:impl="http://echo.services-impl"
+ xmlns:intf="http://echo.services"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:tns1="http://types.echo.services"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://types.echo.services"
- xmlns="http://www.w3.org/2001/XMLSchema">
+ xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="MyComplexType">
<sequence>
<element name="simpleItem" nillable="true"
- type="xsd:string"/>
+ type="xsd:string"/>
</sequence>
</complexType>
<element name="MyElement" nillable="true"
- type="tns1:MyComplexType"/>
+ type="tns1:MyComplexType"/>
</schema>
</wsdl:types>
<wsdl:message name="echoRequest">
@@ -36,29 +36,29 @@
<wsdl:operation name="echo" parameterOrder="MyElement">
<wsdl:input message="intf:echoRequest" name="echoRequest"/>
<wsdl:output message="intf:echoResponse"
- name="echoResponse"/>
+ name="echoResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ComplexEchoServiceSoapBinding"
- type="intf:Echo1">
+ type="intf:Echo1">
<wsdlsoap:binding style="document"
- transport="http://schemas.xmlsoap.org/soap/http"/>
+ transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="echo">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="echoRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- namespace="http://types.echo.services"
- use="literal"/>
+ namespace="http://types.echo.services"
+ use="literal"/>
</wsdl:input>
<wsdl:output name="echoResponse">
<wsdlsoap:body namespace="http://types.echo.services"
- use="literal"/>
+ use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ComplexEchoService">
<wsdl:port binding="intf:ComplexEchoServiceSoapBinding"
- name="ComplexEchoService">
+ name="ComplexEchoService">
<wsdlsoap:address
location="http://localhost:8080/axis/services/ComplexEchoService"/>
</wsdl:port>
@@ -111,7 +111,7 @@
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
- wsdl:arrayType="xsd:string[]"/>
+ wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
@@ -120,7 +120,7 @@
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
- wsdl:arrayType="xsd:base64Binary[]"/>
+ wsdl:arrayType="xsd:base64Binary[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
@@ -181,24 +181,24 @@
<xsd:element name="stock_quote">
<xsd:complexType>
<xsd:attribute name="symbol"
- type="xsd:string"/>
+ type="xsd:string"/>
<xsd:sequence>
<xsd:element name="time"
- type="typens:time"/>
+ type="typens:time"/>
<xsd:element name="change"
- type="typens:simpleFwd"/>
+ type="typens:simpleFwd"/>
<xsd:element name="pctchange"
- type="xsd:string"/>
+ type="xsd:string"/>
<xsd:element name="bid"
- type="xsd:string"/>
+ type="xsd:string"/>
<xsd:element name="ask"
- type="xsd:string"/>
+ type="xsd:string"/>
<xsd:element name="choice"
- type="typens:complexChoice"/>
+ type="typens:complexChoice"/>
</xsd:sequence>
<xsd:attribute name="last"
- type="xsd:string"/>
+ type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="outside" type="xsd:int"/>
@@ -229,7 +229,7 @@
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
- wsdl:arrayType="typens:arrayM2[]"/>
+ wsdl:arrayType="typens:arrayM2[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
@@ -237,7 +237,7 @@
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
- wsdl:arrayType="typens:arrayM3[]"/>
+ wsdl:arrayType="typens:arrayM3[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
@@ -245,7 +245,7 @@
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
- wsdl:arrayType="xsd:int[]"/>
+ wsdl:arrayType="xsd:int[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
@@ -254,17 +254,17 @@
<xsd:complexType name="Animal">
<xsd:all>
<xsd:element name="Name" nillable="true"
- type="xsd:string"/>
+ type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:element name="Animal" nillable="true"
- type="typens:Animal"/>
+ type="typens:Animal"/>
<xsd:complexType name="Cat">
<xsd:complexContent>
<xsd:extension base="typens:Animal">
<xsd:all>
<xsd:element name="Purr" nillable="true"
- type="xsd:string"/>
+ type="xsd:string"/>
</xsd:all>
</xsd:extension>
</xsd:complexContent>
@@ -276,7 +276,7 @@
<xsd:extension base="typens:Cat">
<xsd:all>
<xsd:element name="Color"
- type="xsd:string"/>
+ type="xsd:string"/>
<xsd:element name="Toy"/>
</xsd:all>
</xsd:extension>
@@ -382,20 +382,20 @@
<xsd:element name="StringParameter"
- type="typens:StringParameter"/>
+ type="typens:StringParameter"/>
<xsd:complexType name="StringParameter">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="numBytes"
- type="soapenc:int"/>
+ type="soapenc:int"/>
<xsd:attribute name="storageEncoding"
- type="xsd:string"/>
+ type="xsd:string"/>
<xsd:attribute name="direction"
- type="typens:flowDirectionType"/>
+ type="typens:flowDirectionType"/>
<xsd:attribute name="passMode"
- type="typens:passModeType"/>
+ type="typens:passModeType"/>
<xsd:attribute name="description"
- type="xsd:string"/>
+ type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
@@ -410,14 +410,14 @@
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
- wsdl:arrayType="xsd:QName[]"/>
+ wsdl:arrayType="xsd:QName[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="three" type="typens:enum"
- maxOccurs="unbounded"/>
+ maxOccurs="unbounded"/>
<xsd:element name="a" type="xsd:short"/>
@@ -677,13 +677,13 @@
<message name="inputNonNegativeInteger">
<part name="inNonNegativeInteger"
- type="xsd:nonNegativeInteger"/>
+ type="xsd:nonNegativeInteger"/>
<part name="NonNegativeInteger" type="xsd:nonNegativeInteger"/>
</message>
<message name="outputNonNegativeInteger">
<part name="outNonNegativeInteger"
- type="xsd:nonNegativeInteger"/>
+ type="xsd:nonNegativeInteger"/>
<part name="NonNegativeInteger" type="xsd:nonNegativeInteger"/>
</message>
@@ -699,13 +699,13 @@
<message name="inputNonPositiveInteger">
<part name="inNonPositiveInteger"
- type="xsd:nonPositiveInteger"/>
+ type="xsd:nonPositiveInteger"/>
<part name="NonPositiveInteger" type="xsd:nonPositiveInteger"/>
</message>
<message name="outputNonPositiveInteger">
<part name="outNonPositiveInteger"
- type="xsd:nonPositiveInteger"/>
+ type="xsd:nonPositiveInteger"/>
<part name="NonPositiveInteger" type="xsd:nonPositiveInteger"/>
</message>
@@ -1026,7 +1026,7 @@
<output message="tns:complexSequence"/>
</operation>
<operation name="complexSequenceOut"
- parameterOrder="complexSequence">
+ parameterOrder="complexSequence">
<input message="tns:empty"/>
<output message="tns:complexSequence"/>
</operation>
@@ -1043,7 +1043,7 @@
<output message="tns:complexWComplex"/>
</operation>
<operation name="complexWComplexOut"
- parameterOrder="complexWComplex">
+ parameterOrder="complexWComplex">
<input message="tns:empty"/>
<output message="tns:complexWComplex"/>
</operation>
@@ -1052,19 +1052,19 @@
<output message="tns:complexWComplex"/>
</operation>
<operation name="emptyComplexTypeIn"
- parameterOrder="emptyComplexType">
+ parameterOrder="emptyComplexType">
<input message="tns:emptyComplexType"/>
<output message="tns:empty"/>
<fault name="emptyFault" message="tns:emptyFault"/>
</operation>
<operation name="emptyComplexTypeInout"
- parameterOrder="emptyComplexType">
+ parameterOrder="emptyComplexType">
<input message="tns:emptyComplexType"/>
<output message="tns:emptyComplexType"/>
<fault name="emptyFault" message="tns:emptyFault"/>
</operation>
<operation name="emptyComplexTypeOut"
- parameterOrder="emptyComplexType">
+ parameterOrder="emptyComplexType">
<input message="tns:empty"/>
<output message="tns:emptyComplexType"/>
<fault name="emptyFault" message="tns:emptyFault"/>
Modified: webservices/axis/trunk/java/modules/samples/test-resources/soap/security2-soap.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test-resources/soap/security2-soap.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test-resources/soap/security2-soap.xml (original)
+++ webservices/axis/trunk/java/modules/samples/test-resources/soap/security2-soap.xml Mon Jul 11 08:49:30 2005
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
- xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"
- xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+ xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"
+ xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<m:path xmlns:m="http://schemas.xmlsoap.org/rp">
<m:action>http://fabrikam123.com/getQuote</m:action>
Modified: webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage.xml (original)
+++ webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage.xml Mon Jul 11 08:49:30 2005
@@ -1,7 +1,7 @@
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<soapenv:Header>
<wsa:MessageID soapenv:mustUnderstand="0">
uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
Modified: webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage1.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage1.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage1.xml (original)
+++ webservices/axis/trunk/java/modules/samples/test-resources/soap/soapmessage1.xml Mon Jul 11 08:49:30 2005
@@ -1,7 +1,7 @@
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<soapenv:Header>
<wsa:MessageID soapenv:mustUnderstand="0">
uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
@@ -15,13 +15,13 @@
</soapenv:Header>
<soapenv:Body>
<ns1:getBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:ns1="http://localhost:8081/axis/services/BankPort">
+ xmlns:ns1="http://localhost:8081/axis/services/BankPort">
<ns1:accountNo href="#id0"/>
</ns1:getBalance>
<multiRef xmlns="tempUri" id="id0" soapenc:root="0"
- soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- xsi:type="xsd:int"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1001
+ soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ xsi:type="xsd:int"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1001
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
Modified: webservices/axis/trunk/java/modules/samples/test-resources/soap/whitespacedMessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test-resources/soap/whitespacedMessage.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test-resources/soap/whitespacedMessage.xml (original)
+++ webservices/axis/trunk/java/modules/samples/test-resources/soap/whitespacedMessage.xml Mon Jul 11 08:49:30 2005
@@ -1,6 +1,6 @@
<?xml version='1.0' ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<env:Header>
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java Mon Jul 11 08:49:30 2005
@@ -77,15 +77,14 @@
Call call = new Call();
EndpointReference targetEPR =
- new EndpointReference(
- AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService1");
+ new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService1");
call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
call.setTo(targetEPR);
SOAPEnvelope resEnv =
- (SOAPEnvelope) call.invokeBlocking(operationName.getLocalPart(), reqEnv);
+ (SOAPEnvelope) call.invokeBlocking(operationName.getLocalPart(), reqEnv);
SOAPBody sb = resEnv.getBody();
if (sb.hasFault()) {
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java Mon Jul 11 08:49:30 2005
@@ -41,9 +41,9 @@
public class CommonsHTTPEchoRawXMLTest extends TestCase {
private EndpointReference targetEPR =
new EndpointReference(AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -52,7 +52,7 @@
private AxisConfiguration engineRegistry;
private MessageContext mc;
//private Thread thisThread;
- // private SimpleHTTPServer sas;
+ // private SimpleHTTPServer sas;
private ServiceContext serviceContext;
private ServiceDescription service;
@@ -70,8 +70,8 @@
UtilServer.start();
service =
Utils.createSimpleService(serviceName,
- Echo.class.getName(),
- operationName);
+ Echo.class.getName(),
+ operationName);
UtilServer.deployService(service);
serviceContext =
UtilServer.getConfigurationContext().createServiceContext(service.getName());
@@ -86,7 +86,7 @@
public void testEchoXMLASync() throws Exception {
OMElement payload = TestingUtils.createDummyOMElement();
- org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(Constants.TESTING_PATH+"commons-http-enabledRepository");
+ org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(Constants.TESTING_PATH + "commons-http-enabledRepository");
call.setTo(targetEPR);
call.setTransportInfo(Constants.TRANSPORT_COMMONS_HTTP, Constants.TRANSPORT_HTTP, false);
@@ -94,7 +94,7 @@
Callback callback = new Callback() {
public void onComplete(AsyncResult result) {
TestingUtils.campareWithCreatedOMElement(result.getResponseEnvelope().getBody().getFirstElement());
- finish = true;
+ finish = true;
}
public void reportError(Exception e) {
@@ -108,7 +108,7 @@
while (!finish) {
Thread.sleep(1000);
index++;
- if(index > 10 ){
+ if (index > 10) {
throw new AxisFault("Server is shutdown as the Async response take too longs time");
}
}
@@ -123,7 +123,7 @@
OMElement payload = TestingUtils.createDummyOMElement();
- org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(Constants.TESTING_PATH+"commons-http-enabledRepository");
+ org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(Constants.TESTING_PATH + "commons-http-enabledRepository");
call.setTo(targetEPR);
call.setTransportInfo(Constants.TRANSPORT_COMMONS_HTTP, Constants.TRANSPORT_HTTP, false);
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/Echo.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/Echo.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/Echo.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/Echo.java Mon Jul 11 08:49:30 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
package org.apache.axis2.engine;
import org.apache.axis2.om.OMElement;
@@ -44,11 +44,10 @@
public int echoInt(int in) {
return in;
}
-
- public OMElement echoMTOMtoBase64(OMElement omEle)
- {
- OMText omText = (OMText)omEle.getFirstChild();
- omText.doOptimize(false);
- return omEle;
+
+ public OMElement echoMTOMtoBase64(OMElement omEle) {
+ OMText omText = (OMText) omEle.getFirstChild();
+ omText.doOptimize(false);
+ return omEle;
}
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java Mon Jul 11 08:49:30 2005
@@ -39,9 +39,9 @@
public class EchoRawXMLChunckedTest extends TestCase {
private EndpointReference targetEPR =
new EndpointReference(AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -50,7 +50,7 @@
private AxisConfiguration engineRegistry;
private MessageContext mc;
//private Thread thisThread;
- // private SimpleHTTPServer sas;
+ // private SimpleHTTPServer sas;
private ServiceContext serviceContext;
private ServiceDescription service;
@@ -68,12 +68,12 @@
UtilServer.start(Constants.TESTING_PATH + "chuncked-enabledRepository");
service =
Utils.createSimpleService(serviceName,
- Echo.class.getName(),
- operationName);
+ Echo.class.getName(),
+ operationName);
UtilServer.deployService(service);
serviceContext =
UtilServer.getConfigurationContext().createServiceContext(service.getName());
-
+
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java Mon Jul 11 08:49:30 2005
@@ -39,9 +39,9 @@
public class EchoRawXMLLoadTest extends TestCase {
private EndpointReference targetEPR =
new EndpointReference(AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -50,7 +50,7 @@
private AxisConfiguration engineRegistry;
private MessageContext mc;
//private Thread thisThread;
- // private SimpleHTTPServer sas;
+ // private SimpleHTTPServer sas;
private ServiceContext serviceContext;
private ServiceDescription service;
@@ -68,8 +68,8 @@
UtilServer.start();
service =
Utils.createSimpleService(serviceName,
- Echo.class.getName(),
- operationName);
+ Echo.class.getName(),
+ operationName);
UtilServer.deployService(service);
serviceContext =
UtilServer.getConfigurationContext().createServiceContext(service.getName());
@@ -134,10 +134,10 @@
OMElement result =
(OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
-
+
OMElement result1 =
- (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
-
+ (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
+
TestingUtils.campareWithCreatedOMElement(result);
call.close();
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsSyncTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsSyncTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsSyncTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsSyncTest.java Mon Jul 11 08:49:30 2005
@@ -38,11 +38,10 @@
public class EchoRawXMLOnTwoChannelsSyncTest extends TestCase {
private EndpointReference targetEPR =
- new EndpointReference(
- AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -66,14 +65,13 @@
protected void setUp() throws Exception {
UtilServer.start();
- UtilServer.getConfigurationContext().getAxisConfiguration().engageModule(
- new QName("addressing"));
+ UtilServer.getConfigurationContext().getAxisConfiguration().engageModule(new QName("addressing"));
ServiceDescription service =
- Utils.createSimpleService(serviceName, Echo.class.getName(), operationName);
+ Utils.createSimpleService(serviceName, Echo.class.getName(), operationName);
UtilServer.deployService(service);
serviceContext =
- UtilServer.getConfigurationContext().createServiceContext(service.getName());
+ UtilServer.getConfigurationContext().createServiceContext(service.getName());
}
@@ -82,14 +80,12 @@
UtilServer.stop();
}
-
public void testEchoXMLCompleteSync() throws Exception {
ServiceDescription service =
- Utils.createSimpleService(
- serviceName,
- Echo.class.getName(),
- operationName);
+ Utils.createSimpleService(serviceName,
+ Echo.class.getName(),
+ operationName);
ServiceContext serviceContext = UtilServer.createAdressedEnabledClientSide(service);
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsTest.java Mon Jul 11 08:49:30 2005
@@ -40,11 +40,10 @@
public class EchoRawXMLOnTwoChannelsTest extends TestCase {
private EndpointReference targetEPR =
- new EndpointReference(
- AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -68,17 +67,15 @@
protected void setUp() throws Exception {
UtilServer.start();
- UtilServer.getConfigurationContext().getAxisConfiguration().engageModule(
- new QName("addressing"));
+ UtilServer.getConfigurationContext().getAxisConfiguration().engageModule(new QName("addressing"));
ServiceDescription service =
- Utils.createSimpleService(
- serviceName,
- Echo.class.getName(),
- operationName);
+ Utils.createSimpleService(serviceName,
+ Echo.class.getName(),
+ operationName);
UtilServer.deployService(service);
serviceContext =
- UtilServer.getConfigurationContext().createServiceContext(service.getName());
+ UtilServer.getConfigurationContext().createServiceContext(service.getName());
}
@@ -87,14 +84,12 @@
UtilServer.stop();
}
-
public void testEchoXMLCompleteASync() throws Exception {
ServiceDescription service =
- Utils.createSimpleService(
- serviceName,
- Echo.class.getName(),
- operationName);
+ Utils.createSimpleService(serviceName,
+ Echo.class.getName(),
+ operationName);
ServiceContext serviceContext = UtilServer.createAdressedEnabledClientSide(service);
@@ -140,4 +135,4 @@
}
}
- }
+}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLTest.java Mon Jul 11 08:49:30 2005
@@ -41,9 +41,9 @@
public class EchoRawXMLTest extends TestCase {
private EndpointReference targetEPR =
new EndpointReference(AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -52,7 +52,7 @@
private AxisConfiguration engineRegistry;
private MessageContext mc;
//private Thread thisThread;
- // private SimpleHTTPServer sas;
+ // private SimpleHTTPServer sas;
private ServiceContext serviceContext;
private ServiceDescription service;
@@ -70,8 +70,8 @@
UtilServer.start();
service =
Utils.createSimpleService(serviceName,
- Echo.class.getName(),
- operationName);
+ Echo.class.getName(),
+ operationName);
UtilServer.deployService(service);
serviceContext =
UtilServer.getConfigurationContext().createServiceContext(service.getName());
@@ -85,7 +85,7 @@
public void testEchoXMLASync() throws Exception {
- OMElement payload = TestingUtils.createDummyOMElement();
+ OMElement payload = TestingUtils.createDummyOMElement();
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call();
@@ -94,7 +94,7 @@
Callback callback = new Callback() {
public void onComplete(AsyncResult result) {
- TestingUtils.campareWithCreatedOMElement(result.getResponseEnvelope().getBody().getFirstElement());
+ TestingUtils.campareWithCreatedOMElement(result.getResponseEnvelope().getBody().getFirstElement());
finish = true;
}
@@ -109,7 +109,7 @@
while (!finish) {
Thread.sleep(1000);
index++;
- if(index > 10 ){
+ if (index > 10) {
throw new AxisFault("Server is shutdown as the Async response take too longs time");
}
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/HandlerFailureTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/HandlerFailureTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/HandlerFailureTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/HandlerFailureTest.java Mon Jul 11 08:49:30 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
package org.apache.axis2.engine;
//todo
@@ -47,10 +47,10 @@
private Log log = LogFactory.getLog(getClass());
private static final String SERVICE_NAME = "EchoXMLService";
private static final String OPERATION_NAME = "echoOMElement";
-
-
+
+
private static final String ADDRESS = "http://127.0.0.1:" + (UtilServer.TESTING_PORT) +
- "/axis/services/" + SERVICE_NAME + "/" +OPERATION_NAME;
+ "/axis/services/" + SERVICE_NAME + "/" + OPERATION_NAME;
// private static final String ADDRESS = "http://127.0.0.1:8080/axis/services/" + SERVICE_NAME;
private EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO, ADDRESS);
private QName serviceName = new QName("", SERVICE_NAME);
@@ -77,16 +77,16 @@
public void testFailureAtServerRequestFlow() throws Exception {
Flow flow = new FlowImpl();
- Utils.addHandler(flow, new SpeakingHandler(),PhaseMetadata.PHASE_POLICY_DETERMINATION);
- Utils.addHandler(flow, new SpeakingHandler(),PhaseMetadata.PHASE_POLICY_DETERMINATION);
- Utils.addHandler(flow, new SpeakingHandler(),PhaseMetadata.PHASE_POLICY_DETERMINATION);
- Utils.addHandler(flow, new SpeakingHandler(),PhaseMetadata.PHASE_POLICY_DETERMINATION);
- Utils.addHandler(flow, culprit,PhaseMetadata.PHASE_POLICY_DETERMINATION);
- Utils.addHandler(flow, new SpeakingHandler(),PhaseMetadata.PHASE_POLICY_DETERMINATION);
-
- ServiceDescription service = Utils.createSimpleService(serviceName,Echo.class.getName(),operationName);
+ Utils.addHandler(flow, new SpeakingHandler(), PhaseMetadata.PHASE_POLICY_DETERMINATION);
+ Utils.addHandler(flow, new SpeakingHandler(), PhaseMetadata.PHASE_POLICY_DETERMINATION);
+ Utils.addHandler(flow, new SpeakingHandler(), PhaseMetadata.PHASE_POLICY_DETERMINATION);
+ Utils.addHandler(flow, new SpeakingHandler(), PhaseMetadata.PHASE_POLICY_DETERMINATION);
+ Utils.addHandler(flow, culprit, PhaseMetadata.PHASE_POLICY_DETERMINATION);
+ Utils.addHandler(flow, new SpeakingHandler(), PhaseMetadata.PHASE_POLICY_DETERMINATION);
+
+ ServiceDescription service = Utils.createSimpleService(serviceName, Echo.class.getName(), operationName);
service.setInFlow(flow);
-
+
UtilServer.start();
UtilServer.deployService(service);
try {
@@ -141,7 +141,7 @@
private void callTheService() throws Exception {
try {
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
-
+
OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
OMElement method = fac.createOMElement("echoOMElement", omNs);
OMElement value = fac.createOMElement("myValue", omNs);
@@ -151,12 +151,12 @@
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call();
//EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO, "http://127.0.0.1:" + Utils.TESTING_PORT + "/axis/services/EchoXMLService");
- call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
+ call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
call.setTo(targetEPR);
- OMElement result = call.invokeBlocking(operationName.getLocalPart(),method);
+ OMElement result = call.invokeBlocking(operationName.getLocalPart(), method);
OMOutput omOutput = new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
result.serialize(omOutput);
- omOutput.flush();
+ omOutput.flush();
fail("the test must fail due to bad service Name");
} catch (AxisFault e) {
e.printStackTrace();
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MessageWithServerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MessageWithServerTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MessageWithServerTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MessageWithServerTest.java Mon Jul 11 08:49:30 2005
@@ -40,7 +40,7 @@
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("", "EchoService");
private QName operationName =
- new QName("http://ws.apache.org/axis2", "echoVoid");
+ new QName("http://ws.apache.org/axis2", "echoVoid");
private QName transportName = new QName("", "NullTransport");
private AxisConfiguration engineRegistry;
@@ -56,9 +56,9 @@
protected void setUp() throws Exception {
UtilServer.start();
- ServiceDescription service = Utils.createSimpleService(serviceName,Echo.class.getName(),operationName);
-
-
+ ServiceDescription service = Utils.createSimpleService(serviceName, Echo.class.getName(), operationName);
+
+
service.setInFlow(new MockFlow("service inflow", 4));
service.setOutFlow(new MockFlow("service outflow", 5));
//service.setFaultInFlow(new MockFlow("service faultflow", 1));
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MockFlow.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MockFlow.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MockFlow.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/MockFlow.java Mon Jul 11 08:49:30 2005
@@ -25,7 +25,7 @@
for (int i = 0; i < length; i++) {
SpeakingHandler1 h1 = new SpeakingHandler1("Executing " + i + " inside " + message);
this.addHandler(h1.getHandlerDescription());
- }
+ }
}
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/OneWayRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/OneWayRawXMLTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/OneWayRawXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/OneWayRawXMLTest.java Mon Jul 11 08:49:30 2005
@@ -39,10 +39,10 @@
public class OneWayRawXMLTest extends TestCase {
private EndpointReference targetEPR =
- new EndpointReference(AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -76,15 +76,14 @@
});
service.addOperation(operation);
UtilServer.deployService(service);
- }
+ }
+
-
protected void tearDown() throws Exception {
UtilServer.unDeployService(serviceName);
UtilServer.stop();
}
-
public void testEchoXMLSync() throws Exception {
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
@@ -98,10 +97,10 @@
sender.send(operationName.getLocalPart(), payload);
int index = 0;
- while(envelope == null){
+ while (envelope == null) {
Thread.sleep(4000);
- index ++;
- if(index == 5){
+ index++;
+ if (index == 5) {
throw new AxisFault("error Occured");
}
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SOAPversionTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SOAPversionTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SOAPversionTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SOAPversionTest.java Mon Jul 11 08:49:30 2005
@@ -42,9 +42,9 @@
public class SOAPversionTest extends TestCase {
private EndpointReference targetEPR =
new EndpointReference(AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -63,8 +63,8 @@
UtilServer.start();
service =
Utils.createSimpleService(serviceName,
- Echo.class.getName(),
- operationName);
+ Echo.class.getName(),
+ operationName);
UtilServer.deployService(service);
serviceContext =
UtilServer.getConfigurationContext().createServiceContext(service.getName());
@@ -81,7 +81,7 @@
inOutMEPClient.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
SOAPEnvelope result =
- inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), payload);
+ inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), payload);
assertEquals("SOAP Version received is not compatible", SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, result.getNamespace().getName());
inOutMEPClient.close();
}
@@ -96,7 +96,7 @@
inOutMEPClient.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
SOAPEnvelope result =
- inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), payload);
+ inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), payload);
assertEquals("SOAP Version received is not compatible", SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI, result.getNamespace().getName());
@@ -114,7 +114,7 @@
inOutMEPClient.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
SOAPEnvelope result =
- inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), payload);
+ inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), payload);
// assertEquals("SOAP Version received is not compatible", SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI, result.getNamespace().getName());
try {
OMOutput output = new OMOutput(System.out, false);
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDescriptionBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDescriptionBuilderTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDescriptionBuilderTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDescriptionBuilderTest.java Mon Jul 11 08:49:30 2005
@@ -10,6 +10,7 @@
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Iterator;
+
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
@@ -39,22 +40,22 @@
private void initialize() throws Exception {
if (null == this.service) {
- InputStream in = new FileInputStream(new File("./test-resources/service.wsdl")) ;
- if(in == null){
- throw new Exception("Input Stream is null , fileNot Found") ;
+ InputStream in = new FileInputStream(new File("./test-resources/service.wsdl"));
+ if (in == null) {
+ throw new Exception("Input Stream is null , fileNot Found");
}
WSDLDescription womDescription = WOMBuilderFactory.getBuilder(WOMBuilderFactory.WSDL11).build(in, new AxisDescWSDLComponentFactory()).getDescription();
Iterator iterator = womDescription.getServices().keySet().iterator();
- if(iterator.hasNext()){
- this.service = (ServiceDescription)iterator.next();
+ if (iterator.hasNext()) {
+ this.service = (ServiceDescription) iterator.next();
}
//todo fix me ajith , deepal
- // assertNotNull(this.service);
+ // assertNotNull(this.service);
}
}
- public void test(){
+ public void test() {
try {
this.initialize();
} catch (Exception e) {
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDispatchingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDispatchingTest.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDispatchingTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/ServiceDispatchingTest.java Mon Jul 11 08:49:30 2005
@@ -18,10 +18,7 @@
//todo
-import javax.xml.namespace.QName;
-
import junit.framework.TestCase;
-
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.AddressingConstants;
import org.apache.axis2.addressing.EndpointReference;
@@ -38,13 +35,14 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import javax.xml.namespace.QName;
+
public class ServiceDispatchingTest extends TestCase {
private EndpointReference targetEPR =
- new EndpointReference(
- AddressingConstants.WSA_TO,
- "http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
- + "/axis/services/EchoXMLService/echoOMElement");
+ new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+ + "/axis/services/EchoXMLService/echoOMElement");
private Log log = LogFactory.getLog(getClass());
private QName serviceName = new QName("EchoXMLService");
private QName operationName = new QName("echoOMElement");
@@ -72,7 +70,7 @@
service = Utils.createSimpleService(serviceName, Echo.class.getName(), operationName);
UtilServer.deployService(service);
serviceContext =
- UtilServer.getConfigurationContext().createServiceContext(service.getName());
+ UtilServer.getConfigurationContext().createServiceContext(service.getName());
}
@@ -85,15 +83,14 @@
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
OMElement payload = TestingUtils.createDummyOMElement();
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call();
- call.setTo(
- new EndpointReference(
- AddressingConstants.WSA_TO,
- "http://127.0.0.1:5555/axis/services/EchoXMLService/echoOMElement"));
+ call.setTo(new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:5555/axis/services/EchoXMLService/echoOMElement"));
call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
OMElement result = (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
TestingUtils.campareWithCreatedOMElement(result);
call.close();
}
+
public void testDispatchWithURLAndSOAPAction() throws Exception {
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
OMNamespace omNs = fac.createOMNamespace("http://dummyURL", "my");
@@ -102,10 +99,8 @@
value.addChild(fac.createText(value, "Isaac Assimov, the foundation Sega"));
payload.addChild(value);
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call();
- call.setTo(
- new EndpointReference(
- AddressingConstants.WSA_TO,
- "http://127.0.0.1:5555/axis/services/EchoXMLService/"));
+ call.setTo(new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:5555/axis/services/EchoXMLService/"));
call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
call.setSoapAction("echoOMElement");
OMElement result = (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
@@ -122,12 +117,10 @@
value.addChild(fac.createText(value, "Isaac Assimov, the foundation Sega"));
payload.addChild(value);
-
+
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call();
- call.setTo(
- new EndpointReference(
- AddressingConstants.WSA_TO,
- "http://127.0.0.1:5555/axis/services/"));
+ call.setTo(new EndpointReference(AddressingConstants.WSA_TO,
+ "http://127.0.0.1:5555/axis/services/"));
call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
OMElement result = (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
TestingUtils.campareWithCreatedOMElement(result);
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler.java Mon Jul 11 08:49:30 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
package org.apache.axis2.engine;
import org.apache.axis2.context.MessageContext;
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler1.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler1.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler1.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/SpeakingHandler1.java Mon Jul 11 08:49:30 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
package org.apache.axis2.engine;
import org.apache.axis2.context.MessageContext;
@@ -56,8 +56,8 @@
public void setName(QName name) {
this.name = name;
}
-
- public HandlerDescription getHandlerDescription(){
+
+ public HandlerDescription getHandlerDescription() {
return handlerDesc;
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/chuncking-enabled-axis2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/chuncking-enabled-axis2.xml?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/chuncking-enabled-axis2.xml (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/chuncking-enabled-axis2.xml Mon Jul 11 08:49:30 2005
@@ -1,73 +1,72 @@
<axisconfig name="AxisJava2.0">
- <!-- ================================================= -->
- <!-- Parameters -->
- <!-- ================================================= -->
+ <!-- ================================================= -->
+ <!-- Parameters -->
+ <!-- ================================================= -->
<parameter name="hotdeployment" locked="xsd:false">true</parameter>
<parameter name="hotupdate" locked="xsd:false">false</parameter>
-
<parameter name="userName" locked="xsd:false">admin</parameter>
<parameter name="password" locked="xsd:false">axis2</parameter>
- <!-- ================================================= -->
- <!-- Message Receivers -->
- <!-- ================================================= -->
+ <!-- ================================================= -->
+ <!-- Message Receivers -->
+ <!-- ================================================= -->
<!-- This is the Deafult Message Receiver for the Request Response style Operations -->
<messageReceiver mep="INOUT" class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
- <!-- ================================================= -->
- <!-- Transport Ins -->
- <!-- ================================================= -->
+ <!-- ================================================= -->
+ <!-- Transport Ins -->
+ <!-- ================================================= -->
<transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer">
<parameter name="port" locked="xsd:false">6060</parameter>
</transportReceiver>
- <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
- <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
- <parameter name="transport.mail.pop3.host" locked="xsd:false">127.0.0.1</parameter>
- <parameter name="transport.mail.pop3.user" locked="xsd:false">axis2</parameter>
- <parameter name="transport.mail.pop3.password" locked="xsd:false">axis2</parameter>
- <parameter name="transport.mail.pop3.port" locked="xsd:false">110</parameter>
- <parameter name="transport.mail.replyToAddress" locked="xsd:false">axis2@127.0.0.1</parameter>
- </transportReceiver> -->
+ <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+ <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+ <parameter name="transport.mail.pop3.host" locked="xsd:false">127.0.0.1</parameter>
+ <parameter name="transport.mail.pop3.user" locked="xsd:false">axis2</parameter>
+ <parameter name="transport.mail.pop3.password" locked="xsd:false">axis2</parameter>
+ <parameter name="transport.mail.pop3.port" locked="xsd:false">110</parameter>
+ <parameter name="transport.mail.replyToAddress" locked="xsd:false">axis2@127.0.0.1</parameter>
+ </transportReceiver> -->
<transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer">
<parameter name="port" locked="xsd:false">6060</parameter>
</transportReceiver>
- <!-- ================================================= -->
- <!-- Transport Outs -->
- <!-- ================================================= -->
+ <!-- ================================================= -->
+ <!-- Transport Outs -->
+ <!-- ================================================= -->
<transportSender name="http" class="org.apache.axis2.transport.http.HTTPTransportSender">
- <parameter name="PROTOCOL" locked="xsd:false">HTTP/1.1</parameter>
- <parameter name="Transfer-Encoding" locked="xsd:false">chunked</parameter>
+ <parameter name="PROTOCOL" locked="xsd:false">HTTP/1.1</parameter>
+ <parameter name="Transfer-Encoding" locked="xsd:false">chunked</parameter>
</transportSender>
-
+
<transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
<transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
- <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
- <transportSender name="mail" class="org.apache.axis2.transport.mail.MailTransportSender">
- <parameter name="transport.mail.smtp.host" locked="xsd:false">127.0.0.1</parameter>
- <parameter name="transport.mail.smtp.user" locked="xsd:false">axis2</parameter>
- <parameter name="transport.mail.smtp.password" locked="xsd:false">axis2</parameter>
- <parameter name="transport.mail.smtp.port" locked="xsd:false">25</parameter>
- </transportSender>
- -->
-
- <!-- ================================================= -->
- <!-- Global Modules -->
- <!-- ================================================= -->
+ <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+ <transportSender name="mail" class="org.apache.axis2.transport.mail.MailTransportSender">
+ <parameter name="transport.mail.smtp.host" locked="xsd:false">127.0.0.1</parameter>
+ <parameter name="transport.mail.smtp.user" locked="xsd:false">axis2</parameter>
+ <parameter name="transport.mail.smtp.password" locked="xsd:false">axis2</parameter>
+ <parameter name="transport.mail.smtp.port" locked="xsd:false">25</parameter>
+ </transportSender>
+ -->
+
+ <!-- ================================================= -->
+ <!-- Global Modules -->
+ <!-- ================================================= -->
<!-- Uncomment this to enable Addressing
<module ref="addressing"/> -->
- <!-- ================================================= -->
- <!-- Phases -->
- <!-- ================================================= -->
+ <!-- ================================================= -->
+ <!-- Phases -->
+ <!-- ================================================= -->
<phaseOrder type="inflow">
<!-- System pre defined phases -->
<phase name="TransportIn"/>