[wsas-java-dev] svn commit r913 - in trunk/wsas/java: .
modules/admin/test-resources/repository/conf
modules/admin/test/org/wso2/wsas/admin/service/logging
modules/core/src/org/wso2/wsas modules/core/test-resources
modules/integration/conf modules/integration/test/org/wso2/wsas/rest
modules/samples/CommodityQuote/conf
modules/samples/Trader/conf modules/servlet-edition/conf
modules/standalone-edition/conf
modules/standalone-edition/src/org/wso2/wsas/transport/jetty
modules/standalone-edition/test-resources
svn at wso2.org
svn at wso2.org
Thu Feb 15 03:41:26 PST 2007
Author: saminda
Date: Thu Feb 15 03:40:28 2007
New Revision: 913
Modified:
trunk/wsas/java/modules/admin/test-resources/repository/conf/axis2.xml
trunk/wsas/java/modules/admin/test/org/wso2/wsas/admin/service/logging/LoggingServiceTest.java
trunk/wsas/java/modules/core/src/org/wso2/wsas/ServerConstants.java
trunk/wsas/java/modules/core/test-resources/axis2.xml
trunk/wsas/java/modules/integration/conf/axis2.xml
trunk/wsas/java/modules/integration/test/org/wso2/wsas/rest/RestSupportTest.java
trunk/wsas/java/modules/samples/CommodityQuote/conf/axis2.xml
trunk/wsas/java/modules/samples/Trader/conf/axis2.xml
trunk/wsas/java/modules/servlet-edition/conf/axis2.xml
trunk/wsas/java/modules/standalone-edition/conf/axis2.xml
trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java
trunk/wsas/java/modules/standalone-edition/test-resources/axis2.xml
trunk/wsas/java/pom.xml
Log:
1. Fix axis2.xml to include all message serializers
2. Fix test cases
3. fixes to Axis2Handler. There will be TODOs for the momenent
Modified: trunk/wsas/java/modules/admin/test-resources/repository/conf/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/admin/test-resources/repository/conf/axis2.xml (original)
+++ trunk/wsas/java/modules/admin/test-resources/repository/conf/axis2.xml Thu Feb 15 03:40:28 2007
@@ -71,6 +71,22 @@
<!-- </listener>-->
<!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
<!-- Message Receivers -->
<!-- ================================================= -->
<!--This is the Deafult Message Receiver for the system , if you want to have MessageReceivers for -->
Modified: trunk/wsas/java/modules/admin/test/org/wso2/wsas/admin/service/logging/LoggingServiceTest.java
==============================================================================
--- trunk/wsas/java/modules/admin/test/org/wso2/wsas/admin/service/logging/LoggingServiceTest.java (original)
+++ trunk/wsas/java/modules/admin/test/org/wso2/wsas/admin/service/logging/LoggingServiceTest.java Thu Feb 15 03:40:28 2007
@@ -19,6 +19,7 @@
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.context.OperationContext;
+import org.apache.axis2.context.ContextFactory;
import org.apache.axis2.description.InOutAxisOperation;
import org.apache.axis2.engine.AxisConfiguration;
import org.apache.log4j.Layout;
@@ -42,9 +43,13 @@
System.setProperty(ServerConstants.DERBY_HOME, "conf");
logService = new LoggingService();
- MessageContext msgCtx = new MessageContext();
ConfigurationContext configCtx = new ConfigurationContext(new AxisConfiguration());
- OperationContext opctx = new OperationContext(new InOutAxisOperation());
+
+ MessageContext msgCtx = ContextFactory.createMessageContext(configCtx);
+
+ OperationContext opctx =
+ ContextFactory.createOperationContext(new InOutAxisOperation(), null);
+
opctx.addMessageContext(msgCtx);
msgCtx.setOperationContext(opctx);
msgCtx.setConfigurationContext(configCtx);
Modified: trunk/wsas/java/modules/core/src/org/wso2/wsas/ServerConstants.java
==============================================================================
--- trunk/wsas/java/modules/core/src/org/wso2/wsas/ServerConstants.java (original)
+++ trunk/wsas/java/modules/core/src/org/wso2/wsas/ServerConstants.java Thu Feb 15 03:40:28 2007
@@ -38,8 +38,14 @@
public static final String MEDIA_TYPE_TEXT_XML = "text/xml";
public static final String MEDIA_TYPE_MULTIPART_RELATED = "multipart/related";
+ /**
+ * @deprecated
+ */
public static final String HTTP_METHOD_GET = "GET";
public static final String HTTP_METHOD = "HTTP_METHOD";
+ /**
+ * @deprecated
+ */
public static final String HTTP_METHOD_POST = "POST";
public static final String CONTENT_TYPE = "ContentType";
public static final String HTTP_RESPONSE_STATE = "HTTP_RESPONSE_STATE";
Modified: trunk/wsas/java/modules/core/test-resources/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/core/test-resources/axis2.xml (original)
+++ trunk/wsas/java/modules/core/test-resources/axis2.xml Thu Feb 15 03:40:28 2007
@@ -55,6 +55,22 @@
<parameter name="manageTransportSession" locked="false">true</parameter>
<!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
<!-- Message Receivers -->
<!-- ================================================= -->
<!--This is the Default Message Receiver for the system , if you want to have MessageReceivers for -->
Modified: trunk/wsas/java/modules/integration/conf/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/integration/conf/axis2.xml (original)
+++ trunk/wsas/java/modules/integration/conf/axis2.xml Thu Feb 15 03:40:28 2007
@@ -10,6 +10,22 @@
<parameter name="Sandesha2StorageManager" locked="false">inmemory</parameter>
<!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
<!-- Transport Ins -->
<!-- ================================================= -->
Modified: trunk/wsas/java/modules/integration/test/org/wso2/wsas/rest/RestSupportTest.java
==============================================================================
--- trunk/wsas/java/modules/integration/test/org/wso2/wsas/rest/RestSupportTest.java (original)
+++ trunk/wsas/java/modules/integration/test/org/wso2/wsas/rest/RestSupportTest.java Thu Feb 15 03:40:28 2007
@@ -55,7 +55,7 @@
String hostAddress = NetworkUtils.getLocalHostname();
eprString = "http://" + hostAddress + ":"
- + TestConstants.TESTING_PORT
+ + (TestConstants.TESTING_PORT)
+ "/rest/" + serviceName.getLocalPart() + "/" + operationName.getLocalPart();
ConfigurationContext configContext = getConfigContext();
@@ -80,10 +80,11 @@
options.setTo(new EndpointReference(eprString));
options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP);
- options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
- org.apache.axis2.Constants.VALUE_TRUE);
+ options.setProperty(org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,
+ ServerConstants.HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
options.setProperty(org.apache.axis2.Constants.Configuration.HTTP_METHOD,
org.apache.axis2.Constants.Configuration.HTTP_METHOD_GET);
+ options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,Boolean.TRUE);
ServiceClient sender =
new ServiceClient(ConfigurationContextFactory.
createConfigurationContextFromFileSystem(null,null),null);
@@ -103,10 +104,8 @@
options.setTo(new EndpointReference(eprString));
options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP);
- options.setProperty(org.apache.axis2.Constants.Configuration.CONTENT_TYPE,
+ options.setProperty(org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,
ServerConstants.HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
- options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
- org.apache.axis2.Constants.VALUE_TRUE);
options.setProperty(
org.apache.axis2.Constants.Configuration.HTTP_METHOD,
org.apache.axis2.Constants.Configuration.HTTP_METHOD_POST);
@@ -114,6 +113,8 @@
options.setProperty(
org.apache.axis2.Constants.Configuration.URL_PARAMETER_LIST,
new String[]{"firstNumber", "secondNumber", "thirdNumber"});
+ options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
+ Boolean.TRUE);
ServiceClient sender =
new ServiceClient(ConfigurationContextFactory.
@@ -134,13 +135,13 @@
options.setTo(new EndpointReference(eprString));
options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP);
- options.setProperty(org.apache.axis2.Constants.Configuration.CONTENT_TYPE,
+ options.setProperty(org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,
ServerConstants.HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
- options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
- org.apache.axis2.Constants.VALUE_TRUE);
options.setProperty(
org.apache.axis2.Constants.Configuration.HTTP_METHOD,
org.apache.axis2.Constants.Configuration.HTTP_METHOD_POST);
+ options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
+ Boolean.TRUE);
ServiceClient sender =
new ServiceClient(ConfigurationContextFactory.
@@ -161,10 +162,8 @@
options.setTo(new EndpointReference(eprString));
options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP);
- options.setProperty(org.apache.axis2.Constants.Configuration.CONTENT_TYPE,
+ options.setProperty(org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,
ServerConstants.HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
- options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
- org.apache.axis2.Constants.VALUE_TRUE);
options.setProperty(
org.apache.axis2.Constants.Configuration.HTTP_METHOD,
org.apache.axis2.Constants.Configuration.HTTP_METHOD_POST);
@@ -172,6 +171,8 @@
options.setProperty(
org.apache.axis2.Constants.Configuration.URL_PARAMETER_LIST,
new String[]{"firstNumber", "secondNumber"});
+ options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
+ Boolean.TRUE);
ServiceClient sender =
new ServiceClient(ConfigurationContextFactory.
@@ -194,10 +195,10 @@
options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP);
options.setProperty(HTTPConstants.HEADER_CONTENT_TYPE,
ServerConstants.HTTPConstants.MEDIA_TYPE_APPLICATION_XML);
- options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
- org.apache.axis2.Constants.VALUE_TRUE);
options.setProperty(org.apache.axis2.Constants.Configuration.HTTP_METHOD,
org.apache.axis2.Constants.Configuration.HTTP_METHOD_POST);
+ options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_REST,
+ Boolean.TRUE);
ServiceClient sender =
new ServiceClient(ConfigurationContextFactory.
Modified: trunk/wsas/java/modules/samples/CommodityQuote/conf/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/samples/CommodityQuote/conf/axis2.xml (original)
+++ trunk/wsas/java/modules/samples/CommodityQuote/conf/axis2.xml Thu Feb 15 03:40:28 2007
@@ -11,6 +11,22 @@
<!--Set the flag to true if you want to enable transport level session mangment-->
<parameter name="manageTransportSession" locked="false">true</parameter>
+
+ <!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
<!-- ================================================= -->
<!-- Transport Ins -->
Modified: trunk/wsas/java/modules/samples/Trader/conf/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/samples/Trader/conf/axis2.xml (original)
+++ trunk/wsas/java/modules/samples/Trader/conf/axis2.xml Thu Feb 15 03:40:28 2007
@@ -11,6 +11,22 @@
<!--Set the flag to true if you want to enable transport level session mangment-->
<parameter name="manageTransportSession" locked="false">true</parameter>
+
+ <!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
<!-- ================================================= -->
<!-- Transport Ins -->
Modified: trunk/wsas/java/modules/servlet-edition/conf/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/servlet-edition/conf/axis2.xml (original)
+++ trunk/wsas/java/modules/servlet-edition/conf/axis2.xml Thu Feb 15 03:40:28 2007
@@ -62,6 +62,22 @@
<parameter name="manageTransportSession" locked="false">true</parameter>
<!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
<!-- Message Receivers -->
<!-- ================================================= -->
<!--This is the Default Message Receiver for the system , if you want to have MessageReceivers for -->
Modified: trunk/wsas/java/modules/standalone-edition/conf/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/standalone-edition/conf/axis2.xml (original)
+++ trunk/wsas/java/modules/standalone-edition/conf/axis2.xml Thu Feb 15 03:40:28 2007
@@ -74,6 +74,22 @@
</messageReceivers>
<!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
<!-- In Transports -->
<!-- ================================================= -->
<transportReceiver name="http"
Modified: trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java
==============================================================================
--- trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java (original)
+++ trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java Thu Feb 15 03:40:28 2007
@@ -16,6 +16,7 @@
package org.wso2.wsas.transport.jetty;
import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.util.UUIDGenerator;
import org.apache.axiom.soap.SOAP12Constants;
import org.apache.axiom.soap.SOAPFaultCode;
import org.apache.axis2.AxisFault;
@@ -34,6 +35,7 @@
import org.apache.commons.logging.LogFactory;
import org.mortbay.jetty.HttpConnection;
import org.mortbay.jetty.Request;
+import org.mortbay.jetty.HttpMethods;
import org.mortbay.jetty.handler.AbstractHandler;
import org.wso2.utils.ServerConfiguration;
@@ -57,12 +59,17 @@
this.configurationContext = configurationContext;
}
+ /**
+ * @deprecated
+ * @param request
+ * @return Map
+ */
protected Map getHeaders(HttpServletRequest request) {
HashMap headerMap = new HashMap();
- Enumeration e = request.getAttributeNames();//TODO .getFieldNames();
+ Enumeration e = request.getAttributeNames();
while (e.hasMoreElements()) {
String field = (String) e.nextElement();
- headerMap.put(field, request.getAttribute(field)); // TODO .getField(field)
+ headerMap.put(field, request.getAttribute(field));
}
return headerMap;
}
@@ -92,6 +99,8 @@
HttpConnection.getCurrentConnection().getRequest();
baseRequest.setHandled(true);
+ ////////////////////////////////////////////////////////////////////////////////////////
+ //TODO Remove the following logic and use the Util methods provide from Axis2 [wait till deepals fixes]
OutputStream bos = response.getOutputStream();
TransportOutDescription transportOut =
configurationContext.getAxisConfiguration().
@@ -125,10 +134,9 @@
msgContext.setProperty(MessageContext.TRANSPORT_OUT, bos);
- // set the transport Headers
+ // set the transport Headers TODO
msgContext.setProperty(MessageContext.TRANSPORT_HEADERS,
getTransportHeaders(request));
- msgContext.setServiceGroupContextId(org.apache.axiom.om.util.UUIDGenerator.getUUID());
// set msg context properties
msgContext.setProperty(MessageContext.REMOTE_ADDR, request.getRemoteAddr());
@@ -137,21 +145,18 @@
msgContext.setFrom(new EndpointReference(request.getRemoteAddr()));
+ msgContext.setServiceGroupContextId(UUIDGenerator.getUUID());
+ ////////////////////////////////////////////////////////////////////////////////////////////
+
String method = request.getMethod();
try {
- if (org.wso2.wsas.ServerConstants.HTTPConstants.HTTP_METHOD_GET.equals(method))
- { // HttpServletRequest.this. __GET
+ if (HttpMethods.GET.equals(method)) {
boolean processed = processGetRequest(msgContext, request, response);
if (!processed) {
response.setStatus(200);
}
- } else
- if (org.wso2.wsas.ServerConstants.HTTPConstants.HTTP_METHOD_POST.equals(method)) {
+ } else if (HttpMethods.POST.equals(method)) {
- if (configurationContext == null) {
- throw new AxisFault(Messages
- .getMessage("cannotBeNullConfigurationContext"));
- }
boolean processed = processPostRequest(msgContext, request, response);
if (msgContext.getOperationContext() == null) {
@@ -168,11 +173,15 @@
}
}
+ } else if (HttpMethods.PUT.equals(method)) {
+ //TODO Need help from Kieth
+ } else if (HttpMethods.DELETE.equals(method)) {
+ // TODO Need help from Kieth
} else {
log.debug("Unsupported: not POST or GET");
response.sendError(
- HttpServletResponse.SC_NOT_IMPLEMENTED);//HttpResponse.__501_Not_Implemented);
- } // not GET or POST
+ HttpServletResponse.SC_NOT_IMPLEMENTED);
+ }
} catch (AxisFault e) {
//TODO null check for instance of MessageContext
try {
Modified: trunk/wsas/java/modules/standalone-edition/test-resources/axis2.xml
==============================================================================
--- trunk/wsas/java/modules/standalone-edition/test-resources/axis2.xml (original)
+++ trunk/wsas/java/modules/standalone-edition/test-resources/axis2.xml Thu Feb 15 03:40:28 2007
@@ -55,6 +55,22 @@
<parameter name="manageTransportSession" locked="false">true</parameter>
<!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="application/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="application/echo+xml"
+ class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
<!-- Message Receivers -->
<!-- ================================================= -->
<!--This is the Default Message Receiver for the system , if you want to have MessageReceivers for -->
Modified: trunk/wsas/java/pom.xml
==============================================================================
--- trunk/wsas/java/pom.xml (original)
+++ trunk/wsas/java/pom.xml Thu Feb 15 03:40:28 2007
@@ -192,6 +192,17 @@
<enabled>false</enabled>
</releases>
</repository>
+
+ <!--<repository>
+ <id>m2-snapshot-repository</id>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>-->
<repository>
<id>dist-wso2</id>
<name>WSO2 Standard Repository</name>
More information about the Wsas-java-dev
mailing list